diff options
Diffstat (limited to 'crates/libsyntax2/tests/data/parser/err')
16 files changed, 16 insertions, 16 deletions
diff --git a/crates/libsyntax2/tests/data/parser/err/0000_struct_field_missing_comma.txt b/crates/libsyntax2/tests/data/parser/err/0000_struct_field_missing_comma.txt index 8ab435821..aa375fe8a 100644 --- a/crates/libsyntax2/tests/data/parser/err/0000_struct_field_missing_comma.txt +++ b/crates/libsyntax2/tests/data/parser/err/0000_struct_field_missing_comma.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 34) | 1 | ROOT@[0; 34) |
2 | STRUCT_DEF@[0; 34) | 2 | STRUCT_DEF@[0; 34) |
3 | STRUCT_KW@[0; 6) | 3 | STRUCT_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0001_item_recovery_in_file.txt b/crates/libsyntax2/tests/data/parser/err/0001_item_recovery_in_file.txt index 9c0394e25..771d6e1ef 100644 --- a/crates/libsyntax2/tests/data/parser/err/0001_item_recovery_in_file.txt +++ b/crates/libsyntax2/tests/data/parser/err/0001_item_recovery_in_file.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 21) | 1 | ROOT@[0; 21) |
2 | ERROR@[0; 2) | 2 | ERROR@[0; 2) |
3 | IF_KW@[0; 2) | 3 | IF_KW@[0; 2) |
4 | err: `expected an item` | 4 | err: `expected an item` |
diff --git a/crates/libsyntax2/tests/data/parser/err/0002_duplicate_shebang.txt b/crates/libsyntax2/tests/data/parser/err/0002_duplicate_shebang.txt index 0b6aa26eb..57fb48420 100644 --- a/crates/libsyntax2/tests/data/parser/err/0002_duplicate_shebang.txt +++ b/crates/libsyntax2/tests/data/parser/err/0002_duplicate_shebang.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 42) | 1 | ROOT@[0; 42) |
2 | SHEBANG@[0; 20) | 2 | SHEBANG@[0; 20) |
3 | WHITESPACE@[20; 21) | 3 | WHITESPACE@[20; 21) |
4 | err: `expected an item` | 4 | err: `expected an item` |
diff --git a/crates/libsyntax2/tests/data/parser/err/0003_C++_semicolon.txt b/crates/libsyntax2/tests/data/parser/err/0003_C++_semicolon.txt index 13558d07e..b51c0573a 100644 --- a/crates/libsyntax2/tests/data/parser/err/0003_C++_semicolon.txt +++ b/crates/libsyntax2/tests/data/parser/err/0003_C++_semicolon.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 40) | 1 | ROOT@[0; 40) |
2 | STRUCT_DEF@[0; 40) | 2 | STRUCT_DEF@[0; 40) |
3 | STRUCT_KW@[0; 6) | 3 | STRUCT_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0004_use_path_bad_segment.txt b/crates/libsyntax2/tests/data/parser/err/0004_use_path_bad_segment.txt index 64aa07801..646c84534 100644 --- a/crates/libsyntax2/tests/data/parser/err/0004_use_path_bad_segment.txt +++ b/crates/libsyntax2/tests/data/parser/err/0004_use_path_bad_segment.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 12) | 1 | ROOT@[0; 12) |
2 | USE_ITEM@[0; 12) | 2 | USE_ITEM@[0; 12) |
3 | USE_KW@[0; 3) | 3 | USE_KW@[0; 3) |
4 | WHITESPACE@[3; 4) | 4 | WHITESPACE@[3; 4) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0005_attribute_recover.txt b/crates/libsyntax2/tests/data/parser/err/0005_attribute_recover.txt index 8843e8372..b3cf9b889 100644 --- a/crates/libsyntax2/tests/data/parser/err/0005_attribute_recover.txt +++ b/crates/libsyntax2/tests/data/parser/err/0005_attribute_recover.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 54) | 1 | ROOT@[0; 54) |
2 | FN_DEF@[0; 31) | 2 | FN_DEF@[0; 31) |
3 | ATTR@[0; 18) | 3 | ATTR@[0; 18) |
4 | POUND@[0; 1) | 4 | POUND@[0; 1) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0006_named_field_recovery.txt b/crates/libsyntax2/tests/data/parser/err/0006_named_field_recovery.txt index e6e33cdbd..9abda7099 100644 --- a/crates/libsyntax2/tests/data/parser/err/0006_named_field_recovery.txt +++ b/crates/libsyntax2/tests/data/parser/err/0006_named_field_recovery.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 74) | 1 | ROOT@[0; 74) |
2 | STRUCT_DEF@[0; 73) | 2 | STRUCT_DEF@[0; 73) |
3 | STRUCT_KW@[0; 6) | 3 | STRUCT_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0007_stray_curly_in_file.txt b/crates/libsyntax2/tests/data/parser/err/0007_stray_curly_in_file.txt index 9642ed5bc..81e82f7e2 100644 --- a/crates/libsyntax2/tests/data/parser/err/0007_stray_curly_in_file.txt +++ b/crates/libsyntax2/tests/data/parser/err/0007_stray_curly_in_file.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 31) | 1 | ROOT@[0; 31) |
2 | ERROR@[0; 1) | 2 | ERROR@[0; 1) |
3 | R_CURLY@[0; 1) | 3 | R_CURLY@[0; 1) |
4 | err: `expected an item` | 4 | err: `expected an item` |
diff --git a/crates/libsyntax2/tests/data/parser/err/0008_item_block_recovery.txt b/crates/libsyntax2/tests/data/parser/err/0008_item_block_recovery.txt index 5a062acab..95a34333b 100644 --- a/crates/libsyntax2/tests/data/parser/err/0008_item_block_recovery.txt +++ b/crates/libsyntax2/tests/data/parser/err/0008_item_block_recovery.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 95) | 1 | ROOT@[0; 95) |
2 | FN_DEF@[0; 12) | 2 | FN_DEF@[0; 12) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0009_broken_struct_type_parameter.txt b/crates/libsyntax2/tests/data/parser/err/0009_broken_struct_type_parameter.txt index 0c5b57ee5..fa8adf881 100644 --- a/crates/libsyntax2/tests/data/parser/err/0009_broken_struct_type_parameter.txt +++ b/crates/libsyntax2/tests/data/parser/err/0009_broken_struct_type_parameter.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 43) | 1 | ROOT@[0; 43) |
2 | STRUCT_DEF@[0; 11) | 2 | STRUCT_DEF@[0; 11) |
3 | STRUCT_KW@[0; 6) | 3 | STRUCT_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0010_unsafe_lambda_block.txt b/crates/libsyntax2/tests/data/parser/err/0010_unsafe_lambda_block.txt index e453c3651..6cda8543f 100644 --- a/crates/libsyntax2/tests/data/parser/err/0010_unsafe_lambda_block.txt +++ b/crates/libsyntax2/tests/data/parser/err/0010_unsafe_lambda_block.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 42) | 1 | ROOT@[0; 42) |
2 | FN_DEF@[0; 41) | 2 | FN_DEF@[0; 41) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0011_extern_struct.txt b/crates/libsyntax2/tests/data/parser/err/0011_extern_struct.txt index be63741ae..0cb7447c4 100644 --- a/crates/libsyntax2/tests/data/parser/err/0011_extern_struct.txt +++ b/crates/libsyntax2/tests/data/parser/err/0011_extern_struct.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 19) | 1 | ROOT@[0; 19) |
2 | ERROR@[0; 6) | 2 | ERROR@[0; 6) |
3 | ABI@[0; 6) | 3 | ABI@[0; 6) |
4 | EXTERN_KW@[0; 6) | 4 | EXTERN_KW@[0; 6) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0012_broken_lambda.txt b/crates/libsyntax2/tests/data/parser/err/0012_broken_lambda.txt index f1827d3dc..a03aa05e3 100644 --- a/crates/libsyntax2/tests/data/parser/err/0012_broken_lambda.txt +++ b/crates/libsyntax2/tests/data/parser/err/0012_broken_lambda.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 389) | 1 | ROOT@[0; 389) |
2 | FN_DEF@[0; 389) | 2 | FN_DEF@[0; 389) |
3 | VISIBILITY@[0; 10) | 3 | VISIBILITY@[0; 10) |
4 | PUB_KW@[0; 3) | 4 | PUB_KW@[0; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0013_invalid_type.txt b/crates/libsyntax2/tests/data/parser/err/0013_invalid_type.txt index 7f48502da..f7f6c6bce 100644 --- a/crates/libsyntax2/tests/data/parser/err/0013_invalid_type.txt +++ b/crates/libsyntax2/tests/data/parser/err/0013_invalid_type.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 86) | 1 | ROOT@[0; 86) |
2 | STRUCT_DEF@[0; 84) | 2 | STRUCT_DEF@[0; 84) |
3 | VISIBILITY@[0; 3) | 3 | VISIBILITY@[0; 3) |
4 | PUB_KW@[0; 3) | 4 | PUB_KW@[0; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0014_where_no_bounds.txt b/crates/libsyntax2/tests/data/parser/err/0014_where_no_bounds.txt index cef20327c..37826ce86 100644 --- a/crates/libsyntax2/tests/data/parser/err/0014_where_no_bounds.txt +++ b/crates/libsyntax2/tests/data/parser/err/0014_where_no_bounds.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 23) | 1 | ROOT@[0; 23) |
2 | FN_DEF@[0; 22) | 2 | FN_DEF@[0; 22) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0015_curly_in_params.txt b/crates/libsyntax2/tests/data/parser/err/0015_curly_in_params.txt index 841379797..bd8356616 100644 --- a/crates/libsyntax2/tests/data/parser/err/0015_curly_in_params.txt +++ b/crates/libsyntax2/tests/data/parser/err/0015_curly_in_params.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 14) | 1 | ROOT@[0; 14) |
2 | FN_DEF@[0; 7) | 2 | FN_DEF@[0; 7) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |