Files
Sigmund Cherem 7a83d5f967 [dyn_modules,cfe] Accept allowlist of selectors for dynamic calls.
This change extends the dynamic-modules-validator in the CFE to
accept an allowlist of dynamic call selectors.

Calls to selectors in such allowlist are accepted and shouldn't
report validation errors, even if the dynamic interface contains no
exposed members with that selector name. The goal is to eventually
use this allowlist to enable dynamic calls within dynamic modules,
where the target of the call is defined in bytecode.

At this time, we only support public selector names in the allow
list.

TEST=pkg/front_end/testcases/general/dynamic_modules/main.dart
BUG=b/448095881

Change-Id: I94850781f235f8b3fd3cbd9b167302f79f5020b8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/496782
Commit-Queue: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2026-04-23 18:34:38 -07:00
..