MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / AvailableTypes

Method AvailableTypes

pkg/sql/sem/tree/constant.go:31–31  ·  view source on GitHub ↗

AvailableTypes returns the ordered set of types that the Constant is able to be resolved into. The order of the type slice provides a notion of precedence, with the first element in the ordering being the Constant's "natural type".

()

Source from the content-addressed store, hash-verified

29 // be resolved into. The order of the type slice provides a notion of precedence,
30 // with the first element in the ordering being the Constant's "natural type".
31 AvailableTypes() []*types.T
32 // DesirableTypes returns the ordered set of types that the constant would
33 // prefer to be resolved into. As in AvailableTypes, the order of the returned
34 // type slice provides a notion of precedence, with the first element in the

Callers 3

typeCheckConstantFunction · 0.65
naturalConstantTypeFunction · 0.65
canConstantBecomeFunction · 0.65

Implementers 2

NumValpkg/sql/sem/tree/constant.go
StrValpkg/sql/sem/tree/constant.go

Calls

no outgoing calls

Tested by

no test coverage detected