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

Unified Diff: pkg/analyzer/lib/src/generated/sdk_io.dart

Issue 1838883002: Add the '--build-summary-only-ast' flag for generating summaries using only ASTs. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 | pkg/analyzer/lib/src/summary/package_bundle_reader.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/sdk_io.dart
diff --git a/pkg/analyzer/lib/src/generated/sdk_io.dart b/pkg/analyzer/lib/src/generated/sdk_io.dart
index 38b3cfbd09983ccc122b3a76707474e9dd7247dd..411a2e67f29666f16637b84a1c37fbb52455ed77 100644
--- a/pkg/analyzer/lib/src/generated/sdk_io.dart
+++ b/pkg/analyzer/lib/src/generated/sdk_io.dart
@@ -282,7 +282,7 @@ class DirectoryBasedDartSdk implements DartSdk {
SourceFactory factory = new SourceFactory([new DartUriResolver(this)]);
_analysisContext.sourceFactory = factory;
if (_useSummary) {
- PackageBundle sdkBundle = _getSummarySdkBundle();
+ PackageBundle sdkBundle = getSummarySdkBundle();
if (sdkBundle != null) {
_analysisContext.resultProvider =
new SdkSummaryResultProvider(_analysisContext, sdkBundle);
@@ -570,8 +570,10 @@ class DirectoryBasedDartSdk implements DartSdk {
/**
* Return the [PackageBundle] for this SDK, if it exists, or `null` otherwise.
+ * This method should not be used outside of `analyzer` and `analyzer_cli`
+ * packages.
*/
- PackageBundle _getSummarySdkBundle() {
+ PackageBundle getSummarySdkBundle() {
String rootPath = directory.getAbsolutePath();
bool strongMode = _analysisOptions?.strongMode ?? false;
String name = strongMode ? 'strong.sum' : 'spec.sum';
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/package_bundle_reader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698