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

Function NewNumVal

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

NewNumVal constructs a new NumVal instance. This is used during parsing and in tests.

(value constant.Value, origString string, negative bool)

Source from the content-addressed store, hash-verified

142// NewNumVal constructs a new NumVal instance. This is used during parsing and
143// in tests.
144func NewNumVal(value constant.Value, origString string, negative bool) *NumVal {
145 return &NumVal{value: value, origString: origString, negative: negative}
146}
147
148// Kind implements the constant.Value interface.
149func (expr *NumVal) Kind() constant.Kind {

Callers 2

initFunction · 0.92
initFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…