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

Side by Side Diff: lib/src/chain.dart

Issue 1580083003: Get rid of all the library tags. (Closed) Base URL: git@github.com:dart-lang/stack_trace@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | lib/src/frame.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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 }
OLDNEW
« no previous file with comments | « no previous file | lib/src/frame.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698