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

Unified Diff: lib/src/utils.dart

Issue 1124113002: Add a flag controlling how verbose stack traces are. (Closed) Base URL: git@github.com:dart-lang/test.git@master
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/runner/reporter/expanded.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/utils.dart
diff --git a/lib/src/utils.dart b/lib/src/utils.dart
index 9b6fd099d51d45ea969cf8bed333ece10d8ed8bb..5d0d780f33a9967009a9b48b50871f7baa298f19 100644
--- a/lib/src/utils.dart
+++ b/lib/src/utils.dart
@@ -88,7 +88,10 @@ final _isolatePath =
/// Returns [stackTrace] converted to a [Chain] with all irrelevant frames
/// folded together.
-Chain terseChain(StackTrace stackTrace) {
+///
+/// If [verbose] is `true`, returns the chain for [stackTrace] unmodified.
+Chain terseChain(StackTrace stackTrace, {bool verbose: false}) {
+ if (verbose) return new Chain.forTrace(stackTrace);
return new Chain.forTrace(stackTrace).foldFrames((frame) {
if (frame.package == 'test') return true;
« no previous file with comments | « lib/src/runner/reporter/expanded.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698