|
5 | 5 | // DO NOT EDIT. This file was generated from async_evaluate.dart.
|
6 | 6 | // See tool/grind/synchronize.dart for details.
|
7 | 7 | //
|
8 |
| -// Checksum: e47d81d6a53ba17bf1f6bf37e431c47fc82195e5 |
| 8 | +// Checksum: 548e54482bead470a6c7931a9d3e098da8b600d6 |
9 | 9 | //
|
10 | 10 | // ignore_for_file: unused_import
|
11 | 11 |
|
@@ -1211,8 +1211,7 @@ final class _EvaluateVisitor
|
1211 | 1211 | if (siblings.last != _parent &&
|
1212 | 1212 | // Reproduce this condition from [_warn] so that we don't add anything to
|
1213 | 1213 | // [interleavedRules] for declarations in dependencies.
|
1214 |
| - !(_quietDeps && |
1215 |
| - (_inDependency || (_currentCallable?.inDependency ?? false)))) { |
| 1214 | + !(_quietDeps && _inDependency)) { |
1216 | 1215 | loop:
|
1217 | 1216 | for (var sibling in siblings.skip(siblings.indexOf(_parent) + 1)) {
|
1218 | 1217 | switch (sibling) {
|
@@ -2924,7 +2923,9 @@ final class _EvaluateVisitor
|
2924 | 2923 | if (name != "@content") name += "()";
|
2925 | 2924 |
|
2926 | 2925 | var oldCallable = _currentCallable;
|
| 2926 | + var oldInDependency = _inDependency; |
2927 | 2927 | _currentCallable = callable;
|
| 2928 | + _inDependency = callable.inDependency; |
2928 | 2929 | var result = _withStackFrame(name, nodeWithSpan, () {
|
2929 | 2930 | // Add an extra closure() call so that modifications to the environment
|
2930 | 2931 | // don't affect the underlying environment closure.
|
@@ -2991,6 +2992,7 @@ final class _EvaluateVisitor
|
2991 | 2992 | });
|
2992 | 2993 | });
|
2993 | 2994 | _currentCallable = oldCallable;
|
| 2995 | + _inDependency = oldInDependency; |
2994 | 2996 | return result;
|
2995 | 2997 | }
|
2996 | 2998 |
|
@@ -3837,10 +3839,7 @@ final class _EvaluateVisitor
|
3837 | 3839 |
|
3838 | 3840 | /// Emits a warning with the given [message] about the given [span].
|
3839 | 3841 | void _warn(String message, FileSpan span, [Deprecation? deprecation]) {
|
3840 |
| - if (_quietDeps && |
3841 |
| - (_inDependency || (_currentCallable?.inDependency ?? false))) { |
3842 |
| - return; |
3843 |
| - } |
| 3842 | + if (_quietDeps && _inDependency) return; |
3844 | 3843 |
|
3845 | 3844 | if (!_warningsEmitted.add((message, span))) return;
|
3846 | 3845 | var trace = _stackTrace(span);
|
|
0 commit comments