4ba4fd3f1d
Moves the Array forwarding constructors and _ArraySize class out of the patch files so that the analyzer can reason about them. (The analyzer does not include patch files, because it does not know whether it's analyzing for VM or JS backend.) Closes: https://github.com/dart-lang/sdk/issues/45507 Change-Id: Ia0eb4bbca40b906a1e636714f53c5c73dcfc3cad Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/193403 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Daco Harkes <dacoharkes@google.com>
29 lines
788 B
Plaintext
29 lines
788 B
Plaintext
library /*isNonNullableByDefault*/;
|
|
import self as self;
|
|
import "dart:ffi" as ffi;
|
|
|
|
import "dart:ffi";
|
|
import "package:ffi/ffi.dart";
|
|
|
|
class StructInlineArray extends ffi::Struct {
|
|
synthetic constructor •() → self::StructInlineArray
|
|
: super ffi::Struct::•()
|
|
;
|
|
@#C3
|
|
external get a0() → ffi::Array<ffi::Uint8>;
|
|
@#C3
|
|
external set a0(ffi::Array<ffi::Uint8> #externalFieldValue) → void;
|
|
}
|
|
static method main() → dynamic {}
|
|
|
|
constants {
|
|
#C1 = 8
|
|
#C2 = null
|
|
#C3 = ffi::_ArraySize<ffi::NativeType*> {dimension1:#C1, dimension2:#C2, dimension3:#C2, dimension4:#C2, dimension5:#C2, dimensions:#C2}
|
|
}
|
|
|
|
|
|
Constructor coverage from constants:
|
|
org-dartlang-testcase:///ffi_struct_inline_array.dart:
|
|
- _ArraySize. (from org-dartlang-sdk:///sdk/lib/ffi/ffi.dart:134:9)
|