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

Method scanIdent

pkg/sql/scanner/jsonpath_scan.go:138–142  ·  view source on GitHub ↗

scanIdent is similar to Scanner.scanIdent, but uses Jsonpath tokens.

(lval ScanSymType)

Source from the content-addressed store, hash-verified

136
137// scanIdent is similar to Scanner.scanIdent, but uses Jsonpath tokens.
138func (s *JSONPathScanner) scanIdent(lval ScanSymType) {
139 // TODO(normanchenn): Allow any case for specific identifiers (strict, lax, to)
140 s.normalizeIdent(lval, isIdentMiddle, false /* toLower */)
141 lval.SetID(lexbase.GetKeywordID(lval.Str()))
142}
143
144// scanNumber is similar to Scanner.scanNumber, but uses Jsonpath tokens.
145func (s *JSONPathScanner) scanNumber(lval ScanSymType, ch int) {

Callers 1

ScanMethod · 0.95

Calls 4

GetKeywordIDFunction · 0.92
normalizeIdentMethod · 0.80
SetIDMethod · 0.65
StrMethod · 0.65

Tested by

no test coverage detected