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]
Represents the opening location of the array pattern.
foo in [1, 2] ^
def comment_targets
: () -> Array[Node | Location]
def comment_targets
: () -> Array[Node | Location]
def comment_targets
: () -> Array[Node | Location]
def comment_targets
: () -> Array[Node | Location]
def comment_targets
: () -> Array[Node | Location]
def comment_targets
: () -> Array[Node | Location]
def repeated_parameter?: () -> bool
def comment_targets
: () -> Array[Node | Location]
Represents the location of the opening ‘|`.
[1, 2, 3].each { |i| puts x } ^
def comment_targets
: () -> Array[Node | Location]
def repeated_parameter?: () -> bool
def comment_targets
: () -> Array[Node | Location]
Represents the opening location of the block parameters.
-> (a, b = 1; local) { } ^ foo do |a, b = 1; local| ^ end
def comment_targets
: () -> Array[Node | Location]
def comment_targets
: () -> Array[Node | Location]
def call_operator
: () -> String
?
def comment_targets
: () -> Array[Node | Location]
def call_operator
: () -> String
?
def comment_targets
: () -> Array[Node | Location]