Package org.ruby_lang.prism
Class Nodes.LocalVariableOperatorWriteNode
java.lang.Object
org.ruby_lang.prism.Nodes.Node
org.ruby_lang.prism.Nodes.LocalVariableOperatorWriteNode
- Enclosing class:
- Nodes
Represents assigning to a local variable using an operator that isn't `=`.
target += value
^^^^^^^^^^^^^^^
-
Field Summary
FieldsFields inherited from class org.ruby_lang.prism.Nodes.Node
EMPTY_ARRAY, length, nodeId, startOffset -
Constructor Summary
ConstructorsConstructorDescriptionLocalVariableOperatorWriteNode(int nodeId, int startOffset, int length, Nodes.Node value, byte[] name, byte[] binary_operator, int depth) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(AbstractNodeVisitor<T> visitor) protected String<T> voidvisitChildNodes(AbstractNodeVisitor<T> visitor) Methods inherited from class org.ruby_lang.prism.Nodes.Node
endOffset, hasNewLineFlag, setNewLineFlag, setNewLineFlag, toString
-
Field Details
-
value
-
name
public final byte[] name -
binary_operator
public final byte[] binary_operator -
depth
public final int depth
-
-
Constructor Details
-
LocalVariableOperatorWriteNode
public LocalVariableOperatorWriteNode(int nodeId, int startOffset, int length, Nodes.Node value, byte[] name, byte[] binary_operator, int depth)
-
-
Method Details
-
visitChildNodes
- Specified by:
visitChildNodesin classNodes.Node
-
childNodes
- Specified by:
childNodesin classNodes.Node
-
accept
- Specified by:
acceptin classNodes.Node
-
toString
- Specified by:
toStringin classNodes.Node
-