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

Side by Side Diff: pkg/barback/lib/src/build_result.dart

Issue 23201013: pkg/barback: removed unused imports, added a missing import (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library barback.build_result; 5 library barback.build_result;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:stack_trace/stack_trace.dart'; 9 import 'package:stack_trace/stack_trace.dart';
10 10
11 import 'errors.dart';
11 import 'utils.dart'; 12 import 'utils.dart';
12 13
13 /// An event indicating that the cascade has finished building all assets. 14 /// An event indicating that the cascade has finished building all assets.
14 /// 15 ///
15 /// A build can end either in success or failure. If there were no errors during 16 /// A build can end either in success or failure. If there were no errors during
16 /// the build, it's considered to be a success; any errors render it a failure, 17 /// the build, it's considered to be a success; any errors render it a failure,
17 /// although individual assets may still have built successfully. 18 /// although individual assets may still have built successfully.
18 class BuildResult { 19 class BuildResult {
19 /// All errors that occurred during the build. 20 /// All errors that occurred during the build.
20 final Set<BarbackException> errors; 21 final Set<BarbackException> errors;
(...skipping 21 matching lines...) Expand all
42 msg.write(prefixLines(error.toString())); 43 msg.write(prefixLines(error.toString()));
43 if (stackTrace != null) { 44 if (stackTrace != null) {
44 msg.write("\n\n"); 45 msg.write("\n\n");
45 msg.write("Stack trace:\n"); 46 msg.write("Stack trace:\n");
46 msg.write(prefixLines(stackTrace.toString())); 47 msg.write(prefixLines(stackTrace.toString()));
47 } 48 }
48 return msg.toString(); 49 return msg.toString();
49 }).join("\n\n"); 50 }).join("\n\n");
50 } 51 }
51 } 52 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698