Exemple #1
0
        public override int VisitTableField([NotNull] FlatbufferParser.TableFieldContext context)
        {
            MakeClassificationSpan(context.fieldName, classificater.FBSFieldName);

            if (context.fieldType != null)
            {
                MakeClassificationSpan(context.fieldType, classificater.FBSFieldType);
            }
            else if (context.arrayType != null)
            {
                MakeClassificationSpan(context.arrayType.type, classificater.FBSFieldType);
            }

            MakeClassificationSpan(context.fieldValue, classificater.FBSFieldValue);
            MakeClassificationSpan(context.fieldArrow, classificater.FBSFieldMap);
            MakeClassificationSpan(context.fieldMap, classificater.FBSFieldMap);
            MakeQuickInfo(context, context.fieldName);
            return(base.VisitTableField(context));
        }
 /// <summary>
 /// Visit a parse tree produced by <see cref="FlatbufferParser.tableField"/>.
 /// <para>
 /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/>
 /// on <paramref name="context"/>.
 /// </para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 /// <return>The visitor result.</return>
 public virtual Result VisitTableField([NotNull] FlatbufferParser.TableFieldContext context)
 {
     return(VisitChildren(context));
 }
Exemple #3
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="FlatbufferParser.tableField"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitTableField([NotNull] FlatbufferParser.TableFieldContext context)
 {
 }