Skip to content

Commit 8e59eab

Browse files
committed
Revert extension.dart
1 parent 54c8892 commit 8e59eab

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/src/model/extension.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
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+
57
import 'package:analyzer/dart/element/element2.dart';
68
import 'package:analyzer/dart/element/nullability_suffix.dart';
79
import 'package:analyzer/dart/element/type.dart';
810
// 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';
1212
import 'package:dartdoc/src/element_type.dart';
1313
import 'package:dartdoc/src/model/comment_referable.dart';
1414
import 'package:dartdoc/src/model/kind.dart';
@@ -52,8 +52,8 @@ class Extension extends Container {
5252
extendedType = library.element2.typeSystem.promoteToNonNull(extendedType);
5353
var otherType = container.modelType.type;
5454
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,
5757
nullabilitySuffix: NullabilitySuffix.none,
5858
);
5959

0 commit comments

Comments
 (0)