Ejemplo n.º 1
0
 private DiagramItem Transform(ANTLRv4Parser.LexerBlockContext context)
 {
     if (context.lexerAltList().lexerAlt().Length == 1)
     {
         return(Transform(context.lexerAltList().lexerAlt()[0]));
     }
     return(new Choice(0, context.lexerAltList().lexerAlt().Select(Transform).Select(FSharpChoice <DiagramItem, string> .NewChoice1Of2)));
 }
 /// <summary>
 /// Exit a parse tree produced by <see cref="ANTLRv4Parser.lexerBlock"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitLexerBlock([NotNull] ANTLRv4Parser.LexerBlockContext context)
 {
 }
 /// <summary>
 /// Visit a parse tree produced by <see cref="ANTLRv4Parser.lexerBlock"/>.
 /// <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 VisitLexerBlock([NotNull] ANTLRv4Parser.LexerBlockContext context)
 {
     return(VisitChildren(context));
 }