Struct lib_ruby_parser::nodes::KwBegin [−][src]
#[repr(C)]pub struct KwBegin { pub statements: Vec<Node>, pub begin_l: Option<Loc>, pub end_l: Option<Loc>, pub expression_l: Loc, }
Expand description
Represents an explicit begin; end block.
The reason why it’s different is that only
begin; foo; end while cond
is a post-while loop (same with post-until loop)
Fields
statements: Vec<Node>A list of statements
begin_l: Option<Loc>Location of the begin keyword
begin; foo; end
~~~~~
end_l: Option<Loc>Location of the begin keyword
begin; foo; end
~~~
expression_l: LocLocation of the full expression
begin; foo; bar
~~~~~~~~~~~~~~~
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KwBeginimpl UnwindSafe for KwBeginBlanket Implementations
Mutably borrows from an owned value. Read more