Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Unified Diff: pkg/analyzer/lib/src/dart/sdk/sdk.dart

Issue 2345743002: AbstractDartSdk should not return its linked bundle if 'useSummary' is false. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/sdk/sdk.dart
diff --git a/pkg/analyzer/lib/src/dart/sdk/sdk.dart b/pkg/analyzer/lib/src/dart/sdk/sdk.dart
index 0123bf8c1758f1a43514ee10cccb52cbba9f972e..7ab8272011ce21a18e8ded28635029be9e4f8fb7 100644
--- a/pkg/analyzer/lib/src/dart/sdk/sdk.dart
+++ b/pkg/analyzer/lib/src/dart/sdk/sdk.dart
@@ -155,9 +155,12 @@ abstract class AbstractDartSdk implements DartSdk {
@override
PackageBundle getLinkedBundle() {
- bool strongMode = _analysisOptions?.strongMode ?? false;
- _sdkBundle ??= getSummarySdkBundle(strongMode);
- return _sdkBundle;
+ if (_useSummary) {
+ bool strongMode = _analysisOptions?.strongMode ?? false;
+ _sdkBundle ??= getSummarySdkBundle(strongMode);
+ return _sdkBundle;
+ }
+ return null;
}
String getRelativePathFromFile(File file);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698