Skip to content

Commit 6417e1c

Browse files
scheglovCommit Queue
authored andcommitted
Elements. Migrate TypeConstraintGatherer.
Change-Id: I321604b994d6aa63bf9e6b6de70bbe6a79f61f24 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/406060 Reviewed-by: Phil Quitslund <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent 1ec4ea7 commit 6417e1c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/analyzer/lib/src/dart/element/type_constraint_gatherer.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
// ignore_for_file: analyzer_use_new_elements
6-
75
import 'package:_fe_analyzer_shared/src/type_inference/type_analyzer_operations.dart'
86
as shared
97
show
@@ -191,7 +189,7 @@ class TypeConstraintGatherer extends shared.TypeConstraintGenerator<
191189
@override
192190
List<TypeImpl>? getTypeArgumentsAsInstanceOf(
193191
InterfaceType type, InterfaceElementImpl2 typeDeclaration) {
194-
for (var interface in type.element.allSupertypes) {
192+
for (var interface in type.element3.allSupertypes) {
195193
if (interface.element3 == typeDeclaration) {
196194
var substitution = Substitution.fromInterfaceType(type);
197195
var substitutedInterface =

0 commit comments

Comments
 (0)