Class: Rubycc::Front::AST::Switch
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::AST::Switch
- Defined in:
- lib/rubycc/front/ast.rb
Overview
switch (control) body (ISO C 6.8.4.2). control is the controlling
expression (an integer type). body is a single statement — usually a
compound-statement — inside which case/default labels mark the entry
points the generator lowers to a comparison chain. A case label may sit
at any depth of a nested statement in body; the ones that belong to
this switch are exactly those not enclosed by a nested switch.
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#control ⇒ Object
readonly
Returns the value of attribute control.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body
286 287 288 |
# File 'lib/rubycc/front/ast.rb', line 286 def body @body end |
#control ⇒ Object (readonly)
Returns the value of attribute control
286 287 288 |
# File 'lib/rubycc/front/ast.rb', line 286 def control @control end |
#token ⇒ Object (readonly)
Returns the value of attribute token
286 287 288 |
# File 'lib/rubycc/front/ast.rb', line 286 def token @token end |