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]
attr_reader keyword_loc
: Location
attr_reader lparen_loc
: Location
?
attr_reader rparen_loc
: Location
?
Return the character offset for the given byte offset.
Return the column number in characters for the given byte offset.
Return the character offset for the given byte offset.
Return the column number in characters for the given byte offset.
Returns a string representation of the syntax tree with the errors displayed inline.
Raise an error because the given node is not supported.