mirror of
https://github.com/swc-project/swc.git
synced 2024-11-27 13:38:33 +03:00
e1764f907b
* `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.
13 lines
256 B
TOML
13 lines
256 B
TOML
[package]
|
|
name = "swc_common"
|
|
version = "0.1.0"
|
|
authors = ["강동윤 <kdy1@outlook.kr>"]
|
|
|
|
[dependencies]
|
|
atty = "0.2"
|
|
fnv = "1"
|
|
string_cache = "0.6"
|
|
either = "1.4"
|
|
rustc-ap-rustc_errors = "16"
|
|
rustc-ap-syntax_pos = "16"
|
|
swc_macros = { path = "../macros" } |