Class: Rubycc::Front::AST::For

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



270
271
272
# File 'lib/rubycc/front/ast.rb', line 270

def body
  @body
end

#conditionObject (readonly)

Returns the value of attribute condition

Returns:

  • (Object)

    the current value of condition



270
271
272
# File 'lib/rubycc/front/ast.rb', line 270

def condition
  @condition
end

#initObject (readonly)

Returns the value of attribute init

Returns:

  • (Object)

    the current value of init



270
271
272
# File 'lib/rubycc/front/ast.rb', line 270

def init
  @init
end

#stepObject (readonly)

Returns the value of attribute step

Returns:

  • (Object)

    the current value of step



270
271
272
# File 'lib/rubycc/front/ast.rb', line 270

def step
  @step
end

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



270
271
272
# File 'lib/rubycc/front/ast.rb', line 270

def token
  @token
end