Struct lib_ruby_parser::nodes::Args [−][src]
#[repr(C)]pub struct Args { pub args: Vec<Node>, pub expression_l: Loc, pub begin_l: Option<Loc>, pub end_l: Option<Loc>, }
Expand description
Represents an arguments list
Args(vec![Arg("a"), Optarg("b", Int("1"))]) in def m(a, b = 1); end
Fields
args: Vec<Node>List of arguments
expression_l: LocLocation of the full expression
def m(a, b = 1, c:, &blk); end
~~~~~~~~~~~~~~~~~~~~
begin_l: Option<Loc>Location of the open parenthesis
def m(a, b = 1, c:, &blk); end
~
None for code like def m; end or def m arg; end
end_l: Option<Loc>Location of the closing parenthesis
def m(a, b = 1, c:, &blk); end
~
None for code like def m; end or def m arg; end
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Argsimpl UnwindSafe for ArgsBlanket Implementations
Mutably borrows from an owned value. Read more