OLD | NEW |
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 stack_trace.chain; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 import 'dart:collection'; | 6 import 'dart:collection'; |
9 import 'dart:math' as math; | 7 import 'dart:math' as math; |
10 | 8 |
11 import 'frame.dart'; | 9 import 'frame.dart'; |
12 import 'stack_zone_specification.dart'; | 10 import 'stack_zone_specification.dart'; |
13 import 'trace.dart'; | 11 import 'trace.dart'; |
14 import 'utils.dart'; | 12 import 'utils.dart'; |
15 | 13 |
16 /// A function that handles errors in the zone wrapped by [Chain.capture]. | 14 /// A function that handles errors in the zone wrapped by [Chain.capture]. |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 204 |
207 // Don't call out to [Trace.toString] here because that doesn't ensure that | 205 // Don't call out to [Trace.toString] here because that doesn't ensure that |
208 // padding is consistent across all traces. | 206 // padding is consistent across all traces. |
209 return traces.map((trace) { | 207 return traces.map((trace) { |
210 return trace.frames.map((frame) { | 208 return trace.frames.map((frame) { |
211 return '${padRight(frame.location, longest)} ${frame.member}\n'; | 209 return '${padRight(frame.location, longest)} ${frame.member}\n'; |
212 }).join(); | 210 }).join(); |
213 }).join(chainGap); | 211 }).join(chainGap); |
214 } | 212 } |
215 } | 213 } |
OLD | NEW |