Skip to content

Commit 471c225

Browse files
srawlinsCommit Queue
authored andcommitted
analyzer: Remove unused ExceptionInDelegateHandler typedef
Change-Id: Ib9c992d480b5c20cb90fabb0ebe90cbab2af4a12 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/392407 Auto-Submit: Samuel Rawlins <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent 9612b71 commit 471c225

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

pkg/analyzer/lib/src/dart/ast/utilities.dart

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ import 'package:analyzer/src/generated/engine.dart' show AnalysisEngine;
1111

1212
export 'package:analyzer/src/dart/ast/constant_evaluator.dart';
1313

14-
/// A function used to handle exceptions that are thrown by delegates while
15-
/// using an [ExceptionHandlingDelegatingAstVisitor].
16-
typedef ExceptionInDelegateHandler = void Function(
17-
AstNode node, AstVisitor visitor, dynamic exception, StackTrace stackTrace);
18-
1914
/// An AstVisitor that compares the structure of two AstNodes to see whether
2015
/// they are equal.
2116
class AstComparator implements AstVisitor<bool> {
@@ -30,14 +25,15 @@ class AstComparator implements AstVisitor<bool> {
3025
return false;
3126
}
3227

33-
/// Check whether the values of the [first] and [second] nodes are [equal].
28+
/// Checks whether the values of the [first] and [second] nodes are equal.
29+
///
3430
/// Subclasses can override to throw.
3531
bool failIfNotEqual(
3632
AstNode first, Object? firstValue, AstNode second, Object? secondValue) {
3733
return firstValue == secondValue;
3834
}
3935

40-
/// Check whether [second] is null. Subclasses can override to throw.
36+
/// Checks whether [second] is `null`. Subclasses can override to throw.
4137
bool failIfNotNull(Object? first, Object? second) {
4238
return second == null;
4339
}

0 commit comments

Comments
 (0)