swc/ecmascript
강동윤 e1764f907b [WIP] Make ast nodes contain span
* `struct Expr` + `enum ExprKind` -> `enum Expr`

`Expr` / `ExprKind` approach does not work well with recursive
 processing based on the type system because we can't access common
 fields like span while processing child node like `MemberExpr`.

As ast processing is inherently recursive, we should use a
 recursive-friendly approach.

 * `#[derive(FromVariants)]`
It creates lots of `From<T>` to help using ast enums as a real sum type.

 * `#[derive(Spanned)]`

Inspired by https://docs.rs/syn/0.12.13/syn/spanned/trait.Spanned.html

It does not handle attributes yet.

 * Parser is not updated yet.
2018-03-03 19:37:01 +09:00
..
ast [WIP] Make ast nodes contain span 2018-03-03 19:37:01 +09:00
parser Fix rls (again) (#33) 2018-02-28 14:35:52 +09:00
parser_macros Improve error reporting of ecmascript parser 2018-01-22 21:47:16 +09:00
src Revert "Merge remote-tracking branch 'refs/remotes/origin/simplifier'" 2018-01-14 14:00:01 +09:00
Cargo.toml Use FileMap as an input. 2018-01-23 21:38:48 +09:00