Skip to content

Commit 99c2db9

Browse files
committed
Remove DartObjectImpl import
1 parent de76fde commit 99c2db9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

source_gen/lib/src/constants/revive.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ import 'package:analyzer/dart/constant/value.dart';
88
import 'package:analyzer/dart/element/element.dart';
99
import 'package:analyzer/dart/element/type.dart';
1010

11-
// ignore: implementation_imports
12-
import 'package:analyzer/src/dart/constant/value.dart' show DartObjectImpl;
13-
1411
import '../utils.dart';
1512

1613
/// Attempts to extract what source code could be used to represent [object].
@@ -79,7 +76,7 @@ Revivable reviveInstance(DartObject object, [LibraryElement? origin]) {
7976
}
8077
}
8178
}
82-
final i = (object as DartObjectImpl).constructorInvocation;
79+
final i = object.constructorInvocation;
8380
if (i != null) {
8481
url = Uri.parse(urlOfElement(i.constructor.enclosingElement));
8582
String newToEmpty(String string) => string == 'new' ? '' : string;

0 commit comments

Comments
 (0)