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

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

Issue 10969008: [dart2dart] Rename --cut-declaration-types flag to --force-cut-declaration-types (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | « lib/compiler/implementation/dart2js.dart ('k') | tests/compiler/dart2js/unparser_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6f04207759e80dd5e9045a8e08c617827dc0dee8..0f9ec2b54a12308d9798526044d4b42cdb481b2d 100644
--- a/lib/compiler/implementation/dart_backend/backend.dart
+++ b/lib/compiler/implementation/dart_backend/backend.dart
@@ -99,7 +99,7 @@ class FunctionBodyRewriter extends CloningVisitor {
class DartBackend extends Backend {
final List<CompilerTask> tasks;
- final bool cutDeclarationTypes;
+ final bool forceCutDeclarationTypes;
// TODO(antonm): make available from command-line options.
final bool outputAst = false;
@@ -172,7 +172,7 @@ class DartBackend extends Backend {
return true;
}
- DartBackend(Compiler compiler, this.cutDeclarationTypes)
+ DartBackend(Compiler compiler, this.forceCutDeclarationTypes)
: tasks = <CompilerTask>[],
super(compiler);
@@ -320,7 +320,7 @@ class DartBackend extends Backend {
// Create renames.
Map<Node, String> renames = new Map<Node, String>();
Map<LibraryElement, String> imports = new Map<LibraryElement, String>();
- bool shouldCutDeclarationTypes = cutDeclarationTypes
+ bool shouldCutDeclarationTypes = forceCutDeclarationTypes
|| (compiler.enableMinification
&& isSafeToRemoveTypeDeclarations(classMembers));
renamePlaceholders(
« no previous file with comments | « lib/compiler/implementation/dart2js.dart ('k') | tests/compiler/dart2js/unparser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698