Trait dprint_swc_ecma_ast_view::RootNode[][src]

pub trait RootNode<'a> {
    fn source_file(&self) -> Option<&'a dyn SourceFile>;
fn tokens(&self) -> Option<&'a TokenContainer<'a>>;
fn comments(&self) -> Option<&'a CommentContainer<'a>>; fn token_at_index(&self, index: usize) -> Option<&'a TokenAndSpan> { ... } }
Expand description

A Module or Script node.

Required methods

Provided methods

Implementors