Class: Furnace::AVM2::Tokens::ReturnToken

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

Instance Method Summary collapse

Instance Method Details

#text_afterObject



12
13
14
# File 'lib/furnace-avm2/source/implementation_tokens/return_token.rb', line 12

def text_after
  ";\n"
end

#text_beforeObject



4
5
6
7
8
9
10
# File 'lib/furnace-avm2/source/implementation_tokens/return_token.rb', line 4

def text_before
  if @children.any?
    "return "
  else
    "return"
  end
end