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

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

Instance Method Summary collapse

Methods inherited from CalleeToken

#declaration, #text_after

Constructor Details

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

Returns a new instance of ClosureToken.



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

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