Represents the use of the && operator or the and keyword.

left and right
^^^^^^^^^^^^^^
Attributes
Read

Represents the left side of the expression. It can be any non-void expression.

left and right
^^^^

1 && 2
^
Read

Represents the right side of the expression.

left && right
        ^^^^^

1 and 2
      ^
Class Methods

Initialize a new AndNode node.

Return a symbol representation of this node type. See Node::type.

Instance Methods

Implements case-equality for the node. This is effectively == but without comparing the value of locations. Locations are checked only for presence.

def accept: (Visitor visitor) -> void

def child_nodes: () -> Array

def comment_targets: () -> Array[Node | Location]

def copy: (?node_id: Integer, ?location: Location, ?flags: Integer, ?left: Prism::node, ?right: Prism::node, ?operator_loc: Location) -> AndNode

def deconstruct_keys: (Array keys) -> { node_id: Integer, location: Location, left: Prism::node, right: Prism::node, operator_loc: Location }

def inspect -> String

def operator: () -> String

The location of the and keyword or the && operator.

left and right
     ^^^

Save the operator_loc location using the given saved source so that it can be retrieved later.

Return a symbol representation of this node type. See Node#type.