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

Unified Diff: lib/compiler/implementation/dart_backend/backend.dart

Issue 10891004: [dart2dart] Optionally cut types in variable declarations: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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
Index: lib/compiler/implementation/dart_backend/backend.dart
diff --git a/lib/compiler/implementation/dart_backend/backend.dart b/lib/compiler/implementation/dart_backend/backend.dart
index 082fd898cc9b3afdef183abed5c2d7dc4cb9be83..3a33fd1c830f93a4ac3a15615da2367549e747c9 100644
--- a/lib/compiler/implementation/dart_backend/backend.dart
+++ b/lib/compiler/implementation/dart_backend/backend.dart
@@ -5,11 +5,12 @@
class DartBackend extends Backend {
final List<CompilerTask> tasks;
final bool minify;
+ final bool cutDeclarationTypes;
Map<Element, TreeElements> get resolvedElements =>
compiler.enqueuer.resolution.resolvedElements;
- DartBackend(Compiler compiler, this.minify)
+ DartBackend(Compiler compiler, this.minify, this.cutDeclarationTypes)
: tasks = <CompilerTask>[],
super(compiler);
@@ -102,7 +103,8 @@ class DartBackend extends Backend {
// Create renames.
Map<Node, String> renames = new Map<Node, String>();
Map<LibraryElement, String> imports = new Map<LibraryElement, String>();
- renamePlaceholders(compiler, collector, renames, imports, minify);
+ renamePlaceholders(
+ compiler, collector, renames, imports, minify, cutDeclarationTypes);
// Sort elements.
final sortedTopLevels = sortElements(topLevelElements);
« no previous file with comments | « lib/compiler/implementation/compiler.dart ('k') | lib/compiler/implementation/dart_backend/placeholder_collector.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698