Method: Loxxy::Ast::LoxFunStmt#initialize

Defined in:
lib/loxxy/ast/lox_fun_stmt.rb

#initialize(aPosition, aName, paramList, aBody) ⇒ LoxFunStmt

Returns a new instance of LoxFunStmt.

Parameters:

  • aPosition (Rley::Lexical::Position)

    Position of the entry in the input stream.

  • aName (String)
  • arguments (Array<String>)
  • body (Ast::LoxBlockStmt)


18
19
20
21
22
23
24
# File 'lib/loxxy/ast/lox_fun_stmt.rb', line 18

def initialize(aPosition, aName, paramList, aBody)
  super(aPosition)
  @name = aName.dup
  @params = paramList
  @body = aBody
  @is_method = false
end