| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 part of dart2js.helpers; | 5 import '../common.dart'; |
| 6 import '../util/util.dart'; |
| 6 | 7 |
| 7 /// Function signature for [trace]. | 8 /// Function signature for [trace]. |
| 8 typedef void Trace(String message, | 9 typedef void Trace(String message, |
| 9 {bool condition(String stackTrace), | 10 {bool condition(String stackTrace), |
| 10 int limit, | 11 int limit, |
| 11 bool throwOnPrint}); | 12 bool throwOnPrint}); |
| 12 | 13 |
| 13 /** | 14 /** |
| 14 * Helper method for printing stack traces for debugging. | 15 * Helper method for printing stack traces for debugging. |
| 15 * | 16 * |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 } | 354 } |
| 354 for (int index = text.length ; index < intendedLength ; index ++) { | 355 for (int index = text.length ; index < intendedLength ; index ++) { |
| 355 int dotsIndex = index % dotsLength; | 356 int dotsIndex = index % dotsLength; |
| 356 sb.write(dots.substring(dotsIndex, dotsIndex + 1)); | 357 sb.write(dots.substring(dotsIndex, dotsIndex + 1)); |
| 357 } | 358 } |
| 358 if (padLeft) { | 359 if (padLeft) { |
| 359 sb.write(text); | 360 sb.write(text); |
| 360 } | 361 } |
| 361 return sb.toString(); | 362 return sb.toString(); |
| 362 } | 363 } |
| OLD | NEW |