public override AstNode VisitLogical_xor_expression([NotNull] GLSL_ES300Parser.Logical_xor_expressionContext context) { if (context.Xor() != null) { var result = new ExpressionBinary(); result.Left = (Expression)this.Visit(context.logical_xor_expression()); result.Right = (Expression)this.Visit(context.logical_and_expression()); result.Operator = Operator.Xor; return(result); } return(this.Visit(context.logical_and_expression())); }
/// <summary> /// Visit a parse tree produced by <see cref="GLSL_ES300Parser.logical_xor_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 VisitLogical_xor_expression([NotNull] GLSL_ES300Parser.Logical_xor_expressionContext context) { return(VisitChildren(context)); }