public SyntaxNode VisitLetExpr([NotNull] QtParser.LetExprContext context) { DefId name = (DefId)context.varName.Accept(this); Expr type = (Expr)context.ty.Accept(this); Expr val = (Expr)context.val.Accept(this); Expr body = (Expr)context.body.Accept(this); return(new LetExpr(name, type, val, body)); }
/// <summary> /// Exit a parse tree produced by <see cref="QtParser.letExpr"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitLetExpr([NotNull] QtParser.LetExprContext context) { }
/// <summary> /// Visit a parse tree produced by <see cref="QtParser.letExpr"/>. /// <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 VisitLetExpr([NotNull] QtParser.LetExprContext context) { return(VisitChildren(context)); }