Commit d73f7bd
Generate
Fixed an incorrect name `_forRecordLiterals` in
`RuleVisitorRegistryImpl`.
Refactored existing generators to reduce code duplication, extracted
_Node class and made helper extensions.
For context I am currently reading Crafting Interpreters by Robert
Nystrom and was inspired to use the code generation shown in the book.
Change-Id: Ia26aa2f697b98dae89903648758c2ca47d1823ec
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/442561
Reviewed-by: Brian Wilkerson <[email protected]>
Reviewed-by: Konstantin Shcheglov <[email protected]>
Commit-Queue: Konstantin Shcheglov <[email protected]>GeneralizingAstVisitor, TimedAstVisitor, AnalysisRuleVisitor and AstVisitor.1 parent 3c53e3e commit d73f7bd
File tree
9 files changed
+4904
-4572
lines changed- pkg/analyzer
- lib
- dart/ast
- src
- dart/ast
- lint
- tool/ast
9 files changed
+4904
-4572
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2191 | 2191 | | |
2192 | 2192 | | |
2193 | 2193 | | |
| 2194 | + | |
2194 | 2195 | | |
2195 | 2196 | | |
2196 | 2197 | | |
| |||
2237 | 2238 | | |
2238 | 2239 | | |
2239 | 2240 | | |
| 2241 | + | |
2240 | 2242 | | |
2241 | 2243 | | |
2242 | 2244 | | |
| |||
2364 | 2366 | | |
2365 | 2367 | | |
2366 | 2368 | | |
| 2369 | + | |
2367 | 2370 | | |
2368 | 2371 | | |
2369 | 2372 | | |
| |||
0 commit comments