[−][src]Type Definition rowan::cursor::SyntaxElement
type SyntaxElement = NodeOrToken<SyntaxNode, SyntaxToken>;
type SyntaxElement = NodeOrToken<SyntaxNode, SyntaxToken>;
impl SyntaxElement
[src]pub fn text_range(&self) -> TextRange
[src]pub fn kind(&self) -> SyntaxKind
[src]pub fn parent(&self) -> Option<SyntaxNode>
[src]pub fn ancestors(&self) -> impl Iterator<Item = SyntaxNode>
[src]pub fn first_token(&self) -> Option<SyntaxToken>
[src]pub fn last_token(&self) -> Option<SyntaxToken>
[src]pub fn next_sibling_or_token(&self) -> Option<SyntaxElement>
[src]pub fn prev_sibling_or_token(&self) -> Option<SyntaxElement>
[src]impl Display for SyntaxElement
[src]impl<L: Language> From<NodeOrToken<SyntaxNode<L>, SyntaxToken<L>>> for SyntaxElement
[src]fn from(element: SyntaxElement<L>) -> SyntaxElement
[src]impl From<SyntaxNode> for SyntaxElement
[src]fn from(node: SyntaxNode) -> SyntaxElement
[src]impl From<SyntaxToken> for SyntaxElement
[src]fn from(token: SyntaxToken) -> SyntaxElement
[src]