pub trait RootNode<'a> {
    fn source_file(&self) -> Option<&'a dyn SourceFile>;
    fn token_container(&self) -> Option<&'a TokenContainer<'a>>;
    fn comment_container(&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