Class: Furnace::AVM2::Tokens::ReturnToken
- Inherits:
-
Code::SurroundedToken
- Object
- Code::SurroundedToken
- Furnace::AVM2::Tokens::ReturnToken
- Defined in:
- lib/furnace-avm2/source/implementation_tokens/return_token.rb
Instance Method Summary collapse
Instance Method Details
#text_after ⇒ Object
12 13 14 |
# File 'lib/furnace-avm2/source/implementation_tokens/return_token.rb', line 12 def text_after ";\n" end |
#text_before ⇒ Object
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 |