Track offsets instead of locations in InterpolationMap (#2674) This is semantically identical, but a little more efficient and easier to construct in situations without actual `SourceLocation`s.
Recent Commits to dart-sass:main
-
Track offsets instead of locations in InterpolationMap (#2674)
-
Add a separate `StylesheetParser.interpolatedStringToken()` method (#…
Add a separate `StylesheetParser.interpolatedStringToken()` method (#2675) Unlike `StringExpression.asInterpolation()`, this ensures that the text between interpolated expressions exactly matches the text in the original document.
-
Make sure all source spans use interpolation maps (#2673)
Make sure all source spans use interpolation maps (#2673) `Scanner.spanFrom` doesn't respect Sass's `InterpolationMap`, so this changes all span accesses to go through `Parser.spanFrom` and `Parser.spanFromPosition`.