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

Unified Diff: lib/src/formatter_exception.dart

Issue 822273004: Add API to provide a selection range, and return the updated selection after formatting. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Remove redundant argument check. Created 5 years, 11 months 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 | « lib/src/dart_formatter.dart ('k') | lib/src/line_splitter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/formatter_exception.dart
diff --git a/lib/src/formatter_exception.dart b/lib/src/formatter_exception.dart
index a70670fbb338d0bf837ea97e6ffb52d08c3320b7..7ccc353f61b05d237416388cf724a0f945819b3a 100644
--- a/lib/src/formatter_exception.dart
+++ b/lib/src/formatter_exception.dart
@@ -32,4 +32,6 @@ class FormatterException implements Exception {
return buffer.toString();
}
+
+ String toString() => message();
}
« no previous file with comments | « lib/src/dart_formatter.dart ('k') | lib/src/line_splitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698