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

Unified Diff: lib/src/chain.dart

Issue 1834283003: Make Chain.capture() generic. (Closed) Base URL: git@github.com:dart-lang/stack_trace@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 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/chain.dart
diff --git a/lib/src/chain.dart b/lib/src/chain.dart
index b6f36d20efa9c4c23fade59d8ffa8f366837993d..b436651297619b8b8289036bb3c1ea5badd99013 100644
--- a/lib/src/chain.dart
+++ b/lib/src/chain.dart
@@ -68,8 +68,8 @@ class Chain implements StackTrace {
/// considered unhandled.
///
/// If [callback] returns a value, it will be returned by [capture] as well.
- static capture(callback(), {void onError(error, Chain chain),
- bool when: true}) {
+ static /*=T*? capture/*<T>*/(/*=T*/ callback(),
+ {void onError(error, Chain chain), bool when: true}) {
if (!when) {
var newOnError;
if (onError != null) {
« 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