Struct parse_tree::PtNode [−][src]
pub struct PtNode { /* fields omitted */ }
Methods
impl PtNode
[src]
impl PtNode
pub fn symbol(&self) -> Symbol
[src]
pub fn symbol(&self) -> Symbol
The symbol of the token at this node.
pub fn range(&self) -> TextRange
[src]
pub fn range(&self) -> TextRange
The text range covered by the token at this node.
pub fn parent(&self) -> Option<PtNodeId>
[src]
pub fn parent(&self) -> Option<PtNodeId>
The parent node of this node.
pub fn first_child(&self) -> Option<PtNodeId>
[src]
pub fn first_child(&self) -> Option<PtNodeId>
The first child of this node.
pub fn next_sibling(&self) -> Option<PtNodeId>
[src]
pub fn next_sibling(&self) -> Option<PtNodeId>
The next sibling of this node
Trait Implementations
impl Debug for PtNode
[src]
impl Debug for PtNode
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for PtNode
[src]
impl Clone for PtNode