pub trait RootNode<'a> {
    fn maybe_text_info(&self) -> Option<&'a SourceTextInfo>;
    fn maybe_token_container(&self) -> Option<&'a TokenContainer<'a>>;
    fn maybe_comment_container(&self) -> Option<&'a CommentContainer<'a>>;

    fn token_at_index(&self, index: usize) -> Option<&'a TokenAndSpan> { ... }
    fn token_container(&self) -> &'a TokenContainer<'a> { ... }
    fn comment_container(&self) -> &'a CommentContainer<'a> { ... }
}
Expand description

A Module or Script node.

Required Methods

Provided Methods

Implementors