Class: Furnace::AVM2::Tokens::LabelDeclarationToken

Inherits:
Code::TerminalToken
  • Object
show all
Defined in:
lib/furnace-avm2/source/implementation_tokens/label_declaration_token.rb

Instance Method Summary collapse

Constructor Details

#initialize(origin, value, options = {}) ⇒ LabelDeclarationToken

Returns a new instance of LabelDeclarationToken.



3
4
5
6
# File 'lib/furnace-avm2/source/implementation_tokens/label_declaration_token.rb', line 3

def initialize(origin, value, options={})
  super(origin, options)
  @value = value
end

Instance Method Details

#to_textObject



8
9
10
# File 'lib/furnace-avm2/source/implementation_tokens/label_declaration_token.rb', line 8

def to_text
  "#{@value}: "
end