public override AstNode VisitSimple_statement([NotNull] GLSL_ES300Parser.Simple_statementContext context) { var declaration = context.declaration_statement(); if (declaration != null) { return(this.VisitDeclaration_statement(declaration)); } var expr = context.expression_statement(); if (expr != null) { return(this.VisitExpression_statement(expr)); } var selection = context.selection_statement(); if (selection != null) { return(this.VisitSelection_statement(selection)); } var switchStatement = context.switch_statement(); if (switchStatement != null) { return(this.VisitSwitch_statement(switchStatement)); } var caseLabel = context.case_label(); if (caseLabel != null) { return(this.VisitCase_label(caseLabel)); } var iteration = context.iteration_statement(); if (iteration != null) { return(this.VisitIteration_statement(iteration)); } var jump = context.jump_statement(); if (jump != null) { return(this.VisitJump_statement(jump)); } throw new NotSupportedException($"Statement is not supported: {context.ToString()}"); }
/// <summary> /// Visit a parse tree produced by <see cref="GLSL_ES300Parser.simple_statement"/>. /// <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 VisitSimple_statement([NotNull] GLSL_ES300Parser.Simple_statementContext context) { return(VisitChildren(context)); }