Struct lib_ruby_parser::nodes::Yield [−][src]
#[repr(C)]pub struct Yield {
pub args: Vec<Node>,
pub keyword_l: Loc,
pub begin_l: Option<Loc>,
pub end_l: Option<Loc>,
pub expression_l: Loc,
}Expand description
Represents an yield keyword
Fields
args: Vec<Node>A list of arguments given to yield
keyword_l: LocLocation of the yield keyword
yield 1, 2
~~~~~begin_l: Option<Loc>Location of the open parenthesis
yield(1, 2)
~None if there are no parentheses
end_l: Option<Loc>Location of the closing parenthesis
yield(1, 2)
~None if there are no parentheses
expression_l: LocLocation of the full expression
yield(1, 2)
~~~~~~~~~~~Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Yield
impl UnwindSafe for Yield
Blanket Implementations
Mutably borrows from an owned value. Read more