| Index: lib/src/dart_formatter.dart
|
| diff --git a/lib/src/dart_formatter.dart b/lib/src/dart_formatter.dart
|
| index f344f441a5aa44aa0861257c63d30b66250f9651..428aeecfb645dd0f72836272e9102ef661b4e610 100644
|
| --- a/lib/src/dart_formatter.dart
|
| +++ b/lib/src/dart_formatter.dart
|
| @@ -110,7 +110,7 @@ class DartFormatter {
|
| // Make sure we consumed all of the source.
|
| var token = node.endToken.next;
|
| if (token.type != TokenType.EOF) {
|
| - var error = new AnalysisError.con2(
|
| + var error = new AnalysisError(
|
| stringSource,
|
| token.offset,
|
| math.max(token.length, 1),
|
|
|