| Index: pkg/analyzer/lib/src/task/dart.dart
|
| diff --git a/pkg/analyzer/lib/src/task/dart.dart b/pkg/analyzer/lib/src/task/dart.dart
|
| index 59ffdd871595011f80982ea23043cef491db9775..56595c47e6ad7cf9cdef8a04f76406609c94de50 100644
|
| --- a/pkg/analyzer/lib/src/task/dart.dart
|
| +++ b/pkg/analyzer/lib/src/task/dart.dart
|
| @@ -2211,8 +2211,10 @@ class ComputeLibraryCycleTask extends SourceBasedAnalysisTask {
|
| // re-run if anything reachable from this target has been invalidated,
|
| // and the invalidation code (invalidateLibraryCycles) will ensure that
|
| // element model results will be re-used here only if they are still valid.
|
| - if (context.analysisOptions.strongMode) {
|
| - LibraryElement library = getRequiredInput(LIBRARY_ELEMENT_INPUT);
|
| + LibraryElement library = getRequiredInput(LIBRARY_ELEMENT_INPUT);
|
| + if (context.analysisOptions.strongMode &&
|
| + !LibraryElementImpl.hasResolutionCapability(
|
| + library, LibraryResolutionCapability.resolvedTypeNames)) {
|
| List<LibraryElement> component = library.libraryCycle;
|
| Set<LibraryElement> filter = component.toSet();
|
| Set<CompilationUnitElement> deps = new Set<CompilationUnitElement>();
|
|
|