Class: Furnace::AVM2::Tokens::ClassInheritanceToken

Inherits:
Code::SurroundedToken
  • Object
show all
Defined in:
lib/furnace-avm2/source/declaration_tokens/class_inheritance_token.rb

Instance Method Summary collapse

Constructor Details

#initialize(origin, options = {}) ⇒ ClassInheritanceToken

Returns a new instance of ClassInheritanceToken.



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

def initialize(origin, options={})
  super(origin, [
    MultinameToken.new(origin, origin.super_name, options)
  ], options)
end

Instance Method Details

#text_afterObject



13
14
15
# File 'lib/furnace-avm2/source/declaration_tokens/class_inheritance_token.rb', line 13

def text_after
  " "
end

#text_beforeObject



9
10
11
# File 'lib/furnace-avm2/source/declaration_tokens/class_inheritance_token.rb', line 9

def text_before
  "extends "
end