cairo_lang_syntax::node::helpers

Trait WrappedArgListHelper

source
pub trait WrappedArgListHelper {
    // Required methods
    fn arg_list(&self, db: &dyn SyntaxGroup) -> Option<ArgList>;
    fn right_bracket_syntax_node(&self, db: &dyn SyntaxGroup) -> SyntaxNode;
    fn left_bracket_syntax_node(&self, db: &dyn SyntaxGroup) -> SyntaxNode;
    fn left_bracket_stable_ptr(&self, db: &dyn SyntaxGroup) -> SyntaxStablePtrId;
}

Required Methods§

source

fn arg_list(&self, db: &dyn SyntaxGroup) -> Option<ArgList>

Pills the wrapping brackets to get the argument list. Returns None if self is Missing.

source

fn right_bracket_syntax_node(&self, db: &dyn SyntaxGroup) -> SyntaxNode

Gets the syntax node of the right wrapping bracket.

source

fn left_bracket_syntax_node(&self, db: &dyn SyntaxGroup) -> SyntaxNode

Gets the syntax node of the left wrapping bracket.

source

fn left_bracket_stable_ptr(&self, db: &dyn SyntaxGroup) -> SyntaxStablePtrId

Gets a stable pointer to the left wrapping bracket.

Implementors§