[][src]Trait sixtyfps_compilerlib::parser::SyntaxNodeEx

pub trait SyntaxNodeEx {
    fn child_node(&self, kind: SyntaxKind) -> Option<SyntaxNode>;
fn child_token(&self, kind: SyntaxKind) -> Option<SyntaxToken>;
fn child_text(&self, kind: SyntaxKind) -> Option<String>; }

Helper functions to easily get the children of a given kind. This traits is only supposed to be implemented on SyntaxNope

Required methods

fn child_node(&self, kind: SyntaxKind) -> Option<SyntaxNode>

fn child_token(&self, kind: SyntaxKind) -> Option<SyntaxToken>

fn child_text(&self, kind: SyntaxKind) -> Option<String>

Loading content...

Implementors

impl SyntaxNodeEx for SyntaxNode[src]

Loading content...