51840c501a
The meta package does not yet have an `internal` constant; this CL just adds one to the mock packages for testing. Two checks are implemented: * Hint if an @internal annotation is found on an element which is already part of a package's public API (based on file path). * Hint if an element annotated with @internal is exported from a package's public API. The notion of "public API" is also implemented for each type of Package: BasicPackage, BazelPackage, GnPackage, PackageBuildPackage, and PubPackage. Bug: https://github.com/dart-lang/sdk/issues/28066 Change-Id: Ifc2709028afcd241f59e802f5952539f717704c3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/163126 Commit-Queue: Samuel Rawlins <srawlins@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>