MCPcopy Index your code
hub / github.com/blastrain/vitess-sqlparser / Lex

Method Lex

tidbparser/parser/lexer.go:131–180  ·  view source on GitHub ↗

Lex returns a token and store the token value in v. Scanner satisfies yyLexer interface. 0 and invalid are special token id this function would return: return 0 tells parser that scanner meets EOF, return invalid tells parser that scanner meets illegal character.

(v *yySymType)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 12

scanMethod · 0.95
isTokenIdentifierMethod · 0.95
handleIdentFunction · 0.85
toIntFunction · 0.85
toFloatFunction · 0.85
toDecimalFunction · 0.85
toHexFunction · 0.85
toBitFunction · 0.85
HasANSIQuotesModeMethod · 0.80
HasPipesAsConcatModeMethod · 0.80
eofMethod · 0.80

Tested by

no test coverage detected