From cf278ed3bf71d336422f7d7d7d51be92b717b720 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 25 Aug 2018 11:44:17 +0300 Subject: rename file -> root --- crates/libsyntax2/tests/data/parser/ok/0000_empty.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0001_struct_item.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0002_struct_item_field.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0004_file_shebang.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0005_fn_item.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0006_inner_attributes.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0007_extern_crate.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0008_mod_item.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0009_use_item.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0010_use_path_segments.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0011_outer_attribute.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0012_visibility.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0013_use_path_self_super.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0014_use_tree.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0015_use_tree.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0016_struct_flavors.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0017_attr_trailing_comma.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0018_struct_type_params.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0019_enums.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0020_type_param_bounds.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0021_extern_fn.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0022_empty_extern_block.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0023_static_items.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0024_const_item.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0025_extern_fn_in_block.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0026_const_fn_in_block.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0027_unsafe_fn_in_block.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0028_operator_binding_power.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0029_range_forms.txt | 2 +- crates/libsyntax2/tests/data/parser/ok/0030_traits.txt | 2 +- 30 files changed, 30 insertions(+), 30 deletions(-) (limited to 'crates/libsyntax2/tests/data/parser/ok') diff --git a/crates/libsyntax2/tests/data/parser/ok/0000_empty.txt b/crates/libsyntax2/tests/data/parser/ok/0000_empty.txt index 54be3e7bc..9f505ee96 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0000_empty.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0000_empty.txt @@ -1 +1 @@ -FILE@[0; 0) +ROOT@[0; 0) diff --git a/crates/libsyntax2/tests/data/parser/ok/0001_struct_item.txt b/crates/libsyntax2/tests/data/parser/ok/0001_struct_item.txt index bc74d52b2..90df3416a 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0001_struct_item.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0001_struct_item.txt @@ -1,4 +1,4 @@ -FILE@[0; 32) +ROOT@[0; 32) STRUCT_DEF@[0; 31) STRUCT_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/libsyntax2/tests/data/parser/ok/0002_struct_item_field.txt b/crates/libsyntax2/tests/data/parser/ok/0002_struct_item_field.txt index 69da10900..0b65387ef 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0002_struct_item_field.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0002_struct_item_field.txt @@ -1,4 +1,4 @@ -FILE@[0; 25) +ROOT@[0; 25) STRUCT_DEF@[0; 25) STRUCT_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/libsyntax2/tests/data/parser/ok/0004_file_shebang.txt b/crates/libsyntax2/tests/data/parser/ok/0004_file_shebang.txt index 33055cf3d..bb8874ead 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0004_file_shebang.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0004_file_shebang.txt @@ -1,2 +1,2 @@ -FILE@[0; 20) +ROOT@[0; 20) SHEBANG@[0; 20) diff --git a/crates/libsyntax2/tests/data/parser/ok/0005_fn_item.txt b/crates/libsyntax2/tests/data/parser/ok/0005_fn_item.txt index 2dc8c85d6..8ed92f2a4 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0005_fn_item.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0005_fn_item.txt @@ -1,4 +1,4 @@ -FILE@[0; 13) +ROOT@[0; 13) FN_DEF@[0; 12) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/libsyntax2/tests/data/parser/ok/0006_inner_attributes.txt b/crates/libsyntax2/tests/data/parser/ok/0006_inner_attributes.txt index d5a170144..2b64c497f 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0006_inner_attributes.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0006_inner_attributes.txt @@ -1,4 +1,4 @@ -FILE@[0; 236) +ROOT@[0; 236) ATTR@[0; 8) POUND@[0; 1) EXCL@[1; 2) diff --git a/crates/libsyntax2/tests/data/parser/ok/0007_extern_crate.txt b/crates/libsyntax2/tests/data/parser/ok/0007_extern_crate.txt index 533af33c4..12193397e 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0007_extern_crate.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0007_extern_crate.txt @@ -1,4 +1,4 @@ -FILE@[0; 43) +ROOT@[0; 43) EXTERN_CRATE_ITEM@[0; 17) EXTERN_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/libsyntax2/tests/data/parser/ok/0008_mod_item.txt b/crates/libsyntax2/tests/data/parser/ok/0008_mod_item.txt index a2b4f6495..c790f8431 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0008_mod_item.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0008_mod_item.txt @@ -1,4 +1,4 @@ -FILE@[0; 118) +ROOT@[0; 118) MODULE@[0; 6) MOD_KW@[0; 3) WHITESPACE@[3; 4) diff --git a/crates/libsyntax2/tests/data/parser/ok/0009_use_item.txt b/crates/libsyntax2/tests/data/parser/ok/0009_use_item.txt index 8f850cd1c..4bcd15357 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0009_use_item.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0009_use_item.txt @@ -1,4 +1,4 @@ -FILE@[0; 19) +ROOT@[0; 19) USE_ITEM@[0; 8) USE_KW@[0; 3) WHITESPACE@[3; 4) diff --git a/crates/libsyntax2/tests/data/parser/ok/0010_use_path_segments.txt b/crates/libsyntax2/tests/data/parser/ok/0010_use_path_segments.txt index 03ec342c2..f76ea1a35 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0010_use_path_segments.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0010_use_path_segments.txt @@ -1,4 +1,4 @@ -FILE@[0; 40) +ROOT@[0; 40) USE_ITEM@[0; 20) USE_KW@[0; 3) WHITESPACE@[3; 4) diff --git a/crates/libsyntax2/tests/data/parser/ok/0011_outer_attribute.txt b/crates/libsyntax2/tests/data/parser/ok/0011_outer_attribute.txt index af4b55aed..203a07193 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0011_outer_attribute.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0011_outer_attribute.txt @@ -1,4 +1,4 @@ -FILE@[0; 35) +ROOT@[0; 35) FN_DEF@[0; 34) ATTR@[0; 12) POUND@[0; 1) diff --git a/crates/libsyntax2/tests/data/parser/ok/0012_visibility.txt b/crates/libsyntax2/tests/data/parser/ok/0012_visibility.txt index 940721f8b..66901af54 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0012_visibility.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0012_visibility.txt @@ -1,4 +1,4 @@ -FILE@[0; 98) +ROOT@[0; 98) FN_DEF@[0; 9) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/libsyntax2/tests/data/parser/ok/0013_use_path_self_super.txt b/crates/libsyntax2/tests/data/parser/ok/0013_use_path_self_super.txt index 5ed27ca37..95be4f75d 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0013_use_path_self_super.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0013_use_path_self_super.txt @@ -1,4 +1,4 @@ -FILE@[0; 65) +ROOT@[0; 65) USE_ITEM@[0; 14) USE_KW@[0; 3) WHITESPACE@[3; 4) diff --git a/crates/libsyntax2/tests/data/parser/ok/0014_use_tree.txt b/crates/libsyntax2/tests/data/parser/ok/0014_use_tree.txt index 86bafc853..4aa539159 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0014_use_tree.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0014_use_tree.txt @@ -1,4 +1,4 @@ -FILE@[0; 81) +ROOT@[0; 81) USE_ITEM@[0; 6) USE_KW@[0; 3) WHITESPACE@[3; 4) diff --git a/crates/libsyntax2/tests/data/parser/ok/0015_use_tree.txt b/crates/libsyntax2/tests/data/parser/ok/0015_use_tree.txt index 2e39766cf..aa4ef3715 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0015_use_tree.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0015_use_tree.txt @@ -1,4 +1,4 @@ -FILE@[0; 55) +ROOT@[0; 55) USE_ITEM@[0; 15) USE_KW@[0; 3) WHITESPACE@[3; 4) diff --git a/crates/libsyntax2/tests/data/parser/ok/0016_struct_flavors.txt b/crates/libsyntax2/tests/data/parser/ok/0016_struct_flavors.txt index 5bf3a1794..349481157 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0016_struct_flavors.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0016_struct_flavors.txt @@ -1,4 +1,4 @@ -FILE@[0; 97) +ROOT@[0; 97) STRUCT_DEF@[0; 9) STRUCT_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/libsyntax2/tests/data/parser/ok/0017_attr_trailing_comma.txt b/crates/libsyntax2/tests/data/parser/ok/0017_attr_trailing_comma.txt index 02e64c0d5..8cfd77256 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0017_attr_trailing_comma.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0017_attr_trailing_comma.txt @@ -1,4 +1,4 @@ -FILE@[0; 23) +ROOT@[0; 23) FN_DEF@[0; 22) ATTR@[0; 10) POUND@[0; 1) diff --git a/crates/libsyntax2/tests/data/parser/ok/0018_struct_type_params.txt b/crates/libsyntax2/tests/data/parser/ok/0018_struct_type_params.txt index fb61096f6..a98e823f6 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0018_struct_type_params.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0018_struct_type_params.txt @@ -1,4 +1,4 @@ -FILE@[0; 290) +ROOT@[0; 290) STRUCT_DEF@[0; 13) STRUCT_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/libsyntax2/tests/data/parser/ok/0019_enums.txt b/crates/libsyntax2/tests/data/parser/ok/0019_enums.txt index 0eca75cd8..6333e47c5 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0019_enums.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0019_enums.txt @@ -1,4 +1,4 @@ -FILE@[0; 182) +ROOT@[0; 182) ENUM_DEF@[0; 11) ENUM_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/libsyntax2/tests/data/parser/ok/0020_type_param_bounds.txt b/crates/libsyntax2/tests/data/parser/ok/0020_type_param_bounds.txt index 62632d19a..eb01dc8f1 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0020_type_param_bounds.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0020_type_param_bounds.txt @@ -1,4 +1,4 @@ -FILE@[0; 200) +ROOT@[0; 200) STRUCT_DEF@[0; 12) STRUCT_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/libsyntax2/tests/data/parser/ok/0021_extern_fn.txt b/crates/libsyntax2/tests/data/parser/ok/0021_extern_fn.txt index c3f377857..5ceef46e0 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0021_extern_fn.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0021_extern_fn.txt @@ -1,4 +1,4 @@ -FILE@[0; 71) +ROOT@[0; 71) FN_DEF@[0; 19) ABI@[0; 6) EXTERN_KW@[0; 6) diff --git a/crates/libsyntax2/tests/data/parser/ok/0022_empty_extern_block.txt b/crates/libsyntax2/tests/data/parser/ok/0022_empty_extern_block.txt index 075055bfe..2099e2433 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0022_empty_extern_block.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0022_empty_extern_block.txt @@ -1,4 +1,4 @@ -FILE@[0; 27) +ROOT@[0; 27) EXTERN_BLOCK@[0; 10) ABI@[0; 6) EXTERN_KW@[0; 6) diff --git a/crates/libsyntax2/tests/data/parser/ok/0023_static_items.txt b/crates/libsyntax2/tests/data/parser/ok/0023_static_items.txt index dfe957fd8..5c1a3a7a5 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0023_static_items.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0023_static_items.txt @@ -1,4 +1,4 @@ -FILE@[0; 47) +ROOT@[0; 47) STATIC_DEF@[0; 20) STATIC_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/libsyntax2/tests/data/parser/ok/0024_const_item.txt b/crates/libsyntax2/tests/data/parser/ok/0024_const_item.txt index 413bb3084..d0e5842da 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0024_const_item.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0024_const_item.txt @@ -1,4 +1,4 @@ -FILE@[0; 46) +ROOT@[0; 46) CONST_DEF@[0; 20) CONST_KW@[0; 5) WHITESPACE@[5; 6) diff --git a/crates/libsyntax2/tests/data/parser/ok/0025_extern_fn_in_block.txt b/crates/libsyntax2/tests/data/parser/ok/0025_extern_fn_in_block.txt index 088c6b54c..363b3576e 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0025_extern_fn_in_block.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0025_extern_fn_in_block.txt @@ -1,4 +1,4 @@ -FILE@[0; 35) +ROOT@[0; 35) FN_DEF@[0; 34) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/libsyntax2/tests/data/parser/ok/0026_const_fn_in_block.txt b/crates/libsyntax2/tests/data/parser/ok/0026_const_fn_in_block.txt index 246ea583f..d45fc2559 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0026_const_fn_in_block.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0026_const_fn_in_block.txt @@ -1,4 +1,4 @@ -FILE@[0; 34) +ROOT@[0; 34) FN_DEF@[0; 33) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/libsyntax2/tests/data/parser/ok/0027_unsafe_fn_in_block.txt b/crates/libsyntax2/tests/data/parser/ok/0027_unsafe_fn_in_block.txt index 03acfd891..5a39fa98c 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0027_unsafe_fn_in_block.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0027_unsafe_fn_in_block.txt @@ -1,4 +1,4 @@ -FILE@[0; 53) +ROOT@[0; 53) FN_DEF@[0; 52) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/libsyntax2/tests/data/parser/ok/0028_operator_binding_power.txt b/crates/libsyntax2/tests/data/parser/ok/0028_operator_binding_power.txt index aa1fa0a81..27efd180f 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0028_operator_binding_power.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0028_operator_binding_power.txt @@ -1,4 +1,4 @@ -FILE@[0; 248) +ROOT@[0; 248) FN_DEF@[0; 247) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/libsyntax2/tests/data/parser/ok/0029_range_forms.txt b/crates/libsyntax2/tests/data/parser/ok/0029_range_forms.txt index 28fd89ca4..6d6d2f4d0 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0029_range_forms.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0029_range_forms.txt @@ -1,4 +1,4 @@ -FILE@[0; 79) +ROOT@[0; 79) FN_DEF@[0; 78) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/libsyntax2/tests/data/parser/ok/0030_traits.txt b/crates/libsyntax2/tests/data/parser/ok/0030_traits.txt index ab87864fc..ddd666407 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0030_traits.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0030_traits.txt @@ -1,4 +1,4 @@ -FILE@[0; 164) +ROOT@[0; 164) TRAIT_DEF@[0; 66) VISIBILITY@[0; 3) PUB_KW@[0; 3) -- cgit v1.2.3