Trait swc_core::ecma::utils::swc_common::pass::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 features __ecma and __utils 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§