33// BSD-style license that can be found in the LICENSE file.
44
55import 'package:analyzer/dart/element/nullability_suffix.dart' ;
6- import 'package:analyzer/dart/element/type.dart' ;
76import 'package:analyzer/src/dart/element/element.dart' ;
87import 'package:analyzer/src/dart/element/type.dart' ;
98import 'package:analyzer/src/dart/element/type_algebra.dart' ;
@@ -17,7 +16,7 @@ class ClassHierarchy {
1716 return _getHierarchy (element).errors;
1817 }
1918
20- List <InterfaceType > implementedInterfaces (InterfaceElementImpl2 element) {
19+ List <InterfaceTypeImpl > implementedInterfaces (InterfaceElementImpl2 element) {
2120 return _getHierarchy (element).interfaces;
2221 }
2322
@@ -45,7 +44,7 @@ class ClassHierarchy {
4544
4645 hierarchy = _Hierarchy (
4746 errors: const < ClassHierarchyError > [],
48- interfaces: const < InterfaceType > [],
47+ interfaces: const < InterfaceTypeImpl > [],
4948 );
5049 _map[element] = hierarchy;
5150
@@ -82,7 +81,7 @@ class ClassHierarchy {
8281 }
8382
8483 var errors = < ClassHierarchyError > [];
85- var interfaces = < InterfaceType > [];
84+ var interfaces = < InterfaceTypeImpl > [];
8685 for (var collector in interfacesMerger._map.values) {
8786 var error = collector._error;
8887 if (error != null ) {
@@ -111,8 +110,8 @@ abstract class ClassHierarchyError {}
111110/// In opted-in libraries NNBD_TOP_MERGE of NORM of the interfaces must be
112111/// successful.
113112class IncompatibleInterfacesClassHierarchyError extends ClassHierarchyError {
114- final InterfaceType first;
115- final InterfaceType second;
113+ final InterfaceTypeImpl first;
114+ final InterfaceTypeImpl second;
116115
117116 IncompatibleInterfacesClassHierarchyError (this .first, this .second);
118117}
@@ -207,7 +206,7 @@ class _ClassInterfaceType {
207206
208207class _Hierarchy {
209208 List <ClassHierarchyError > errors;
210- List <InterfaceType > interfaces;
209+ List <InterfaceTypeImpl > interfaces;
211210
212211 _Hierarchy ({required this .errors, required this .interfaces});
213212}
0 commit comments