Add public access to a SourceFile's code units (dart-lang/source_span#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 <devoncarew@google.com>
---------
Co-authored-by: Devon Carew <devoncarew@google.com>
3 files changed
tree: 2e190306fb69f0ff560094008750164b4f7e53bd
- pkgs/