| // |
| // Problems outside component: |
| // |
| // third_party/pkg/ffi/lib/src/allocation.dart: Info: Support for using non-constant type arguments 'T' in this FFI API is deprecated and will be removed in the next stable version of Dart. Rewrite the code to ensure that type arguments are compile time constants referring to a valid native type. |
| // |
| library; |
| import self as self; |
| import "dart:core" as core; |
| import "dart:ffi" as ffi; |
| |
| import "dart:ffi"; |
| import "package:ffi/ffi.dart"; |
| |
| @#C3 |
| @#C8 |
| class Coordinate extends ffi::Struct { |
| @#C3 |
| static final field core::int* #sizeOf = (#C11).{core::List::[]}(ffi::_abi()); |
| @#C3 |
| constructor #fromTypedDataBase(dynamic #pointer) → dynamic |
| : super ffi::Struct::_fromPointer(#pointer) |
| ; |
| static factory allocate(ffi::Allocator* allocator, core::double* x, core::double* y, ffi::Pointer<self::Coordinate*>* next) → self::Coordinate* { |
| return let final self::Coordinate* #t1 = new self::Coordinate::#fromTypedDataBase(allocator.{ffi::Allocator::allocate}<self::Coordinate*>(self::Coordinate::#sizeOf)!) in block { |
| #t1.{self::Coordinate::x} = x; |
| #t1.{self::Coordinate::y} = y; |
| #t1.{self::Coordinate::next} = next; |
| } =>#t1; |
| } |
| abstract member-signature get _addressOf() → core::Object*; -> ffi::Struct::_addressOf |
| abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode |
| abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf |
| abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf |
| abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue |
| abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse |
| abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== |
| abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode |
| abstract member-signature method toString() → core::String*; -> core::Object::toString |
| abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod |
| abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType |
| get x() → core::double* |
| return ffi::_loadDouble(this.{ffi::Struct::_addressOf}, (#C13).{core::List::[]}(ffi::_abi())); |
| set x(core::double* #v) → void |
| return ffi::_storeDouble(this.{ffi::Struct::_addressOf}, (#C13).{core::List::[]}(ffi::_abi()), #v); |
| get y() → core::double* |
| return ffi::_loadDouble(this.{ffi::Struct::_addressOf}, (#C15).{core::List::[]}(ffi::_abi())); |
| set y(core::double* #v) → void |
| return ffi::_storeDouble(this.{ffi::Struct::_addressOf}, (#C15).{core::List::[]}(ffi::_abi()), #v); |
| get next() → ffi::Pointer<self::Coordinate*>* |
| return ffi::_fromAddress<self::Coordinate*>(ffi::_loadIntPtr(this.{ffi::Struct::_addressOf}, (#C17).{core::List::[]}(ffi::_abi()))); |
| set next(ffi::Pointer<self::Coordinate*>* #v) → void |
| return ffi::_storeIntPtr(this.{ffi::Struct::_addressOf}, (#C17).{core::List::[]}(ffi::_abi()), #v.{ffi::Pointer::address}); |
| } |
| static method main() → dynamic {} |
| |
| constants { |
| #C1 = "vm:entry-point" |
| #C2 = null |
| #C3 = core::pragma {name:#C1, options:#C2} |
| #C4 = "vm:ffi:struct-fields" |
| #C5 = TypeLiteralConstant(ffi::Double) |
| #C6 = TypeLiteralConstant(ffi::Pointer<ffi::NativeType>) |
| #C7 = <core::Type>[#C5, #C5, #C6] |
| #C8 = core::pragma {name:#C4, options:#C7} |
| #C9 = 24 |
| #C10 = 20 |
| #C11 = <core::int*>[#C9, #C10, #C9] |
| #C12 = 0 |
| #C13 = <core::int*>[#C12, #C12, #C12] |
| #C14 = 8 |
| #C15 = <core::int*>[#C14, #C14, #C14] |
| #C16 = 16 |
| #C17 = <core::int*>[#C16, #C16, #C16] |
| } |
| |
| |
| Constructor coverage from constants: |
| org-dartlang-testcase:///ffi_sample.dart: |
| - Double. (from org-dartlang-sdk:///sdk/lib/ffi/native_type.dart:122:9) |