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

Unified Diff: lib/ast.dart

Issue 2460373002: Remove BlockExpression from the Kernel language. (Closed)
Patch Set: Incorporate review comments, format continuation.dart. 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
« no previous file with comments | « no previous file | lib/binary/ast_from_binary.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/ast.dart
diff --git a/lib/ast.dart b/lib/ast.dart
index aa2228581e456fe3164b650aeee3e4b5514198d3..d3ac0535120ef6a424910824a82164e3c91924dd 100644
--- a/lib/ast.dart
+++ b/lib/ast.dart
@@ -2411,36 +2411,6 @@ class Let extends Expression {
}
}
-class BlockExpression extends Expression {
- Block body;
- Expression value;
-
- BlockExpression(this.body, this.value) {
- body?.parent = this;
- value?.parent = this;
- }
-
- DartType getStaticType(TypeEnvironment types) => value.getStaticType(types);
-
- accept(ExpressionVisitor v) => v.visitBlockExpression(this);
-
- visitChildren(Visitor v) {
- body?.accept(v);
- value?.accept(v);
- }
-
- transformChildren(Transformer v) {
- if (body != null) {
- body = body.accept(v);
- body?.parent = this;
- }
- if (value != null) {
- value = value.accept(v);
- value?.parent = this;
- }
- }
-}
-
// ------------------------------------------------------------------------
// STATEMENTS
// ------------------------------------------------------------------------
« no previous file with comments | « no previous file | lib/binary/ast_from_binary.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698