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

Side by Side Diff: lib/src/utils.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 | « lib/src/unparsed_frame.dart ('k') | lib/src/vm_trace.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.src.utils;
6
7 /// The line used in the string representation of stack chains to represent 5 /// The line used in the string representation of stack chains to represent
8 /// the gap between traces. 6 /// the gap between traces.
9 const chainGap = '===== asynchronous gap ===========================\n'; 7 const chainGap = '===== asynchronous gap ===========================\n';
10 8
11 /// Returns [string] with enough spaces added to the end to make it [length] 9 /// Returns [string] with enough spaces added to the end to make it [length]
12 /// characters long. 10 /// characters long.
13 String padRight(String string, int length) { 11 String padRight(String string, int length) {
14 if (string.length >= length) return string; 12 if (string.length >= length) return string;
15 13
16 var result = new StringBuffer(); 14 var result = new StringBuffer();
(...skipping 14 matching lines...) Expand all
31 if (element is List) { 29 if (element is List) {
32 helper(element); 30 helper(element);
33 } else { 31 } else {
34 result.add(element); 32 result.add(element);
35 } 33 }
36 } 34 }
37 } 35 }
38 helper(nested); 36 helper(nested);
39 return result; 37 return result;
40 } 38 }
OLDNEW
« no previous file with comments | « lib/src/unparsed_frame.dart ('k') | lib/src/vm_trace.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698