Skip to content
instance method

Prism::Node#tunnel

tunnel(line, column)

Returns a list of nodes that are descendants of this node that contain the given line and column. This is useful for locating a node that is selected based on the line and column of the source code.

Important to note is that the column given to this method should be in bytes, as opposed to characters or code units.

See also #trailing_comments #type #to_dot also in 3.4