1f9d59c807
General approach: Find all scopes for an offset, then pick "the right one". This still leaves a few offsets where we can't pick 1 scope in the (non-outline) dills in the out directory though. More thorough testing will follow. TEST=ci Change-Id: I66448498e07aa03f720733bcaf167bbfa30bca2f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338840 Commit-Queue: Jens Johansen <jensj@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com> Reviewed-by: Daco Harkes <dacoharkes@google.com>
30 lines
834 B
Plaintext
30 lines
834 B
Plaintext
library;
|
|
import self as self;
|
|
import "dart:ffi" as ffi;
|
|
|
|
import "dart:ffi";
|
|
import "package:ffi/ffi.dart";
|
|
|
|
final class StructInlineArray extends ffi::Struct {
|
|
synthetic constructor •() → self::StructInlineArray
|
|
: super ffi::Struct::•()
|
|
;
|
|
@#C3
|
|
external get a0() → ffi::Array<ffi::Uint8>;
|
|
@#C3
|
|
external set a0(synthesized 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)
|
|
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
|