Class: Loxxy::Ast::LoxCallExpr
- Inherits:
-
LoxCompoundExpr
- Object
- LoxNode
- LoxCompoundExpr
- Loxxy::Ast::LoxCallExpr
- Defined in:
- lib/loxxy/ast/lox_call_expr.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#callee ⇒ Object
Returns the value of attribute callee.
Attributes inherited from LoxCompoundExpr
Attributes inherited from LoxNode
Instance Method Summary collapse
-
#initialize(aPosition, argList) ⇒ LoxCallExpr
constructor
A new instance of LoxCallExpr.
Methods inherited from LoxCompoundExpr
Methods inherited from LoxNode
Methods included from ASTVisitee
Constructor Details
#initialize(aPosition, argList) ⇒ LoxCallExpr
Returns a new instance of LoxCallExpr.
13 14 15 16 |
# File 'lib/loxxy/ast/lox_call_expr.rb', line 13 def initialize(aPosition, argList) super(aPosition, []) @arguments = argList.flatten end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
9 10 11 |
# File 'lib/loxxy/ast/lox_call_expr.rb', line 9 def arguments @arguments end |
#callee ⇒ Object
Returns the value of attribute callee.
8 9 10 |
# File 'lib/loxxy/ast/lox_call_expr.rb', line 8 def callee @callee end |