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

Unified Diff: lib/src/stack_zone_specification.dart

Issue 1576853003: Deprecate the ChainHandler typedef. (Closed) Base URL: git@github.com:dart-lang/stack_trace@master
Patch Set: . Created 4 years, 11 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/chain.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/stack_zone_specification.dart
diff --git a/lib/src/stack_zone_specification.dart b/lib/src/stack_zone_specification.dart
index 25d96427110f76a22b134fbaa2634025225434cd..6de43fae8cd8e23a0d6057b824af6084eed32316 100644
--- a/lib/src/stack_zone_specification.dart
+++ b/lib/src/stack_zone_specification.dart
@@ -9,6 +9,9 @@ import 'dart:async';
import 'trace.dart';
import 'chain.dart';
+/// A function that handles errors in the zone wrapped by [Chain.capture].
+typedef void _ChainHandler(error, Chain chain);
+
/// A class encapsulating the zone specification for a [Chain.capture] zone.
///
/// Until they're materialized and exposed to the user, stack chains are tracked
@@ -43,7 +46,7 @@ class StackZoneSpecification {
///
/// If this is null, that indicates that any unhandled errors should be passed
/// to the parent zone.
- final ChainHandler _onError;
+ final _ChainHandler _onError;
/// The most recent node of the current stack chain.
_Node _currentNode;
« no previous file with comments | « lib/src/chain.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698