|
5 | 5 | // DO NOT EDIT. This file was generated from async_environment.dart.
|
6 | 6 | // See tool/grind/synchronize.dart for details.
|
7 | 7 | //
|
8 |
| -// Checksum: f947505f8d0057a36a175e81ba8279c70e59e9dc |
| 8 | +// Checksum: 72b802e4004aae8a84f7aa78ec728861339b846b |
9 | 9 | //
|
10 | 10 | // ignore_for_file: unused_import
|
11 | 11 |
|
@@ -1099,9 +1099,24 @@ final class _EnvironmentModule implements Module<Callable> {
|
1099 | 1099 | }
|
1100 | 1100 |
|
1101 | 1101 | bool couldHaveBeenConfigured(Set<String> variables) =>
|
1102 |
| - variables.length < _environment._configurableVariables.length |
| 1102 | + // Check if this module defines a configurable variable with any of the |
| 1103 | + // given names. |
| 1104 | + (variables.length < _environment._configurableVariables.length |
1103 | 1105 | ? variables.any(_environment._configurableVariables.contains)
|
1104 |
| - : _environment._configurableVariables.any(variables.contains); |
| 1106 | + : _environment._configurableVariables.any(variables.contains)) || |
| 1107 | + // Find forwarded modules whose variables overlap with [variables] and |
| 1108 | + // check if they define configurable variables with any of the given |
| 1109 | + // names. |
| 1110 | + (variables.length < _modulesByVariable.length |
| 1111 | + ? { |
| 1112 | + for (var variable in variables) |
| 1113 | + if (_modulesByVariable[variable] case var module?) module |
| 1114 | + } |
| 1115 | + : { |
| 1116 | + for (var (variable, module) in _modulesByVariable.pairs) |
| 1117 | + if (variables.contains(variable)) module |
| 1118 | + }) |
| 1119 | + .any((module) => module.couldHaveBeenConfigured(variables)); |
1105 | 1120 |
|
1106 | 1121 | Module<Callable> cloneCss() {
|
1107 | 1122 | if (!transitivelyContainsCss) return this;
|
|
0 commit comments