/// <summary>
 /// Visit a parse tree produced by <see cref="ANTLRv4Parser.ruleSpec"/>.
 /// <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 VisitRuleSpec([NotNull] ANTLRv4Parser.RuleSpecContext context)
 {
     return(VisitChildren(context));
 }
 /// <summary>
 /// Exit a parse tree produced by <see cref="ANTLRv4Parser.ruleSpec"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitRuleSpec([NotNull] ANTLRv4Parser.RuleSpecContext context)
 {
 }
Esempio n. 3
0
 public override ItemSequence VisitRuleSpec([NotNull] ANTLRv4Parser.RuleSpecContext context)
 => context.lexerRuleSpec() != null?VisitLexerRuleSpec(context.lexerRuleSpec()) : VisitParserRuleSpec(context.parserRuleSpec());