|
2 | 2 | // for details. All rights reserved. Use of this source code is governed by a |
3 | 3 | // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
|
| 5 | +// ignore_for_file: analyzer_use_new_elements |
| 6 | + |
5 | 7 | import 'package:analyzer/dart/element/element2.dart'; |
6 | 8 | import 'package:analyzer/dart/element/nullability_suffix.dart'; |
7 | 9 | import 'package:analyzer/dart/element/type.dart'; |
8 | 10 | // ignore: implementation_imports |
9 | | -import 'package:analyzer/src/dart/element/element.dart'; |
10 | | -// ignore: implementation_imports |
11 | | -import 'package:analyzer/src/dart/element/type_system.dart'; |
| 11 | +import 'package:analyzer/src/utilities/extensions/element.dart'; |
12 | 12 | import 'package:dartdoc/src/element_type.dart'; |
13 | 13 | import 'package:dartdoc/src/model/comment_referable.dart'; |
14 | 14 | import 'package:dartdoc/src/model/kind.dart'; |
@@ -52,8 +52,8 @@ class Extension extends Container { |
52 | 52 | extendedType = library.element2.typeSystem.promoteToNonNull(extendedType); |
53 | 53 | var otherType = container.modelType.type; |
54 | 54 | if (otherType is InterfaceType) { |
55 | | - otherType = (library.element2.typeSystem as TypeSystemImpl).instantiateInterfaceToBounds2( |
56 | | - element: otherType.element3 as InterfaceElementImpl2, |
| 55 | + otherType = library.element2.typeSystem.instantiateInterfaceToBounds( |
| 56 | + element: otherType.element3.asElement, |
57 | 57 | nullabilitySuffix: NullabilitySuffix.none, |
58 | 58 | ); |
59 | 59 |
|
|
0 commit comments