public override void EnterNumber([NotNull] asm8086Parser.NumberContext context) { if (context.Start.StartIndex >= _span.Start && context.Start.StartIndex < _span.End || context.Stop.StopIndex >= _span.Start && context.Stop.StopIndex < _span.End) { ClassifiedSpans.Add(new ClassificationSpan(new SnapshotSpan(_span.Snapshot, context.Start.StartIndex, context.Stop.StopIndex + 1 - context.Start.StartIndex), _classificationTypes["Number"])); } }
/// <summary> /// Exit a parse tree produced by <see cref="asm8086Parser.number"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitNumber([NotNull] asm8086Parser.NumberContext context) { }
/// <summary> /// Visit a parse tree produced by <see cref="asm8086Parser.number"/>. /// <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 VisitNumber([NotNull] asm8086Parser.NumberContext context) { return(VisitChildren(context)); }