Class: Prism::LocalVariableOperatorWriteNode
- Defined in:
- lib/prism/node_ext.rb,
lib/prism/desugar_compiler.rb
Instance Method Summary collapse
-
#desugar ⇒ Object
:nodoc:.
-
#operator ⇒ Object
Returns the binary operator used to modify the receiver.
-
#operator_loc ⇒ Object
Returns the location of the binary operator used to modify the receiver.
Methods inherited from Node
#deprecated, #newline_flag!, #newline_flag?
Instance Method Details
#desugar ⇒ Object
:nodoc:
248 249 250 |
# File 'lib/prism/desugar_compiler.rb', line 248 def desugar # :nodoc: DesugarOperatorWriteNode.new(self, source, :local_variable_read_node, :local_variable_write_node, name: name, depth: depth).compile end |
#operator ⇒ Object
Returns the binary operator used to modify the receiver. This method is deprecated in favor of #binary_operator.
451 452 453 454 |
# File 'lib/prism/node_ext.rb', line 451 def operator deprecated("binary_operator") binary_operator end |
#operator_loc ⇒ Object
Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of #binary_operator_loc.
458 459 460 461 |
# File 'lib/prism/node_ext.rb', line 458 def operator_loc deprecated("binary_operator_loc") binary_operator_loc end |