def comment_targets
: () -> Array[Node | Location]
def deconstruct_keys
: (Array keys) -> { node_id: Integer
, location: Location
, opening_loc
: Location
?, content_loc
: Location
, closing_loc
: Location
?, unescaped: String
}
attr_reader opening_loc
: Location
?
attr_reader content_loc
: Location
Occasionally it’s helpful to treat a string as if it were interpolated so that there’s a consistent interface for working with strings.
def comment_targets
: () -> Array[Node | Location]
def deconstruct_keys
: (Array keys) -> { node_id: Integer
, location: Location
, keyword_loc
: Location
, lparen_loc
: Location
?, arguments: ArgumentsNode
?, rparen_loc
: Location
?, block: BlockNode
| BlockArgumentNode
| nil }
def comment_targets
: () -> Array[Node | Location]
def deconstruct_keys
: (Array keys) -> { node_id: Integer
, location: Location
, opening_loc
: Location
?, value_loc
: Location
?, closing_loc
: Location
?, unescaped: String
}
attr_reader opening_loc
: Location
?
def comment_targets
: () -> Array[Node | Location]
def deconstruct_keys
: (Array keys) -> { node_id: Integer
, location: Location
}
def comment_targets
: () -> Array[Node | Location]
def deconstruct_keys
: (Array keys) -> { node_id: Integer
, location: Location
, names: Array[SymbolNode | InterpolatedSymbolNode], keyword_loc
: Location
}
def comment_targets
: () -> Array[Node | Location]
def deconstruct_keys
: (Array keys) -> { node_id: Integer
, location: Location
, keyword_loc
: Location
, predicate: Prism::node, then_keyword_loc
: Location
?, statements: StatementsNode
?, else_clause
: ElseNode
?, end_keyword_loc
: Location
? }
def comment_targets
: () -> Array[Node | Location]
def deconstruct_keys
: (Array keys) -> { node_id: Integer
, location: Location
, keyword_loc
: Location
, do_keyword_loc
: Location
?, closing_loc
: Location
?, predicate: Prism::node, statements: StatementsNode
? }
def begin_modifier?: () -> bool
def comment_targets
: () -> Array[Node | Location]
def deconstruct_keys
: (Array keys) -> { node_id: Integer
, location: Location
, keyword_loc
: Location
, conditions: Array, then_keyword_loc
: Location
?, statements: StatementsNode
? }
def comment_targets
: () -> Array[Node | Location]
def deconstruct_keys
: (Array keys) -> { node_id: Integer
, location: Location
, keyword_loc
: Location
, do_keyword_loc
: Location
?, closing_loc
: Location
?, predicate: Prism::node, statements: StatementsNode
? }
def begin_modifier?: () -> bool
def comment_targets
: () -> Array[Node | Location]