MCPcopy Create free account
hub / github.com/apache/cloudberry / transformExpr

Function transformExpr

src/backend/parser/parse_expr.c:97–113  ·  view source on GitHub ↗

* transformExpr - * Analyze and transform expressions. Type checking and type casting is * done here. This processing converts the raw grammar output into * expression trees with fully determined semantics. */

Source from the content-addressed store, hash-verified

95 * expression trees with fully determined semantics.
96 */
97Node *
98transformExpr(ParseState *pstate, Node *expr, ParseExprKind exprKind)
99{
100 Node *result;
101 ParseExprKind sv_expr_kind;
102
103 /* Save and restore identity of expression type we're parsing */
104 Assert(exprKind != EXPR_KIND_NONE);
105 sv_expr_kind = pstate->p_expr_kind;
106 pstate->p_expr_kind = exprKind;
107
108 result = transformExprRecurse(pstate, expr);
109
110 pstate->p_expr_kind = sv_expr_kind;
111
112 return result;
113}
114
115static Node *
116transformExprRecurse(ParseState *pstate, Node *expr)

Callers 15

get_rule_exprFunction · 0.85
DoCopyFunction · 0.85
domainAddConstraintFunction · 0.85
EvaluateParamsFunction · 0.85
transformPartitionSpecFunction · 0.85
transformIndexStmtFunction · 0.85
transformStatsStmtFunction · 0.85
transformAlterTableStmtFunction · 0.85

Calls 1

transformExprRecurseFunction · 0.85

Tested by

no test coverage detected