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';
8
8
import 'package:analyzer/dart/element/element.dart' ;
9
9
import 'package:analyzer/dart/element/type.dart' ;
10
10
11
- // ignore: implementation_imports
12
- import 'package:analyzer/src/dart/constant/value.dart' show DartObjectImpl;
13
-
14
11
import '../utils.dart' ;
15
12
16
13
/// Attempts to extract what source code could be used to represent [object] .
@@ -79,7 +76,7 @@ Revivable reviveInstance(DartObject object, [LibraryElement? origin]) {
79
76
}
80
77
}
81
78
}
82
- final i = ( object as DartObjectImpl ) .constructorInvocation;
79
+ final i = object.constructorInvocation;
83
80
if (i != null ) {
84
81
url = Uri .parse (urlOfElement (i.constructor.enclosingElement));
85
82
String newToEmpty (String string) => string == 'new' ? '' : string;
You can’t perform that action at this time.
0 commit comments