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

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

Issue 693803003: Move continueWithExpression to IrBuilder. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comment. 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/tree_ir_nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/tree_ir_nodes.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/tree_ir_nodes.dart
index 73fa6ba7c9c62bd5bbc725acd089b1348a74b1e3..c0769409ff0ed868d57e996a52c6bda2ee5ae5e2 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/tree_ir_nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/tree_ir_nodes.dart
@@ -242,11 +242,13 @@ class LiteralMap extends Expression {
class TypeOperator extends Expression {
Expression receiver;
final DartType type;
- final String operator;
+ final bool isTypeTest;
- TypeOperator(this.receiver, this.type, this.operator) ;
+ TypeOperator(this.receiver, this.type, {bool this.isTypeTest});
accept(ExpressionVisitor visitor) => visitor.visitTypeOperator(this);
+
+ String get operator => isTypeTest ? 'is' : 'as';
}
/// A conditional expression.

Powered by Google App Engine
This is Rietveld 408576698