MCPcopy
hub / github.com/pingcap/tidb / Parser

Struct Parser

pkg/parser/yy_parser.go:87–102  ·  view source on GitHub ↗

revive:enable:exported Parser represents a parser instance. Some temporary objects are stored in it to reduce object allocation during Parse function.

Source from the content-addressed store, hash-verified

85
86// Parser represents a parser instance. Some temporary objects are stored in it to reduce object allocation during Parse function.
87type Parser struct {
88 charset string
89 collation string
90 result []ast.StmtNode
91 src string
92 lexer Scanner
93 hintParser *hintParser
94
95 explicitCharset bool
96 strictDoubleFieldType bool
97
98 // the following fields are used by yyParse to reduce allocation.
99 cache []yySymType
100 yylval yySymType
101 yyVAL *yySymType
102}
103
104func yySetOffset(yyVAL *yySymType, offset int) {
105 if yyVAL.expr != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected