Class: Furnace::AVM2::Tokens::ClosureToken
- Inherits:
-
CalleeToken
- Object
- Code::SurroundedToken
- CalleeToken
- Furnace::AVM2::Tokens::ClosureToken
- Includes:
- IsComplex
- Defined in:
- lib/furnace-avm2/source/implementation_tokens/closure_token.rb
Instance Method Summary collapse
-
#initialize(origin, body, options = {}) ⇒ ClosureToken
constructor
A new instance of ClosureToken.
Methods included from IsComplex
Methods inherited from CalleeToken
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, ={}) super(origin, [ ClosureNameToken.new(origin, ) ], body.method, body, .merge({ closure: true })) end |