#![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 field: usize, // pub inner: Option>, pub opt_vec: Option>, pub vec_opt: Vec>, } pub enum Enum { Item(Item), } define!({ pub struct Item { // pub field: usize, // pub inner: Option>, pub opt_vec: Option>, pub vec_opt: Vec>, } pub enum Enum { Item(Item), } });