Exemplo n.º 1
0
        public override BaseSchemaMember VisitFile_identifier_decl([NotNull] FlatBuffersParser.File_identifier_declContext context)
        {
            var top = this.parseStack.Peek();

            ErrorContext.Current.WithScope(top.FullName, () =>
            {
                FileIdentifierDefinition def = (FileIdentifierDefinition) new FileIdentifierVisitor(top).Visit(context);
                top.AddChild(def);
            });
            return(null);
        }
Exemplo n.º 2
0
 public override object VisitFile_identifier_decl([NotNull] FlatBuffersParser.File_identifier_declContext context)
 {
     FileIdentifier = context.STRING_CONSTANT()?.GetText()?.Trim('"')?.Trim();
     fileIdDef      = new FileIdentifierDefinition(FileIdentifier, parent);
     return(fileIdDef);
 }