Struct lib_ruby_parser::nodes::For [−][src]
#[repr(C)]pub struct For {
pub iterator: Box<Node>,
pub iteratee: Box<Node>,
pub body: Option<Box<Node>>,
pub keyword_l: Loc,
pub operator_l: Loc,
pub begin_l: Loc,
pub end_l: Loc,
pub expression_l: Loc,
}Expand description
Represents a for loop
Fields
iterator: Box<Node>Variable that is used in loop, Lvasgn("a") in for a in b; end
iteratee: Box<Node>Collection that is for iteration. Lvar("b") in for a in b; end
body: Option<Box<Node>>Body of the loop. None if there’s no body
keyword_l: LocLocation of the for keyword
for a in b; end
~~~operator_l: LocLocation of the in keyword
for a in b; end
~~begin_l: LocLocation of the do keyword
for a in b do; end
~~Note: this do is optional, and so begin_l can be None.
end_l: LocLocation of the end keyword
for a in b; end
~~~expression_l: LocLocation of the full expression
for a in b; end
~~~~~~~~~~~~~~~Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for For
impl UnwindSafe for For
Blanket Implementations
Mutably borrows from an owned value. Read more