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