|
| 1 | +main = <No Member>; |
| 2 | +library from "org-dartlang-test:///lib.dart" as lib { |
| 3 | + |
| 4 | + import "dart:ffi"; |
| 5 | + |
| 6 | + @#C3 |
| 7 | + class Coordinate extends dart.ffi::Struct { |
| 8 | + @#C3 |
| 9 | + static final field dart.core::int* #sizeOf = (#C6).{dart.core::List::[]}(dart.ffi::_abi()); |
| 10 | + @#C3 |
| 11 | + constructor #fromPointer(dynamic #pointer) → dynamic |
| 12 | + : super dart.ffi::Struct::_fromPointer(#pointer) |
| 13 | + ; |
| 14 | + static factory allocate(dart.core::double* x, dart.core::double* y, dart.ffi::Pointer<lib::Coordinate*>* next) → lib::Coordinate* { |
| 15 | + return null; |
| 16 | + } |
| 17 | + get #_ptr_x() → dart.ffi::Pointer<dart.ffi::Double*>* |
| 18 | + return this.{dart.ffi::Struct::_addressOf}.{dart.ffi::Pointer::cast}<dart.ffi::Double*>(); |
| 19 | + get x() → dart.core::double* |
| 20 | + return dart.ffi::_loadDouble(this.{lib::Coordinate::#_ptr_x}, #C7); |
| 21 | + set x(dart.core::double* #v) → void |
| 22 | + return dart.ffi::_storeDouble(this.{lib::Coordinate::#_ptr_x}, #C7, #v); |
| 23 | + get #_ptr_y() → dart.ffi::Pointer<dart.ffi::Double*>* |
| 24 | + return this.{dart.ffi::Struct::_addressOf}.{dart.ffi::Pointer::_offsetBy}((#C9).{dart.core::List::[]}(dart.ffi::_abi())).{dart.ffi::Pointer::cast}<dart.ffi::Double*>(); |
| 25 | + get y() → dart.core::double* |
| 26 | + return dart.ffi::_loadDouble(this.{lib::Coordinate::#_ptr_y}, #C7); |
| 27 | + set y(dart.core::double* #v) → void |
| 28 | + return dart.ffi::_storeDouble(this.{lib::Coordinate::#_ptr_y}, #C7, #v); |
| 29 | + get #_ptr_next() → dart.ffi::Pointer<dart.ffi::Pointer<lib::Coordinate*>*>* |
| 30 | + return this.{dart.ffi::Struct::_addressOf}.{dart.ffi::Pointer::_offsetBy}((#C11).{dart.core::List::[]}(dart.ffi::_abi())).{dart.ffi::Pointer::cast}<dart.ffi::Pointer<lib::Coordinate*>*>(); |
| 31 | + get next() → dart.ffi::Pointer<lib::Coordinate*>* |
| 32 | + return dart.ffi::_loadPointer<dart.ffi::Pointer<lib::Coordinate*>*>(this.{lib::Coordinate::#_ptr_next}, #C7); |
| 33 | + set next(dart.ffi::Pointer<lib::Coordinate*>* #v) → void |
| 34 | + return dart.ffi::_storePointer<dart.ffi::Pointer<lib::Coordinate*>*>(this.{lib::Coordinate::#_ptr_next}, #C7, #v); |
| 35 | + } |
| 36 | +} |
| 37 | +library from "org-dartlang-test:///main.dart" as main { |
| 38 | + |
| 39 | + import "org-dartlang-test:///lib.dart"; |
| 40 | + |
| 41 | + static method main() → dynamic { |
| 42 | + lib::Coordinate* coordinate = lib::Coordinate::allocate(42.0, 42.0, null); |
| 43 | + dart.core::print(coordinate.{lib::Coordinate::x}); |
| 44 | + dart.core::print(coordinate.{lib::Coordinate::y}); |
| 45 | + dart.core::print(coordinate.{lib::Coordinate::next}); |
| 46 | + } |
| 47 | +} |
| 48 | +constants { |
| 49 | + #C1 = "vm:entry-point" |
| 50 | + #C2 = null |
| 51 | + #C3 = dart.core::pragma {name:#C1, options:#C2} |
| 52 | + #C4 = 24 |
| 53 | + #C5 = 20 |
| 54 | + #C6 = <dart.core::int*>[#C4, #C5, #C4] |
| 55 | + #C7 = 0 |
| 56 | + #C8 = 8 |
| 57 | + #C9 = <dart.core::int*>[#C8, #C8, #C8] |
| 58 | + #C10 = 16 |
| 59 | + #C11 = <dart.core::int*>[#C10, #C10, #C10] |
| 60 | +} |
0 commit comments