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

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

Issue 374413002: Dart2dart rename unresolved getters & Make IsCheck not be a primitive (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 | « no previous file | sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/dart_backend/dart_tree.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/dart_tree.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/dart_tree.dart
index 7149db85bf43212f243119be763d30c1de232709..a060b98b3a0b527d152c5c3590c77484686c3da6 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/dart_tree.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/dart_tree.dart
@@ -979,9 +979,9 @@ class Builder extends ir.Visitor<Node> {
return new FunctionDeclaration(variable, function, visit(node.body));
}
- Statement visitAsCast(ir.AsCast node) {
+ Statement visitTypeOperator(ir.TypeOperator node) {
Expression receiver = getVariableReference(node.receiver);
- Expression concat = new TypeOperator(receiver, node.type, "as");
+ Expression concat = new TypeOperator(receiver, node.type, node.operator);
return continueWithExpression(node.continuation, concat);
}
@@ -1086,12 +1086,6 @@ class Builder extends ir.Visitor<Node> {
}
}
- Expression visitIsCheck(ir.IsCheck node) {
- return new TypeOperator(getVariableReference(node.receiver),
- node.type,
- "is");
- }
-
Expression visitParameter(ir.Parameter node) {
// Continuation parameters are not visited (continuations themselves are
// not visited yet).
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698