7ed610de1d
The [StackListener.importUri] property is problematic because it assumes or implies that when a compilation unit is being parsed, the import URI for the containing library is known. This might not be the case if a part file is read before the main library file. Currently the [StackListener.importUri] is only used to detect whether the current file is part of a `dart:` library, so the property is replace with [isDartLibrary] which does just that. Change-Id: I2d2baf2fe20bb62fd1922864c0e5af95e8fd1ca7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/372084 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Jens Johansen <jensj@google.com> Commit-Queue: 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.