| Index: pkg/analyzer_experimental/bin/formatter.dart
|
| ===================================================================
|
| --- pkg/analyzer_experimental/bin/formatter.dart (revision 28056)
|
| +++ pkg/analyzer_experimental/bin/formatter.dart (working copy)
|
| @@ -159,7 +159,11 @@
|
| _toJson(formatResult) =>
|
| // Actual JSON format TBD
|
| JSON.encode({'source': formatResult.source,
|
| - 'selection': formatResult.selection.toString()});
|
| + 'selection': {
|
| + 'offset': formatResult.selection.offset,
|
| + 'length': formatResult.selection.length
|
| + }
|
| + });
|
|
|
| /// Log the given [msg].
|
| _log(String msg) {
|
|
|