|
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 |
| - |
7 | 5 | import 'package:analyzer/dart/element/element2.dart';
|
8 | 6 | import 'package:analyzer/dart/element/nullability_suffix.dart';
|
9 | 7 | import 'package:analyzer/dart/element/type.dart';
|
10 | 8 | // ignore: implementation_imports
|
11 |
| -import 'package:analyzer/src/utilities/extensions/element.dart'; |
| 9 | +import 'package:analyzer/src/dart/element/element.dart'; |
| 10 | +// ignore: implementation_imports |
| 11 | +import 'package:analyzer/src/dart/element/type_system.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,9 @@ 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.instantiateInterfaceToBounds( |
56 |
| - element: otherType.element3.asElement, |
| 55 | + otherType = (library.element2.typeSystem as TypeSystemImpl) |
| 56 | + .instantiateInterfaceToBounds2( |
| 57 | + element: otherType.element3 as InterfaceElementImpl2, |
57 | 58 | nullabilitySuffix: NullabilitySuffix.none,
|
58 | 59 | );
|
59 | 60 |
|
|
0 commit comments