mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 07:02:28 +03:00
34 lines
463 B
Rust
34 lines
463 B
Rust
pub struct BinExpr {
|
|
pub left: Box<Expr>,
|
|
pub op: String,
|
|
pub right: Box<Expr>,
|
|
}
|
|
|
|
pub enum Expr {
|
|
Lit(Lit),
|
|
Bin(BinExpr),
|
|
}
|
|
|
|
pub enum Lit {
|
|
Number(usize),
|
|
}
|
|
|
|
#[rplugin::ast_for_plugin(crate)]
|
|
mod plugin {
|
|
|
|
pub struct BinExpr {
|
|
pub left: Box<Expr>,
|
|
pub op: String,
|
|
pub right: Box<Expr>,
|
|
}
|
|
|
|
pub enum Expr {
|
|
Lit(Lit),
|
|
Bin(BinExpr),
|
|
}
|
|
|
|
pub enum Lit {
|
|
Number(usize),
|
|
}
|
|
}
|