Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Unified Diff: packages/dart_style/lib/src/dart_formatter.dart

Issue 1521693002: Roll Observatory deps (charted -> ^0.3.0) (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packages/dart_style/lib/src/chunk_builder.dart ('k') | packages/dart_style/lib/src/debug.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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),
« no previous file with comments | « packages/dart_style/lib/src/chunk_builder.dart ('k') | packages/dart_style/lib/src/debug.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698