| Index: packages/dart_style/lib/src/dart_formatter.dart
|
| diff --git a/packages/dart_style/lib/src/dart_formatter.dart b/packages/dart_style/lib/src/dart_formatter.dart
|
| index fc2e789384973ca629ed4e61363b1115cd956579..428aeecfb645dd0f72836272e9102ef661b4e610 100644
|
| --- a/packages/dart_style/lib/src/dart_formatter.dart
|
| +++ b/packages/dart_style/lib/src/dart_formatter.dart
|
| @@ -60,7 +60,8 @@ class DartFormatter {
|
| }
|
|
|
| return formatSource(
|
| - new SourceCode(source, uri: uri, isCompilationUnit: true)).text;
|
| + new SourceCode(source, uri: uri, isCompilationUnit: true))
|
| + .text;
|
| }
|
|
|
| /// Formats the given [source] string containing a single Dart statement.
|
| @@ -109,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),
|
|
|