INNER CODE UNIT · Dart
startIndex
dart-archive/linter · tool/move_legacy_test.dart:92
startIndex = math.max(0, ranges.first.start - 3);
endIndex = math.min(legacyLines.length, startIndex + 40);
}
return snippets;
}
List<Range> getRanges() {
List<String> lineRanges;
while (true) {
stdout.write('Comma-separated lines and ranges (e.g. 1,3,5-7,9-11): ');
var input = stdin.readLineSync();
if (input == null) {
print('Received empty and EOF?');
// Blank line and EOF?
exit(1);
}
if (input.isEmpty) {
// Blank input.