public override void EnterOpcode([NotNull] asm8086Parser.OpcodeContext 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["Opcode"])); } }
/// <summary> /// Exit a parse tree produced by <see cref="asm8086Parser.opcode"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitOpcode([NotNull] asm8086Parser.OpcodeContext context) { }
/// <summary> /// Visit a parse tree produced by <see cref="asm8086Parser.opcode"/>. /// <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 VisitOpcode([NotNull] asm8086Parser.OpcodeContext context) { return(VisitChildren(context)); }