Class: Furnace::AVM2::Tokens::MethodSpecifiersToken

Inherits:
SpecifiersToken
  • Object
show all
Defined in:
lib/furnace-avm2/source/declaration_tokens/method_specifiers_token.rb

Instance Method Summary collapse

Methods inherited from SpecifiersToken

#to_text

Instance Method Details

#specifiersObject



5
6
7
8
9
10
11
12
# File 'lib/furnace-avm2/source/declaration_tokens/method_specifiers_token.rb', line 5

def specifiers
  list, super_list = [], super
  list << "final"    if @origin.final? && !@options[:static]
  list << "override" if @origin.override? && !super_list.include?("private")
  list.concat super_list
  list << "native"   if @origin.body.nil? && @options[:environment] != :interface
  list
end