| 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 trace; | 5 library trace; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:uri'; | |
| 9 import 'dart:math' as math; | 8 import 'dart:math' as math; |
| 10 | 9 |
| 11 import 'frame.dart'; | 10 import 'frame.dart'; |
| 12 import 'lazy_trace.dart'; | 11 import 'lazy_trace.dart'; |
| 13 | 12 |
| 14 final _patchRegExp = new RegExp(r"-patch$"); | 13 final _patchRegExp = new RegExp(r"-patch$"); |
| 15 | 14 |
| 16 /// A stack trace, comprised of a list of stack frames. | 15 /// A stack trace, comprised of a list of stack frames. |
| 17 class Trace implements StackTrace { | 16 class Trace implements StackTrace { |
| 18 /// The stack frames that comprise this stack trace. | 17 /// The stack frames that comprise this stack trace. |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 if (string.length >= length) return string; | 132 if (string.length >= length) return string; |
| 134 | 133 |
| 135 var result = new StringBuffer(); | 134 var result = new StringBuffer(); |
| 136 result.write(string); | 135 result.write(string); |
| 137 for (var i = 0; i < length - string.length; i++) { | 136 for (var i = 0; i < length - string.length; i++) { |
| 138 result.write(' '); | 137 result.write(' '); |
| 139 } | 138 } |
| 140 | 139 |
| 141 return result.toString(); | 140 return result.toString(); |
| 142 } | 141 } |
| OLD | NEW |