Class: Furnace::AVM2::Tokens::BinaryOperatorToken

Inherits:
Code::SeparatedToken
  • Object
show all
Includes:
IsComplex
Defined in:
lib/furnace-avm2/source/implementation_tokens/binary_operator_token.rb

Instance Method Summary collapse

Methods included from IsComplex

#complex?

Constructor Details

#initialize(origin, children, operator, options = {}) ⇒ BinaryOperatorToken

Returns a new instance of BinaryOperatorToken.



5
6
7
8
# File 'lib/furnace-avm2/source/implementation_tokens/binary_operator_token.rb', line 5

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

Instance Method Details

#text_betweenObject



10
11
12
# File 'lib/furnace-avm2/source/implementation_tokens/binary_operator_token.rb', line 10

def text_between
  " #{@operator} "
end