Class: Furnace::AVM2::Tokens::ClosureToken

Inherits:
CalleeToken
  • Object
show all
Includes:
IsComplex
Defined in:
lib/furnace-avm2/source/implementation_tokens/closure_token.rb

Instance Method Summary collapse

Methods included from IsComplex

#complex?

Methods inherited from CalleeToken

#declaration, #text_after

Constructor Details

#initialize(origin, body, options = {}) ⇒ ClosureToken

Returns a new instance of ClosureToken.



5
6
7
8
9
# File 'lib/furnace-avm2/source/implementation_tokens/closure_token.rb', line 5

def initialize(origin, body, options={})
  super(origin, [
    ClosureNameToken.new(origin, options)
  ], body.method, body, options.merge({ closure: true }))
end