dillon1000/react

Commit

[rust] Codegen AST visitor

Updates `estree` codegen to emit a Visitor trait (temporarily named `Visitor2` 
since there is a hand-rolled one that some code is using). We use knowledge of 
the grammar to only visit fields whose type is a Node or Enum, or an "object" 
type that opts into being visitable. The latter is used for Function and Class. 

This will make it much easier to write the semantic analyzer.
Browse files
Changed paths3 files
First-parent comparison
M compiler/forget/crates/forget_estree/src/generated.rs ModifiedM compiler/forget/crates/forget_estree_codegen/src/codegen.rs ModifiedM compiler/forget/crates/forget_estree_codegen/src/ecmascript.json Modified
Patch

Files changed

Rendering syntax-highlighted changes…