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 comment_targets
: () -> Array[Node | Location]
def comment_targets
: () -> Array[Node | Location]
attr_reader lparen_loc
: Location
?
attr_reader rparen_loc
: Location
?
Returns the byte offset of the end of the line corresponding to the given byte offset.
Binary search through the offsets to find the line number for the given byte offset.
These are the comments that are associated with this location that exist after the end of this location.
Attach a comment to the trailing comments of this location.
Returns all of the lines of the source code associated with this location.
The source code that this location represents starting from the beginning of the line that this location starts on to the end of the line that this location ends on.
The line number where this location ends.
The column number in bytes where this location starts from the start of the line.
Returns a string representation of the syntax tree with the errors displayed inline.
Shortcut for combining two procs into one that returns true if both return true.
Shortcut for combining two procs into one that returns true if either returns true.
Raise an error because the given node is not supported.