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

Unified Diff: pkg/analyzer/lib/src/summary/summarize_elements.dart

Issue 2356523002: Remove fallback mode and corresponding cli flag. (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 | pkg/analyzer_cli/lib/src/build_mode.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/summarize_elements.dart
diff --git a/pkg/analyzer/lib/src/summary/summarize_elements.dart b/pkg/analyzer/lib/src/summary/summarize_elements.dart
index 1a0e22db53c2e950da0a4a88e2893bbb26f11696..0662111707aa88523ff98891ecf84a9417dbef11 100644
--- a/pkg/analyzer/lib/src/summary/summarize_elements.dart
+++ b/pkg/analyzer/lib/src/summary/summarize_elements.dart
@@ -23,7 +23,6 @@ import 'package:analyzer/src/summary/package_bundle_reader.dart';
import 'package:analyzer/src/summary/summarize_const_expr.dart';
import 'package:convert/convert.dart';
import 'package:crypto/crypto.dart';
-import 'package:path/path.dart' as path;
/**
* Serialize all the elements in [lib] to a summary using [ctx] as the context
@@ -154,31 +153,6 @@ class PackageBundleAssembler {
: _excludeHashes = excludeHashes,
_unlinkedUnitHashes = excludeHashes ? null : <String>[];
- /**
- * Add a fallback library to the package bundle, corresponding to the library
- * whose defining compilation unit is located at [source]. Caller must also
- * call [addFallbackUnit] for all compilation units contained in the library
- * (including the defining compilation unit).
- */
- void addFallbackLibrary(Source source) {
- String uri = source.uri.toString();
- _linkedLibraryUris.add(uri);
- _linkedLibraries.add(new LinkedLibraryBuilder(fallbackMode: true));
- }
-
- /**
- * Add a fallback compilation unit to the package bundle, corresponding to
- * the compilation unit located at [source].
- */
- void addFallbackUnit(Source source) {
- String uri = source.uri.toString();
- UnlinkedUnitBuilder unit = new UnlinkedUnitBuilder(
- fallbackModePath: path.relative(source.fullName));
- _unlinkedUnitUris.add(uri);
- _unlinkedUnits.add(unit);
- _unlinkedUnitMap[uri] = unit;
- }
-
void addLinkedLibrary(String uri, LinkedLibraryBuilder library) {
_linkedLibraries.add(library);
_linkedLibraryUris.add(uri);
« no previous file with comments | « no previous file | pkg/analyzer_cli/lib/src/build_mode.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698