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

Side by Side Diff: pkg/compiler/lib/src/helpers/trace.dart

Issue 1762723002: Cleanup 1: split parts into their own libraries, remove unused imports (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698