Skip to content

Commit

Permalink
Fixes #2004. Update expected errors locations for CFE (#2011)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrekhov authored Apr 7, 2023
1 parent d42cd47 commit 79b9b74
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 16 deletions.
6 changes: 4 additions & 2 deletions LibTest/ffi/Array/Array.multi_A01_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@ final class MyStruct extends Struct {
@Array.multi([])
//^^^^^^^^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified
external Array<Int16> a0;
// ^^
// [cfe] unspecified

@Array.multi([1])
//^^^^^^^^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified
external Array<Array<Int16>> a1;
// ^^
// [cfe] unspecified
}

void main() {
Expand Down
20 changes: 12 additions & 8 deletions LibTest/ffi/Array/Array.multi_A02_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,32 @@ import "package:ffi/ffi.dart";

final class MyStruct extends Struct {
@Array.multi([0, 1])
//^^^^^^^^^^^^^^^^^^^^
// ^
// [analyzer] unspecified
// [cfe] unspecified
external Array<Array<Int8>> a0;
// ^^
// [cfe] unspecified

@Array(0, 1, 0, 1)
//^^^^^^^^^^^^^^^^^^
// ^
// [analyzer] unspecified
// [cfe] unspecified
external Array<Array<Array<Array<Int8>>>> a1;
// ^^
// [cfe] unspecified

@Array.multi([1, 0])
//^^^^^^^^^^^^^^^^^^^^
// ^
// [analyzer] unspecified
// [cfe] unspecified
external Array<Array<Int8>> a2;
// ^^
// [cfe] unspecified

@Array(1, 1, 0, 1)
//^^^^^^^^^^^^^^^^^^
// ^
// [analyzer] unspecified
// [cfe] unspecified
external Array<Array<Array<Array<Int8>>>> a3;
// ^^
// [cfe] unspecified
}

void main() {
Expand Down
5 changes: 3 additions & 2 deletions LibTest/ffi/Array/Array.multi_A02_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ import "dart:ffi";

final class MyStruct extends Struct {
@Array.multi([-1])
//^^^^^^^^^^^^^^^^^
// ^^
// [analyzer] unspecified
// [cfe] unspecified
external Array<Uint8> a0;
// ^^
// [cfe] unspecified
}

void main() {
Expand Down
5 changes: 3 additions & 2 deletions LibTest/ffi/Array/Array_A02_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ import "package:ffi/ffi.dart";

final class MyStruct extends Struct {
@Array(0)
//^^^^^^^^^
// ^
// [analyzer] unspecified
// [cfe] unspecified
external Array<Uint8> a0;
// ^^
// [cfe] unspecified
}

void main() {
Expand Down
5 changes: 3 additions & 2 deletions LibTest/ffi/Array/Array_A02_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ import "dart:ffi";

final class MyStruct extends Struct {
@Array(-1)
//^^^^^^^^^^
// ^^
// [analyzer] unspecified
// [cfe] unspecified
external Array<Uint8> a0;
// ^^
// [cfe] unspecified
}

void main() {
Expand Down

0 comments on commit 79b9b74

Please sign in to comment.