Struct lib_ruby_parser::nodes::Args
source · #[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: Loc
Location 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§
source§impl PartialEq for Args
impl PartialEq for Args
impl StructuralPartialEq for Args
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more