mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 00:23:10 +03:00
24 lines
407 B
Rust
24 lines
407 B
Rust
#![allow(clippy::ptr_arg)]
|
|
|
|
use swc_visit::define;
|
|
|
|
#[derive(Debug, PartialEq)]
|
|
pub struct Item {
|
|
pub vec_opt1: Vec<Option<Item>>,
|
|
pub vec_opt2: Vec<Option<Enum>>,
|
|
}
|
|
#[derive(Debug, PartialEq)]
|
|
pub enum Enum {
|
|
Item(Item),
|
|
}
|
|
|
|
define!({
|
|
pub struct Item {
|
|
pub vec_opt1: Vec<Option<Item>>,
|
|
pub vec_opt2: Vec<Option<Enum>>,
|
|
}
|
|
pub enum Enum {
|
|
Item(Item),
|
|
}
|
|
});
|