/// <summary> /// Visit a parse tree produced by <see cref="TxMarkParser.left_nametag"/>. /// <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 VisitLeft_nametag([NotNull] TxMarkParser.Left_nametagContext context) { return(VisitChildren(context)); }
/// <summary> /// Exit a parse tree produced by <see cref="TxMarkParser.left_nametag"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitLeft_nametag([NotNull] TxMarkParser.Left_nametagContext context) { }
public override void EnterLeft_nametag([NotNull] TxMarkParser.Left_nametagContext context) { _compileContext.AddNameTag(context.Parent, context.word().GetText()); }