| Index: pkg/analyzer/bin/formatter.dart
|
| diff --git a/pkg/analyzer/bin/formatter.dart b/pkg/analyzer/bin/formatter.dart
|
| index 0466f40df5042446743cfcedab6981d78ed04335..400b309eff144d4f5e4a8aa19225ebe1e7fb9102 100755
|
| --- a/pkg/analyzer/bin/formatter.dart
|
| +++ b/pkg/analyzer/bin/formatter.dart
|
| @@ -90,15 +90,15 @@ int _parseLineLength(String lengthOption) {
|
| }
|
|
|
|
|
| -Selection _parseSelection(selectionOption) {
|
| - if (selectionOption != null) {
|
| - var units = selectionOption.split(',');
|
| - if (units.length == 2) {
|
| - var offset = _toInt(units[0]);
|
| - var length = _toInt(units[1]);
|
| - if (offset != null && length != null) {
|
| - return new Selection(offset, length);
|
| - }
|
| +Selection _parseSelection(String selectionOption) {
|
| + if(selectionOption == null) return null;
|
| +
|
| + var units = selectionOption.split(',');
|
| + if (units.length == 2) {
|
| + var offset = _toInt(units[0]);
|
| + var length = _toInt(units[1]);
|
| + if (offset != null && length != null) {
|
| + return new Selection(offset, length);
|
| }
|
| }
|
| throw new FormatterException('Selections are specified as integer pairs '
|
|
|