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

Unified Diff: sdk/lib/_internal/compiler/implementation/universe/partial_type_tree.dart

Issue 11438044: Remove some warnings and errors from dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove dead code. Created 8 years 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 | « sdk/lib/_internal/compiler/implementation/native_handler.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/universe/partial_type_tree.dart
diff --git a/sdk/lib/_internal/compiler/implementation/universe/partial_type_tree.dart b/sdk/lib/_internal/compiler/implementation/universe/partial_type_tree.dart
index 0ffbdde93566294d02a1e60d1457730da9eccdb3..f3101745e6355fcb2bf1d425183df0534e158074 100644
--- a/sdk/lib/_internal/compiler/implementation/universe/partial_type_tree.dart
+++ b/sdk/lib/_internal/compiler/implementation/universe/partial_type_tree.dart
@@ -117,9 +117,9 @@ abstract class PartialTypeTree {
// Create a new node and move the children of the current node
// that are subtypes of the type of the new node below the new
// node in the hierarchy.
- PartialTypeTreeNode newNode = newNode(type);
+ PartialTypeTreeNode node = newNode(type);
if (!subtypes.isEmpty) {
- newNode.children = subtypes;
+ node.children = subtypes;
Link<PartialTypeTreeNode> remaining = const Link();
for (Link link = current.children; !link.isEmpty; link = link.tail) {
PartialTypeTreeNode child = link.head;
@@ -131,8 +131,8 @@ abstract class PartialTypeTree {
}
// Add the new node as a child node of the current node and return it.
- current.children = current.children.prepend(newNode);
- return newNode;
+ current.children = current.children.prepend(node);
+ return node;
}
// We found an exact match. No need to insert new nodes.
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/native_handler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698