def deconstruct_keys
: (Array keys) -> { node_id: Integer
, location: Location
, new_name
: GlobalVariableReadNode
| BackReferenceReadNode
| NumberedReferenceReadNode
, old_name
: GlobalVariableReadNode
| BackReferenceReadNode
| NumberedReferenceReadNode
| SymbolNode
| MissingNode
, keyword_loc
: Location
}
def comment_targets
: () -> Array[Node | Location]
def deconstruct_keys
: (Array keys) -> { node_id: Integer
, location: Location
, new_name
: SymbolNode
| InterpolatedSymbolNode
, old_name
: SymbolNode
| InterpolatedSymbolNode
| GlobalVariableReadNode
| MissingNode
, keyword_loc
: Location
}
def comment_targets
: () -> Array[Node | Location]
def deconstruct_keys
: (Array keys) -> { node_id: Integer
, location: Location
, left: Prism::node, right: Prism::node, operator_loc
: Location
}
def comment_targets
: () -> Array[Node | Location]
def deconstruct_keys
: (Array keys) -> { node_id: Integer
, location: Location
, left: Prism::node, right: Prism::node, operator_loc
: Location
}
def comment_targets
: () -> Array[Node | Location]
def deconstruct_keys
: (Array keys) -> { node_id: Integer
, location: Location
, arguments: Array }
def contains_keywords?: () -> bool
def contains_splat?: () -> bool
def comment_targets
: () -> Array[Node | Location]
def deconstruct_keys
: (Array keys) -> { node_id: Integer
, location: Location
, elements: Array, opening_loc
: Location
?, closing_loc
: Location
? }
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
def comment_targets
: () -> Array[Node | Location]
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] ^
def comment_targets
: () -> Array[Node | Location]
def deconstruct_keys
: (Array keys) -> { node_id: Integer
, location: Location
, key: Prism::node, value: Prism::node, operator_loc
: Location
? }
def comment_targets
: () -> Array[Node | Location]
def deconstruct_keys
: (Array keys) -> { node_id: Integer
, location: Location
, value: Prism::node?, operator_loc
: Location
}
def comment_targets
: () -> Array[Node | Location]
def deconstruct_keys
: (Array keys) -> { node_id: Integer
, location: Location
, name: Symbol
}
def comment_targets
: () -> Array[Node | Location]