6156dd6e59
Dynamic module validation now accepts reference to classes and members from 'dart:*' libraries if they are annotated with dyn-module:language-impl:* pragmas. This matches the behavior of dynamic interface annotator. This is a follow-up to https://dart-review.googlesource.com/c/sdk/+/418663. Also, when checking for possible dynamic overrides in TFA, treat _enumToString from dart:core as a public name because front-end desugars enums into classes which override private _enumToString method in a different library. TEST=pkg/dynamic_modules/test/data/enum Fixes b/395992622 Change-Id: I45ed9855f806224a510fa4e56962607de3371eb0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/423820 Reviewed-by: Slava Egorov <vegorov@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com> Reviewed-by: Nate Biggs <natebiggs@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>