public override AstNode VisitAnd_expression([NotNull] GLSL_ES300Parser.And_expressionContext context)
        {
            if (context.Ampersand() != null)
            {
                var result = new ExpressionBinary();
                result.Left     = (Expression)this.Visit(context.and_expression());
                result.Right    = (Expression)this.Visit(context.equality_expression());
                result.Operator = Operator.Ampersand;
                return(result);
            }

            return(this.Visit(context.equality_expression()));
        }
예제 #2
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="GLSL_ES300Parser.and_expression"/>.
 /// <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 VisitAnd_expression([NotNull] GLSL_ES300Parser.And_expressionContext context)
 {
     return(VisitChildren(context));
 }