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