Class: Rubycc::Front::AST::Label
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::AST::Label
- Defined in:
- lib/rubycc/front/ast.rb
Overview
A labeled statement identifier: statement (6.8.1), the target of a
goto. name is the label's name and body the statement it prefixes
(often the empty statement, as in "end: ;"). Distinguished from an
ordinary expression-statement by two tokens of lookahead — an identifier
immediately followed by ":".
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body
311 312 313 |
# File 'lib/rubycc/front/ast.rb', line 311 def body @body end |
#name ⇒ Object (readonly)
Returns the value of attribute name
311 312 313 |
# File 'lib/rubycc/front/ast.rb', line 311 def name @name end |
#token ⇒ Object (readonly)
Returns the value of attribute token
311 312 313 |
# File 'lib/rubycc/front/ast.rb', line 311 def token @token end |