swc/crates/swc_visit/tests/vec_opt.rs

24 lines
407 B
Rust
Raw Normal View History

2022-02-28 10:12:28 +03:00
#![allow(clippy::ptr_arg)]
2020-07-23 20:18:22 +03:00
use swc_visit::define;
2020-05-25 16:53:48 +03:00
#[derive(Debug, PartialEq)]
2020-05-25 16:53:48 +03:00
pub struct Item {
pub vec_opt1: Vec<Option<Item>>,
pub vec_opt2: Vec<Option<Enum>>,
}
#[derive(Debug, PartialEq)]
2020-05-25 16:53:48 +03:00
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),
}
});