revive:enable:exported Parser represents a parser instance. Some temporary objects are stored in it to reduce object allocation during Parse function.
| 85 | |
| 86 | // Parser represents a parser instance. Some temporary objects are stored in it to reduce object allocation during Parse function. |
| 87 | type 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 | |
| 104 | func yySetOffset(yyVAL *yySymType, offset int) { |
| 105 | if yyVAL.expr != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected