blob: af68238a378f4217ca3616737b166fd29df878eb [file] [log] [blame]
main = <No Member>;
//
// Problems in component:
//
// org-dartlang-test:///structs.dart:6:14: Error: Field 'zz' requires exactly one annotation to declare its native type, which cannot be Void. dart:ffi Structs and Unions cannot have regular Dart fields.
// external Z zz;
// ^
//
library from "org-dartlang-test:///structs.dart" as str {
//
// Problems in library:
//
// org-dartlang-test:///structs.dart:6:12: Error: 'Z' isn't a type.
// external Z zz;
// ^
//
// org-dartlang-test:///structs.dart:6:12: Error: Type 'Z' not found.
// external Z zz;
// ^
//
import "dart:ffi";
@#C3
@#C8
final class A extends dart.ffi::Struct {
synthetic constructor •() str::A
: super dart.ffi::Struct::•()
;
constructor #fromTypedDataBase(synthesized dart.core::Object #typedDataBase, synthesized dart.core::int #offsetInBytes) → str::A
: super dart.ffi::Struct::_fromTypedDataBase(#typedDataBase, #offsetInBytes)
;
@#C10
constructor #fromTypedData(synthesized dart.typed_data::TypedData #typedData, synthesized dart.core::int #offset, synthesized dart.core::int #sizeInBytes) → str::A
: super dart.ffi::Struct::_fromTypedData(#typedData, #offset, #sizeInBytes)
;
@#C10
get yy() str::Y
return new str::Y::#fromTypedDataBase(this.{dart.ffi::_Compound::_typedDataBase}{dart.core::Object}, str::A::yy#offsetOf.{dart.core::num::+}(this.{dart.ffi::_Compound::_offsetInBytes}{dart.core::int}){(dart.core::num) → dart.core::num});
@#C10
set yy(synthesized str::Y #externalFieldValue) → void
return dart.ffi::_memCopy(this.{dart.ffi::_Compound::_typedDataBase}{dart.core::Object}, str::A::yy#offsetOf.{dart.core::num::+}(this.{dart.ffi::_Compound::_offsetInBytes}{dart.core::int}){(dart.core::num) → dart.core::num}, #externalFieldValue.{dart.ffi::_Compound::_typedDataBase}{dart.core::Object}, #externalFieldValue.{dart.ffi::_Compound::_offsetInBytes}{dart.core::int}, #C12.{dart.core::List::[]}(dart.ffi::_abi()){(dart.core::int) → dart.core::int});
@#C10
static synthetic get yy#offsetOf() → dart.core::int
return #C12.{dart.core::List::[]}(dart.ffi::_abi()){(dart.core::int) → dart.core::int};
@#C10
static get #sizeOf() → dart.core::int
return #C12.{dart.core::List::[]}(dart.ffi::_abi()){(dart.core::int) → dart.core::int};
}
@#C3
final class Y extends dart.ffi::Struct {
synthetic constructor •() str::Y
: super dart.ffi::Struct::•()
;
constructor #fromTypedDataBase(synthesized dart.core::Object #typedDataBase, synthesized dart.core::int #offsetInBytes) → str::Y
: super dart.ffi::Struct::_fromTypedDataBase(#typedDataBase, #offsetInBytes)
;
@#C10
constructor #fromTypedData(synthesized dart.typed_data::TypedData #typedData, synthesized dart.core::int #offset, synthesized dart.core::int #sizeInBytes) → str::Y
: super dart.ffi::Struct::_fromTypedData(#typedData, #offset, #sizeInBytes)
;
external get zz() invalid-type;
external set zz(synthesized invalid-type #externalFieldValue) → void;
@#C10
static get #sizeOf() → dart.core::int
return #C12.{dart.core::List::[]}(dart.ffi::_abi()){(dart.core::int) → dart.core::int};
}
}
constants {
#C1 = "vm:deeply-immutable"
#C2 = null
#C3 = dart.core::pragma {name:#C1, options:#C2}
#C4 = "vm:ffi:struct-fields"
#C5 = TypeLiteralConstant(str::Y)
#C6 = <dart.core::Type>[#C5]
#C7 = dart.ffi::_FfiStructLayout {fieldTypes:#C6, packing:#C2}
#C8 = dart.core::pragma {name:#C4, options:#C7}
#C9 = "vm:prefer-inline"
#C10 = dart.core::pragma {name:#C9, options:#C2}
#C11 = 0
#C12 = <dart.core::int>[#C11, #C11, #C11, #C11, #C11, #C11, #C11, #C11, #C11, #C11, #C11, #C11, #C11, #C11, #C11, #C11, #C11, #C11, #C11, #C11, #C11, #C11]
}