File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
source_gen/lib/src/constants Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,6 @@ import 'package:analyzer/dart/constant/value.dart';
88import 'package:analyzer/dart/element/element.dart' ;
99import 'package:analyzer/dart/element/type.dart' ;
1010
11- // ignore: implementation_imports
12- import 'package:analyzer/src/dart/constant/value.dart' show DartObjectImpl;
13-
1411import '../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;
You can’t perform that action at this time.
0 commit comments