Struct lib_ruby_parser::nodes::SClass [−][src]
#[repr(C)]pub struct SClass {
pub expr: Box<Node>,
pub body: Option<Box<Node>>,
pub keyword_l: Loc,
pub operator_l: Loc,
pub end_l: Loc,
pub expression_l: Loc,
}Expand description
Represents opening a singleton class (i.e. class << foo; ... end;)
Fields
expr: Box<Node>Expression that is used to get a singleton class
Lvar("foo") for class << foo; end
body: Option<Box<Node>>Body of the block
keyword_l: LocLocation of the class keyword
class << foo; end
~~~~~operator_l: LocLocation of the << operator
class << foo; end
~~end_l: LocLocation of the end keyword
class << foo; end
~~~expression_l: LocLocation of the full expression
class << foo; end
~~~~~~~~~~~~~~~~~Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SClass
impl UnwindSafe for SClass
Blanket Implementations
Mutably borrows from an owned value. Read more