private static void createStructFieldDefinition(ParseContext context, Symbol scope, SchemaNode node, Symbol referenceToField) {
        node.setSymbolStatus(SymbolStatus.DEFINITION);
        node.setSymbolType(SymbolType.FIELD);
        node.setSymbolScope(scope);
        context.schemaIndex().insertSymbolDefinition(node.getSymbol());
        context.schemaIndex().insertSymbolReference(referenceToField, node.getSymbol());
    }
StructFieldDefinitionResolver
Finds struct-field declarations and turns them into definitions of fields
integration/schema-language-server/language-server/src/main/java/ai/vespa/schemals/schemadocument/resolvers/StructFieldDefinitionResolver.java