swc_core::common::pass

Trait NodeRef

pub trait NodeRef: Copy {
    type ParentKind: ParentKind;

    // Required methods
    fn kind(&self) -> Self::ParentKind;
    fn set_index(&mut self, index: usize);
}
Available on crate feature __common only.

Required Associated Types§

Required Methods§

fn kind(&self) -> Self::ParentKind

fn set_index(&mut self, index: usize)

Object Safety§

This trait is not object safe.

Implementors§