Chromium Code Reviews
Description[js_ast] adds Identifier that merges VariableDeclaration/Use and Parameter
Also changes Printer to not walk the tree an extra time unless we are minifiying.
The tree structure appears to be helping VarCollector, by encoding some information into the static AST structure. (although some aspects were unused, such as function names). It's easy enough to encode this behavior in VarCollector itself. Having a unified Identifier benefits our tree transform, since we don't need to worry about generating three different types of things under largely identical circumstances.
I'm planning to build on this later, but this version is purely a refactor.
R=vsm@google.com
Committed: https://github.com/dart-lang/dev_compiler/commit/2ce12f647a20e8125bf1617a331f25f65a58d16d
Patch Set 1 #
Total comments: 2
Messages
Total messages: 4 (1 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||