swc_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);
}

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§