Class: Rubycc::Front::AST::For
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::AST::For
- Defined in:
- lib/rubycc/front/ast.rb
Overview
for (init; condition; step) body. init is an array of
VariableDecl (from a declaration clause), an expression node (from an
expression clause) or nil (clause omitted). condition and step
are expression nodes or nil when omitted.
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#condition ⇒ Object
readonly
Returns the value of attribute condition.
-
#init ⇒ Object
readonly
Returns the value of attribute init.
-
#step ⇒ Object
readonly
Returns the value of attribute step.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body
270 271 272 |
# File 'lib/rubycc/front/ast.rb', line 270 def body @body end |
#condition ⇒ Object (readonly)
Returns the value of attribute condition
270 271 272 |
# File 'lib/rubycc/front/ast.rb', line 270 def condition @condition end |
#init ⇒ Object (readonly)
Returns the value of attribute init
270 271 272 |
# File 'lib/rubycc/front/ast.rb', line 270 def init @init end |
#step ⇒ Object (readonly)
Returns the value of attribute step
270 271 272 |
# File 'lib/rubycc/front/ast.rb', line 270 def step @step end |
#token ⇒ Object (readonly)
Returns the value of attribute token
270 271 272 |
# File 'lib/rubycc/front/ast.rb', line 270 def token @token end |