MCPcopy Create free account
hub / github.com/dolthub/doltgresql / NewTypedCastExpr

Function NewTypedCastExpr

postgres/parser/sem/tree/expr.go:1558–1562  ·  view source on GitHub ↗

NewTypedCastExpr returns a new CastExpr that is verified to be well-typed.

(expr TypedExpr, typ *types.T)

Source from the content-addressed store, hash-verified

1556
1557// NewTypedCastExpr returns a new CastExpr that is verified to be well-typed.
1558func NewTypedCastExpr(expr TypedExpr, typ *types.T) *CastExpr {
1559 node := &CastExpr{Expr: expr, Type: typ, SyntaxMode: CastShort}
1560 node.typ = typ
1561 return node
1562}
1563
1564// ArraySubscripts represents a sequence of one or more array subscripts.
1565type ArraySubscripts []*ArraySubscript

Callers 2

ResolveAsTypeMethod · 0.85
TypeCheckMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected