Class: Baba::Expr::Call

Inherits:
Object
  • Object
show all
Defined in:
lib/baba/expr.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(callee, paren, arguments) ⇒ Call

Returns a new instance of Call.



42
43
44
# File 'lib/baba/expr.rb', line 42

def initialize(callee, paren, arguments)
  @callee = callee; @paren = paren; @arguments = arguments
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



40
41
42
# File 'lib/baba/expr.rb', line 40

def arguments
  @arguments
end

#calleeObject (readonly)

Returns the value of attribute callee.



40
41
42
# File 'lib/baba/expr.rb', line 40

def callee
  @callee
end

#parenObject (readonly)

Returns the value of attribute paren.



40
41
42
# File 'lib/baba/expr.rb', line 40

def paren
  @paren
end

Instance Method Details

#accept(visitor) ⇒ Object



46
47
48
# File 'lib/baba/expr.rb', line 46

def accept(visitor)
  visitor.visit_call_expr(self)
end