MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / TypeCheck

Method TypeCheck

pkg/sql/sem/tree/expr.go:47–47  ·  view source on GitHub ↗

TypeCheck transforms the Expr into a well-typed TypedExpr, which further permits evaluation and type introspection, or an error if the expression cannot be well-typed. When type checking is complete, if no error was reported, the expression and all sub-expressions will be guaranteed to be well-typed

(ctx *SemaContext, desired *types.T)

Source from the content-addressed store, hash-verified

45 // desired. This restriction is also true of most methods and functions related
46 // to type checking.
47 TypeCheck(ctx *SemaContext, desired *types.T) (TypedExpr, error)
48}
49
50// TypedExpr represents a well-typed expression.

Callers 15

EvalAsOfTimestampFunction · 0.65
normalizeMethod · 0.65
TypeCheckFunction · 0.65
TypeCheckMethod · 0.65
TypeCheckMethod · 0.65
TypeCheckMethod · 0.65
TypeCheckMethod · 0.65
TypeCheckMethod · 0.65
TypeCheckMethod · 0.65
TypeCheckMethod · 0.65
TypeCheckMethod · 0.65
TypeCheckMethod · 0.65

Implementers 15

UnresolvedNamepkg/sql/sem/tree/name_part.go
AndExprpkg/sql/sem/tree/expr.go
OrExprpkg/sql/sem/tree/expr.go
BinaryExprpkg/sql/sem/tree/expr.go
ParenExprpkg/sql/sem/tree/expr.go
Subquerypkg/sql/sem/tree/expr.go
FuncExprpkg/sql/sem/tree/expr.go
ComparisonExprpkg/sql/sem/tree/expr.go
CastExprpkg/sql/sem/tree/expr.go
Arraypkg/sql/sem/tree/expr.go
Tuplepkg/sql/sem/tree/expr.go
CaseExprpkg/sql/sem/tree/expr.go

Calls

no outgoing calls

Tested by 1

TestNormalizeExprFunction · 0.52