public List <Statement> VisitStatementList(GLSL_ES300Parser.StatementlistContext context)
        {
            var result = new List <Statement>();

            if (context != null)
            {
                var currentList = context;

                while (currentList != null)
                {
                    result.Add((Statement)this.Visit(currentList.statement()));
                    currentList = currentList.statementlist();
                }
            }

            result.Reverse();
            return(result);
        }
Пример #2
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="GLSL_ES300Parser.statementlist"/>.
 /// <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 VisitStatementlist([NotNull] GLSL_ES300Parser.StatementlistContext context)
 {
     return(VisitChildren(context));
 }