dillon1000/react
Commit
Browse files [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.
Changed paths3 files
First-parent comparisoncompiler/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…