Class: Rubycc::Front::AST::Case
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::AST::Case
- Defined in:
- lib/rubycc/front/ast.rb
Overview
A case <constant>: statement label (6.8.1). value is the case
constant folded to a Ruby Integer at parse time (an integer or character
constant, optionally signed — general constant-expression evaluation
arrives in a later step). body is the labeled statement. A Case only
has meaning inside a switch; the generator diagnoses one that is not.
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body
293 294 295 |
# File 'lib/rubycc/front/ast.rb', line 293 def body @body end |
#token ⇒ Object (readonly)
Returns the value of attribute token
293 294 295 |
# File 'lib/rubycc/front/ast.rb', line 293 def token @token end |
#value ⇒ Object (readonly)
Returns the value of attribute value
293 294 295 |
# File 'lib/rubycc/front/ast.rb', line 293 def value @value end |