f04bc85e4f
- make sure nested blocks scopes are visited - make sure variable definitions do not leak beyond block scopes - properly collect scopes for loops, if statements, constructors - add calculation of fileEndOffsets for blocks - save block file offsets to dill - update binary format version - change kernel readers and writers to read and write block offsets - change vm readers to read and block offsets for new version - add missing fileOffsets and fileEndOffsets on functions for late fields - add missing fileOffsets and fileEndOffsets on functions for extensions - add errors on failures to find scope - find libraries for private fields correctly - add more expression compilation tests - add test to verify fileOffsets and fileEndOffsets are set for SDK summary (will add full dill tests later) Closes: https://github.com/dart-lang/sdk/issues/40278 Related: https://github.com/dart-lang/sdk/issues/34942 Change-Id: I5bc1bb645543045b689d8d61069ee77dc4ee9025 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/167541 Commit-Queue: Anna Gringauze <annagrin@google.com> Reviewed-by: Nicholas Shahan <nshahan@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
FE/analyzer shared code
This package contains logic that is shared between the front_end and analyzer packages. It is intended solely to facilitate development of the Dart SDK, and is not intended for use by end users. In particular, this package has no public API, so no guarantee is made of compatibility between one version of the package and the next.
End users should consider using the analyzer package to analyze Dart source code.