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

Unified Diff: lib/text/ast_to_text.dart

Issue 2460373002: Remove BlockExpression from the Kernel language. (Closed)
Patch Set: Created 4 years, 1 month 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/text/ast_to_text.dart
diff --git a/lib/text/ast_to_text.dart b/lib/text/ast_to_text.dart
index 46850b765d50f4f7460b0f44a7103c7dae5e694f..b6833bcc266913617e5eab2b08b48465209c1e67 100644
--- a/lib/text/ast_to_text.dart
+++ b/lib/text/ast_to_text.dart
@@ -969,32 +969,6 @@ class Printer extends Visitor<Null> {
writeExpression(node.body);
}
- visitBlockExpression(BlockExpression node) {
- int savedColumn = column;
-
- var savedState = state;
- int savedIndentation = indentation;
- String spaces = ' ' * savedColumn;
-
- writeWord('|{');
- endLine();
- state = SPACE;
- indentation = (savedColumn + 4) ~/ 2;
- for (var statement in node.body.statements) {
- statement.accept(this);
- }
- write('$spaces => ');
- writeExpression(node.value);
- endLine();
- write('$spaces');
-
- indentation = savedIndentation;
- state = savedState;
- column = savedColumn;
-
- write('}|');
- }
-
defaultExpression(Expression node) {
writeWord('${node.runtimeType}');
}
@@ -1531,7 +1505,6 @@ class Precedence extends ExpressionVisitor<int> {
int visitStaticGet(StaticGet node) => PRIMARY;
int visitStaticSet(StaticSet node) => EXPRESSION;
int visitLet(Let node) => EXPRESSION;
- int visitBlockExpression(BlockExpression node) => EXPRESSION;
}
String procedureKindToString(ProcedureKind kind) {

Powered by Google App Engine
This is Rietveld 408576698