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

Unified Diff: sdk/lib/_internal/dartdoc/lib/universe_serializer.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: sdk/lib/_internal/dartdoc/lib/universe_serializer.dart
diff --git a/sdk/lib/_internal/dartdoc/lib/universe_serializer.dart b/sdk/lib/_internal/dartdoc/lib/universe_serializer.dart
index 24633fdb5f287de40958e7fad3836f0ece30e594..b88c9ead7749a9031930839b8a194d3514561c5e 100755
--- a/sdk/lib/_internal/dartdoc/lib/universe_serializer.dart
+++ b/sdk/lib/_internal/dartdoc/lib/universe_serializer.dart
@@ -213,7 +213,7 @@ class LibraryElement extends Element {
}
var libDir = parts.lastIndexOf('lib');
- var rest = parts.getRange(libDir + 1, parts.length - libDir - 1);
+ var rest = parts.sublist(libDir + 1);
// If there's no lib, we can't find the package.
if (libDir < 0 || libDir < packageDir) {

Powered by Google App Engine
This is Rietveld 408576698