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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_to_frontend_ast.dart

Issue 639733004: Don't emit /* new backend */ comment by default. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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: sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_to_frontend_ast.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_to_frontend_ast.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_to_frontend_ast.dart
index 320d3a0135f1d64185cff808dbfb36e764cbfe73..eca14201fc6fd2acd481b0e2e78d8e952ea31e67 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_to_frontend_ast.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_to_frontend_ast.dart
@@ -23,11 +23,7 @@ tree.FunctionExpression emit(dart2js.TreeElementMapping treeElements,
/// If true, the unparser will insert a coment in front of every function
/// it emits. This helps indicate which functions were translated by the new
/// backend.
-const bool INSERT_NEW_BACKEND_COMMENT = true;
-
-/// The comment inserted in front of every function body.
-const String NEW_BACKEND_COMMENT =
- INSERT_NEW_BACKEND_COMMENT ? '/* new backend */ ' : '';
+bool INSERT_NEW_BACKEND_COMMENT = false;
/// Converts backend ASTs to frontend ASTs.
class TreePrinter {
@@ -600,7 +596,7 @@ class TreePrinter {
/// A comment token to be inserted when [INSERT_NEW_BACKEND_COMMENT] is true.
final SymbolToken newBackendComment = new SymbolToken(
- const PrecedenceInfo(NEW_BACKEND_COMMENT, 0, OPEN_CURLY_BRACKET_TOKEN),
+ const PrecedenceInfo('/* new backend */ ', 0, OPEN_CURLY_BRACKET_TOKEN),
-1);
tree.Node makeFunctionBody(Statement stmt) {
« no previous file with comments | « pkg/analyzer2dart/test/end2end_test.dart ('k') | tests/compiler/dart2js/backend_dart/dart_new_backend_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698