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

Unified Diff: corelib/src/implementation/splay_tree.dart

Issue 9616012: Update SplayTreeMap with a work-around for frog. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/src/implementation/splay_tree.dart
===================================================================
--- corelib/src/implementation/splay_tree.dart (revision 5025)
+++ corelib/src/implementation/splay_tree.dart (working copy)
@@ -274,7 +274,7 @@
*/
K lastKeyBefore(K key) {
splay_(key);
- K visit(SplayTreeNode node, [K ifEmpty]) {
+ K visit(SplayTreeNode node, K ifEmpty) {
if (node === null) return ifEmpty;
if (node.key.compareTo(key) >= 0) {
return visit(node.left, ifEmpty);
@@ -283,7 +283,7 @@
return visit(node.right, node.key);
}
}
- return visit(_root);
+ return visit(_root, null);
}
/**
@@ -292,7 +292,7 @@
*/
K firstKeyAfter(K key) {
splay_(key);
- K visit(SplayTreeNode node, [K ifEmpty]) {
+ K visit(SplayTreeNode node, K ifEmpty) {
if (node === null) return ifEmpty;
if (node.key.compareTo(key) > 0) {
return visit(node.left, node.key);
@@ -301,6 +301,6 @@
return visit(node.right, ifEmpty);
}
}
- return visit(_root);
+ return visit(_root, null);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698