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"]));
     }
 }
Beispiel #2
0
 /// <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)
 {
 }
Beispiel #3
0
 /// <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));
 }