dillon1000/react
Commit
Browse files [rust] ESTree representation with basic serialization support
Start of an `estree` crate for representing ESTree with serialization to/from ESTree JSON. To get the serialization to work quickly I took some shortcuts and uses a slightly less precise modeling. Longer-term we can write some custom serialization code and get more precise types (eg avoid the `ExpressionLike` enum in favor of proper Expression and ExpressionOrFoo types).
Changed paths6 files
First-parent comparisoncompiler/forget/crates/estree/Cargo.toml AddedA compiler/forget/crates/estree/src/for-statement.json AddedA compiler/forget/crates/estree/src/kitchen-sink.json AddedA compiler/forget/crates/estree/src/lib.rs AddedA compiler/forget/crates/estree/src/simple.json AddedA compiler/forget/crates/estree/src/test.json AddedPatch
Files changed
Rendering syntax-highlighted changes…