Repository navigation
Commit 36ec002
committed
refactor: keep the token nesting walk in the grammar
Move TokenNesting from its own file into the grammar as a private
nested class next to the lookaheads that use it, as asked in review.
The nested class compiles to its own class file, so its branches stay
out of CCJSqlParser.class. Inlining the walk as a parser method took
18 more of the constant-pool entries JaCoCo can still instrument.
Behaviour does not change.
Signed-off-by: minleejae <mmj9808@gmail.com>1 parent 60b80a2 commit 36ec002
2 files changed
Lines changed: 27 additions & 38 deletions
File tree
- src/main
- java/net/sf/jsqlparser/parser
- jjtree/net/sf/jsqlparser/parser
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
231 | 258 | | |
232 | 259 | | |
233 | 260 | | |
| |||
0 commit comments