Class: Prism::ClassVariableOperatorWriteNode

Inherits:
Node
  • Object
show all
Defined in:
lib/prism/node_ext.rb,
lib/prism/desugar_compiler.rb

Instance Method Summary collapse

Methods inherited from Node

#deprecated, #newline_flag!, #newline_flag?

Instance Method Details

#desugarObject

:nodoc:



176
177
178
# File 'lib/prism/desugar_compiler.rb', line 176

def desugar # :nodoc:
  DesugarOperatorWriteNode.new(self, source, :class_variable_read_node, :class_variable_write_node, name: name).compile
end

#operatorObject

Returns the binary operator used to modify the receiver. This method is deprecated in favor of #binary_operator.



355
356
357
358
# File 'lib/prism/node_ext.rb', line 355

def operator
  deprecated("binary_operator")
  binary_operator
end

#operator_locObject

Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of #binary_operator_loc.



362
363
364
365
# File 'lib/prism/node_ext.rb', line 362

def operator_loc
  deprecated("binary_operator_loc")
  binary_operator_loc
end