scanIdent is similar to Scanner.scanIdent, but uses Jsonpath tokens.
(lval ScanSymType)
| 136 | |
| 137 | // scanIdent is similar to Scanner.scanIdent, but uses Jsonpath tokens. |
| 138 | func (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. |
| 145 | func (s *JSONPathScanner) scanNumber(lval ScanSymType, ch int) { |
no test coverage detected