This repository has been archived by the owner on Jan 14, 2025. It is now read-only.
Tags: dart-lang/source_span
Tags
Add public access to a SourceFile's code units (#93) * Add public access to a SourceFile's code units This makes it possible to efficiently reparse information from around a `FileSpan`, such as to expand it through surrounding whitespace characters. Otherwise, a caller would have to call `getText()` which can be very expensive in a tight loop. * Fix lints * Update CHANGELOG.md Co-authored-by: Devon Carew <[email protected]> --------- Co-authored-by: Devon Carew <[email protected]>
Fix header for multispan with null secondary urls (#72) If a multiple span highlight was created where all the secondary spans had `null` URLs they were filtered out from the comparison checking whether multiple files are involved. This bug was caused during the null safety migration. A similar bug previously existed if the primary span had a null URL and is also fixed. - Take a nullable list in `isAllTheSame`. Avoid using `null` as a sentinel for no item seen, use `.first` and `.skip(1)` to compare all elements. - Add tests for the case of primary and secondary spans with a null URL.
Bump SDK constraints for pub (#65) Use a 2.12.0 lower bound since pub does not understand allowed experiments for earlier versions. Use a 3.0.0 upper bound to avoid a warning in pub and to give some flexibility in publishing for stable.
Prep to release 1.8.0-nullsafety.1 Reverts #59 and removes now unnecessary `!`s. This requires a newer sdk than is available on dev, so run tests on be/raw/latest for now. The dart version in flutter should already be compatible with this version.
PreviousNext