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

Unified Diff: lib/src/lazy_trace.dart

Issue 937433003: Add terse to LazyTrace.foldFrames(). (Closed) Base URL: git@github.com:dart-lang/stack_trace@master
Patch Set: Created 5 years, 10 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 | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/lazy_trace.dart
diff --git a/lib/src/lazy_trace.dart b/lib/src/lazy_trace.dart
index 874123ef4e07699529b8ddd615bf164342213d6b..21bb67ffad08d67f428e0b0c06f6498e4aceec38 100644
--- a/lib/src/lazy_trace.dart
+++ b/lib/src/lazy_trace.dart
@@ -27,8 +27,8 @@ class LazyTrace implements Trace {
List<Frame> get frames => _trace.frames;
StackTrace get vmTrace => _trace.vmTrace;
Trace get terse => new LazyTrace(() => _trace.terse);
- Trace foldFrames(bool predicate(frame)) =>
- new LazyTrace(() => _trace.foldFrames(predicate));
+ Trace foldFrames(bool predicate(frame), {bool terse: false}) =>
+ new LazyTrace(() => _trace.foldFrames(predicate, terse: terse));
String toString() => _trace.toString();
// Work around issue 14075.
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698