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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart2js.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/compiler/implementation/dart2js.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart2js.dart b/sdk/lib/_internal/compiler/implementation/dart2js.dart
index 70d0bc772a2c3b8279faf5a12741b061fc4521a2..bc5be230e7739744c32e726ae03112ef07587d26 100644
--- a/sdk/lib/_internal/compiler/implementation/dart2js.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart2js.dart
@@ -231,7 +231,7 @@ void compile(List<String> argv) {
helpAndFail('Error: No Dart file specified.');
}
if (arguments.length > 1) {
- var extra = arguments.getRange(1, arguments.length - 1);
+ var extra = arguments.sublist(1);
helpAndFail('Error: Extra arguments: ${extra.join(" ")}');
}

Powered by Google App Engine
This is Rietveld 408576698