diff options
Diffstat (limited to 'tests/data/parser/err')
6 files changed, 25 insertions, 18 deletions
diff --git a/tests/data/parser/err/0000_struct_field_missing_comma.txt b/tests/data/parser/err/0000_struct_field_missing_comma.txt index d94b4fd9e..2c761694c 100644 --- a/tests/data/parser/err/0000_struct_field_missing_comma.txt +++ b/tests/data/parser/err/0000_struct_field_missing_comma.txt | |||
@@ -1,9 +1,10 @@ | |||
1 | FILE@[0; 34) | 1 | FILE@[0; 34) |
2 | STRUCT_ITEM@[0; 34) | 2 | STRUCT_ITEM@[0; 34) |
3 | STRUCT_KW@[0; 6) | 3 | STRUCT_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | NAME@[6; 9) |
5 | IDENT@[7; 8) "S" | 5 | WHITESPACE@[6; 7) |
6 | WHITESPACE@[8; 9) | 6 | IDENT@[7; 8) "S" |
7 | WHITESPACE@[8; 9) | ||
7 | L_CURLY@[9; 10) | 8 | L_CURLY@[9; 10) |
8 | NAMED_FIELD@[10; 26) | 9 | NAMED_FIELD@[10; 26) |
9 | WHITESPACE@[10; 15) | 10 | WHITESPACE@[10; 15) |
diff --git a/tests/data/parser/err/0001_item_recovery_in_file.txt b/tests/data/parser/err/0001_item_recovery_in_file.txt index c33113c6d..e41ddc009 100644 --- a/tests/data/parser/err/0001_item_recovery_in_file.txt +++ b/tests/data/parser/err/0001_item_recovery_in_file.txt | |||
@@ -9,8 +9,9 @@ FILE@[0; 21) | |||
9 | WHITESPACE@[8; 10) | 9 | WHITESPACE@[8; 10) |
10 | STRUCT_ITEM@[10; 21) | 10 | STRUCT_ITEM@[10; 21) |
11 | STRUCT_KW@[10; 16) | 11 | STRUCT_KW@[10; 16) |
12 | WHITESPACE@[16; 17) | 12 | NAME@[16; 19) |
13 | IDENT@[17; 18) "S" | 13 | WHITESPACE@[16; 17) |
14 | WHITESPACE@[18; 19) | 14 | IDENT@[17; 18) "S" |
15 | WHITESPACE@[18; 19) | ||
15 | L_CURLY@[19; 20) | 16 | L_CURLY@[19; 20) |
16 | R_CURLY@[20; 21) | 17 | R_CURLY@[20; 21) |
diff --git a/tests/data/parser/err/0003_C++_semicolon.txt b/tests/data/parser/err/0003_C++_semicolon.txt index d77c06378..e567b0775 100644 --- a/tests/data/parser/err/0003_C++_semicolon.txt +++ b/tests/data/parser/err/0003_C++_semicolon.txt | |||
@@ -1,9 +1,10 @@ | |||
1 | FILE@[0; 40) | 1 | FILE@[0; 40) |
2 | STRUCT_ITEM@[0; 39) | 2 | STRUCT_ITEM@[0; 39) |
3 | STRUCT_KW@[0; 6) | 3 | STRUCT_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | NAME@[6; 9) |
5 | IDENT@[7; 8) "S" | 5 | WHITESPACE@[6; 7) |
6 | WHITESPACE@[8; 9) | 6 | IDENT@[7; 8) "S" |
7 | WHITESPACE@[8; 9) | ||
7 | L_CURLY@[9; 10) | 8 | L_CURLY@[9; 10) |
8 | NAMED_FIELD@[10; 21) | 9 | NAMED_FIELD@[10; 21) |
9 | WHITESPACE@[10; 15) | 10 | WHITESPACE@[10; 15) |
diff --git a/tests/data/parser/err/0006_named_field_recovery.txt b/tests/data/parser/err/0006_named_field_recovery.txt index 0437bf2e7..7886beeb8 100644 --- a/tests/data/parser/err/0006_named_field_recovery.txt +++ b/tests/data/parser/err/0006_named_field_recovery.txt | |||
@@ -1,9 +1,10 @@ | |||
1 | FILE@[0; 74) | 1 | FILE@[0; 74) |
2 | STRUCT_ITEM@[0; 74) | 2 | STRUCT_ITEM@[0; 74) |
3 | STRUCT_KW@[0; 6) | 3 | STRUCT_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | NAME@[6; 9) |
5 | IDENT@[7; 8) "S" | 5 | WHITESPACE@[6; 7) |
6 | WHITESPACE@[8; 9) | 6 | IDENT@[7; 8) "S" |
7 | WHITESPACE@[8; 9) | ||
7 | L_CURLY@[9; 10) | 8 | L_CURLY@[9; 10) |
8 | NAMED_FIELD@[10; 21) | 9 | NAMED_FIELD@[10; 21) |
9 | WHITESPACE@[10; 15) | 10 | WHITESPACE@[10; 15) |
diff --git a/tests/data/parser/err/0007_stray_curly_in_file.txt b/tests/data/parser/err/0007_stray_curly_in_file.txt index 6460d06d8..f20807bfe 100644 --- a/tests/data/parser/err/0007_stray_curly_in_file.txt +++ b/tests/data/parser/err/0007_stray_curly_in_file.txt | |||
@@ -5,8 +5,9 @@ FILE@[0; 31) | |||
5 | WHITESPACE@[1; 3) | 5 | WHITESPACE@[1; 3) |
6 | STRUCT_ITEM@[3; 14) | 6 | STRUCT_ITEM@[3; 14) |
7 | STRUCT_KW@[3; 9) | 7 | STRUCT_KW@[3; 9) |
8 | WHITESPACE@[9; 10) | 8 | NAME@[9; 11) |
9 | IDENT@[10; 11) "S" | 9 | WHITESPACE@[9; 10) |
10 | IDENT@[10; 11) "S" | ||
10 | SEMI@[11; 12) | 11 | SEMI@[11; 12) |
11 | WHITESPACE@[12; 14) | 12 | WHITESPACE@[12; 14) |
12 | ERROR@[14; 17) | 13 | ERROR@[14; 17) |
diff --git a/tests/data/parser/err/0009_broken_struct_type_parameter.txt b/tests/data/parser/err/0009_broken_struct_type_parameter.txt index f329735b6..9434a764a 100644 --- a/tests/data/parser/err/0009_broken_struct_type_parameter.txt +++ b/tests/data/parser/err/0009_broken_struct_type_parameter.txt | |||
@@ -1,8 +1,9 @@ | |||
1 | FILE@[0; 43) | 1 | FILE@[0; 43) |
2 | STRUCT_ITEM@[0; 12) | 2 | STRUCT_ITEM@[0; 12) |
3 | STRUCT_KW@[0; 6) | 3 | STRUCT_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | NAME@[6; 8) |
5 | IDENT@[7; 8) "S" | 5 | WHITESPACE@[6; 7) |
6 | IDENT@[7; 8) "S" | ||
6 | TYPE_PARAM_LIST@[8; 12) | 7 | TYPE_PARAM_LIST@[8; 12) |
7 | L_ANGLE@[8; 9) | 8 | L_ANGLE@[8; 9) |
8 | ERROR@[9; 12) | 9 | ERROR@[9; 12) |
@@ -36,7 +37,8 @@ FILE@[0; 43) | |||
36 | WHITESPACE@[31; 33) | 37 | WHITESPACE@[31; 33) |
37 | STRUCT_ITEM@[33; 43) | 38 | STRUCT_ITEM@[33; 43) |
38 | STRUCT_KW@[33; 39) | 39 | STRUCT_KW@[33; 39) |
39 | WHITESPACE@[39; 40) | 40 | NAME@[39; 41) |
40 | IDENT@[40; 41) "T" | 41 | WHITESPACE@[39; 40) |
42 | IDENT@[40; 41) "T" | ||
41 | SEMI@[41; 42) | 43 | SEMI@[41; 42) |
42 | WHITESPACE@[42; 43) | 44 | WHITESPACE@[42; 43) |