#![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 {} pub struct Item { pub opt_vec1: Option>, pub opt_vec2: Option>, } pub enum Enum { Item(Item), } define!({ pub struct Item { pub opt_vec1: Option>, pub opt_vec2: Option>, } pub enum Enum { Item(Item), } });