You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yeast: Add location heuristic for synthetic nodes with no location set
For such nodes, we assign them the zero-length location at the beginning
of the matched input node.
Also adds a bunch of helpers for overriding this range, in particular
source_range_of_all can be passed a selection of nodes, and produces a
range encompassing all of them, whereas literal_at_start_of and
literal_with_source_range_of create literals with the specified ranges.
For now accessing this machinery can only happen inside of Rust blocks.
If we find ourselves doing this kind of location massaging a lot, we may
want to add a bespoke syntax for it.
0 commit comments