Class: Furnace::AVM2::Tokens::ConstructorToken
- Inherits:
-
CalleeToken
- Object
- Code::SurroundedToken
- CalleeToken
- Furnace::AVM2::Tokens::ConstructorToken
- Defined in:
- lib/furnace-avm2/source/declaration_tokens/constructor_token.rb
Instance Method Summary collapse
-
#initialize(origin, options = {}) ⇒ ConstructorToken
constructor
A new instance of ConstructorToken.
Methods inherited from CalleeToken
Constructor Details
#initialize(origin, options = {}) ⇒ ConstructorToken
Returns a new instance of ConstructorToken.
5 6 7 8 9 10 11 12 13 |
# File 'lib/furnace-avm2/source/declaration_tokens/constructor_token.rb', line 5 def initialize(origin, ={}) super(origin, [ ConstructorSpecifiersToken.new(origin, ), FunctionNameToken.new(origin, [ MultinameToken.new(origin, [:instance].name, .merge(omit_ns: true)) ], ), ], origin.initializer, origin.initializer_body, .merge({ index: origin.initializer_idx })) end |