Results for: "Array"

def contains_splat?: () -> bool

Represents the optional source location for the opening token.

[1,2,3]                 # "["
%w[foo bar baz]         # "%w["
%I(apple orange banana) # "%I("
foo = 1, 2, 3           # nil

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

Represents the optional source location for the closing token.

[1,2,3]                 # "]"
%w[foo bar baz]         # "]"
%I(apple orange banana) # ")"
foo = 1, 2, 3           # nil

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

def opening: () -> String?

def closing: () -> String?

def inspect -> String

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

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

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

Initialize a new ArrayPatternNode node.

def accept: (Visitor visitor) -> void

def child_nodes: () -> Array[nil | Node]

def compact_child_nodes: () -> Array

def copy: (?node_id: Integer, ?location: Location, ?flags: Integer, ?constant: ConstantReadNode | ConstantPathNode | nil, ?requireds: Array, ?rest: Prism::node?, ?posts: Array, ?opening_loc: Location?, ?closing_loc: Location?) -> ArrayPatternNode

def deconstruct: () -> Array[nil | Node]

def deconstruct_keys: (Array keys) -> { node_id: Integer, location: Location, constant: ConstantReadNode | ConstantPathNode | nil, requireds: Array, rest: Prism::node?, posts: Array, opening_loc: Location?, closing_loc: Location? }

Represents the opening location of the array pattern.

foo in [1, 2]
       ^

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

Represents the closing location of the array pattern.

foo in [1, 2]
            ^

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

def opening: () -> String?

def closing: () -> String?

def inspect -> String

Search took: 5ms  ·  Total Results: 2478