Class: Rubycc::Front::AST::If
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::AST::If
- Defined in:
- lib/rubycc/front/ast.rb
Overview
if (condition) then_stmt with an optional else else_stmt.
else_stmt is nil when there is no else clause.
Instance Attribute Summary collapse
-
#condition ⇒ Object
readonly
Returns the value of attribute condition.
-
#else_stmt ⇒ Object
readonly
Returns the value of attribute else_stmt.
-
#then_stmt ⇒ Object
readonly
Returns the value of attribute then_stmt.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Attribute Details
#condition ⇒ Object (readonly)
Returns the value of attribute condition
245 246 247 |
# File 'lib/rubycc/front/ast.rb', line 245 def condition @condition end |
#else_stmt ⇒ Object (readonly)
Returns the value of attribute else_stmt
245 246 247 |
# File 'lib/rubycc/front/ast.rb', line 245 def else_stmt @else_stmt end |
#then_stmt ⇒ Object (readonly)
Returns the value of attribute then_stmt
245 246 247 |
# File 'lib/rubycc/front/ast.rb', line 245 def then_stmt @then_stmt end |
#token ⇒ Object (readonly)
Returns the value of attribute token
245 246 247 |
# File 'lib/rubycc/front/ast.rb', line 245 def token @token end |