dillon1000/react

Commit

[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).
Browse files
Changed paths6 files
First-parent comparison
A compiler/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 Added
Patch

Files changed

Rendering syntax-highlighted changes…