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

Unified Diff: pkg/analyzer/test/utils.dart

Issue 725143004: Format and sort analyzer and analysis_server packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | « pkg/analyzer/test/task/task_dart_test.dart ('k') | pkg/pkg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/utils.dart
diff --git a/pkg/analyzer/test/utils.dart b/pkg/analyzer/test/utils.dart
index a3c36acabaa361c08e1f9deb8476141bb07f21e8..df0628353b4214f2e1a060fc314f1937ddec784a 100644
--- a/pkg/analyzer/test/utils.dart
+++ b/pkg/analyzer/test/utils.dart
@@ -25,8 +25,9 @@ String errorsForFile(String contents) {
parseDartFile(path);
} on AnalyzerErrorGroup catch (e) {
return e.toString().replaceAllMapped(
- new RegExp(r"^(Error on line \d+ of )((?:[A-Z]+:)?[^:]+): .*$",
- multiLine: true),
+ new RegExp(
+ r"^(Error on line \d+ of )((?:[A-Z]+:)?[^:]+): .*$",
+ multiLine: true),
(match) => match[1] + pathos.basename(match[2]) + ': ...');
}
return null;
@@ -38,8 +39,7 @@ String errorsForFile(String contents) {
///
/// Returns the return value of [fn].
dynamic withTempDir(fn(String path)) {
- var tempDir =
- Directory.systemTemp.createTempSync('analyzer_').path;
+ var tempDir = Directory.systemTemp.createTempSync('analyzer_').path;
try {
return fn(tempDir);
} finally {
« no previous file with comments | « pkg/analyzer/test/task/task_dart_test.dart ('k') | pkg/pkg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698