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

Unified Diff: pkg/scheduled_test/lib/src/descriptor/directory.dart

Issue 12817003: Change getRange to sublist. Make getRange deprecated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 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
Index: pkg/scheduled_test/lib/src/descriptor/directory.dart
diff --git a/pkg/scheduled_test/lib/src/descriptor/directory.dart b/pkg/scheduled_test/lib/src/descriptor/directory.dart
index 3d04816c966be034e48808eee5174e44c6af1a1a..594fb56c27d220f48efead09095b37b06de11eef 100644
--- a/pkg/scheduled_test/lib/src/descriptor/directory.dart
+++ b/pkg/scheduled_test/lib/src/descriptor/directory.dart
@@ -62,7 +62,7 @@ class Directory extends descriptor.Entry {
throw "Found multiple entries named '${split.first}' within "
"$nameDescription.";
} else {
- var remainingPath = split.getRange(1, split.length - 1);
+ var remainingPath = split.sublist(1);
if (remainingPath.isEmpty) {
return matchingEntries.first.read();
} else {

Powered by Google App Engine
This is Rietveld 408576698