File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed
pkg/analyzer/lib/src/generated Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class FfiVerifier extends RecursiveAstVisitor<void> {
25
25
static const _opaqueClassName = 'Opaque' ;
26
26
static const _ffiNativeName = 'FfiNative' ;
27
27
28
- static const List <String > _primitiveIntegerNativeTypes = [
28
+ static const Set <String > _primitiveIntegerNativeTypes = {
29
29
'Int8' ,
30
30
'Int16' ,
31
31
'Int32' ,
@@ -35,12 +35,12 @@ class FfiVerifier extends RecursiveAstVisitor<void> {
35
35
'Uint32' ,
36
36
'Uint64' ,
37
37
'IntPtr'
38
- ] ;
38
+ } ;
39
39
40
- static const List <String > _primitiveDoubleNativeTypes = [
40
+ static const Set <String > _primitiveDoubleNativeTypes = {
41
41
'Float' ,
42
42
'Double' ,
43
- ] ;
43
+ } ;
44
44
45
45
static const _primitiveBoolNativeType = 'Bool' ;
46
46
@@ -1516,13 +1516,7 @@ extension on NamedType {
1516
1516
bool get isCompoundSubtype {
1517
1517
var element = name.staticElement;
1518
1518
if (element is ClassElement ) {
1519
- bool isCompound (InterfaceType ? type) {
1520
- return type != null && type.isCompound;
1521
- }
1522
-
1523
- return isCompound (element.supertype) ||
1524
- element.interfaces.any (isCompound) ||
1525
- element.mixins.any (isCompound);
1519
+ return element.allSupertypes.any ((e) => e.isCompound);
1526
1520
}
1527
1521
return false ;
1528
1522
}
You can’t perform that action at this time.
0 commit comments