#![allow(clippy::ptr_arg)] use std::any::Any; use swc_visit::define; /// Visitable nodes. pub trait Node: Any {} impl Node for T where T: Any {} #[derive(Debug, PartialEq)] pub struct Item { pub opt_vec1: Option>, pub opt_vec2: Option>, } #[derive(Debug, PartialEq)] pub enum Enum { Item(Item), } define!({ pub struct Item { pub opt_vec1: Option>, pub opt_vec2: Option>, } pub enum Enum { Item(Item), } });