Skip to content

Commit cdab11c

Browse files
scheglovCommit Queue
authored andcommitted
Remove deprecated DartType.isStructurallyEqualTo
Change-Id: Ibf7ec9f5af9011a162c1db5080702fddbdd4f27c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/423601 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]> Reviewed-by: Paul Berry <[email protected]>
1 parent ec390b5 commit cdab11c

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

pkg/analyzer/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## 8.0.0-dev
22
* Remove deprecated element model V1.
3+
* Remove deprecated `DartType.isStructurallyEqualTo`.
34

45
## 7.4.1
56
* Restore `InstanceElement.augmented` getter.

pkg/analyzer/api.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3877,7 +3877,6 @@ package:analyzer/dart/element/type.dart:
38773877
acceptWithArgument (method: R Function<R, A>(TypeVisitorWithArgument<R, A>, A))
38783878
asInstanceOf2 (method: InterfaceType? Function(InterfaceElement2), experimental)
38793879
getDisplayString (method: String Function({bool withNullability}))
3880-
isStructurallyEqualTo (method: bool Function(DartType), deprecated)
38813880
DynamicType (class extends Object implements DartType):
38823881
new (constructor: DynamicType Function())
38833882
FunctionType (class extends Object implements DartType):

pkg/analyzer/lib/dart/element/type.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,6 @@ abstract class DartType {
180180
@Deprecated('Only non-nullable by default mode is supported')
181181
bool withNullability = true,
182182
});
183-
184-
/// Determines whether this type is the same as [other].
185-
///
186-
/// Deprecated: this getter is a part of the analyzer's private
187-
/// implementation, and was exposed by accident (see
188-
/// https://github.com/dart-lang/sdk/issues/59763). Please use `==` instead.
189-
@Deprecated('Use `==` instead')
190-
bool isStructurallyEqualTo(covariant DartType other);
191183
}
192184

193185
/// The type `dynamic` is a type which is a supertype of all other types, just

0 commit comments

Comments
 (0)