public override void EnterRegister_([NotNull] asm8086Parser.Register_Context 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["Register"])); } }
/// <summary> /// Exit a parse tree produced by <see cref="asm8086Parser.register_"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitRegister_([NotNull] asm8086Parser.Register_Context context) { }
/// <summary> /// Visit a parse tree produced by <see cref="asm8086Parser.register_"/>. /// <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 VisitRegister_([NotNull] asm8086Parser.Register_Context context) { return(VisitChildren(context)); }