mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
[cfe/ffi] Remove custom FFI checks covered by class modifiers
Tests are in the following files 3.0 and pre-3.0 respectively. TEST=tests/ffi/vmspecific_static_checks_test.dart TEST=tests/ffi_2/vmspecific_static_checks_test.dart Bug: https://github.com/dart-lang/sdk/issues/51683 Change-Id: Ib0b27590748ef788c5475929fde585c790f64e63 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/291064 Reviewed-by: Martin Kustermann <kustermann@google.com> Reviewed-by: Kallen Tu <kallentu@google.com> Commit-Queue: Daco Harkes <dacoharkes@google.com>
This commit is contained in:
parent
f27548aa5a
commit
7a90dd0c4f
|
@ -1,8 +1,6 @@
|
|||
//
|
||||
// Problems outside component:
|
||||
//
|
||||
// pkg/front_end/testcases/class_modifiers/ffi_exception.dart: Error: Class 'NativeType' cannot be extended or implemented.
|
||||
//
|
||||
// pkg/front_end/testcases/class_modifiers/ffi_exception.dart: Error: Class 'Object' cannot be extended or implemented.
|
||||
//
|
||||
library /*isNonNullableByDefault*/;
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
//
|
||||
// Problems outside component:
|
||||
//
|
||||
// pkg/front_end/testcases/class_modifiers/ffi_exception.dart: Error: Class 'NativeType' cannot be extended or implemented.
|
||||
//
|
||||
// pkg/front_end/testcases/class_modifiers/ffi_exception.dart: Error: Class 'Object' cannot be extended or implemented.
|
||||
//
|
||||
library /*isNonNullableByDefault*/;
|
||||
|
|
|
@ -785,12 +785,6 @@ mixin _FfiUseSiteTransformer on FfiTransformer {
|
|||
}
|
||||
}
|
||||
|
||||
for (final parent in nativeTypesClasses.values) {
|
||||
if (hierarchy.isSubtypeOf(klass, parent)) {
|
||||
return parent;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue