From 2ed1514df3f8837ccebdbbfdadbe89e79b4a4365 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 7 Nov 2018 18:38:43 +0300 Subject: rename ROOT -> SOURCE_FILE --- crates/ra_syntax/src/ast/generated.rs | 86 +++++++++++----------- crates/ra_syntax/src/grammar.ron | 4 +- crates/ra_syntax/src/grammar/mod.rs | 2 +- crates/ra_syntax/src/lib.rs | 11 ++- crates/ra_syntax/src/parser_impl/event.rs | 2 +- crates/ra_syntax/src/syntax_kinds/generated.rs | 4 +- .../parser/err/0000_struct_field_missing_comma.txt | 2 +- .../data/parser/err/0001_item_recovery_in_file.txt | 2 +- .../data/parser/err/0002_duplicate_shebang.txt | 2 +- .../tests/data/parser/err/0003_C++_semicolon.txt | 2 +- .../data/parser/err/0004_use_path_bad_segment.txt | 2 +- .../data/parser/err/0005_attribute_recover.txt | 2 +- .../data/parser/err/0006_named_field_recovery.txt | 2 +- .../data/parser/err/0007_stray_curly_in_file.txt | 2 +- .../data/parser/err/0008_item_block_recovery.txt | 2 +- .../err/0009_broken_struct_type_parameter.txt | 2 +- .../data/parser/err/0010_unsafe_lambda_block.txt | 2 +- .../tests/data/parser/err/0011_extern_struct.txt | 2 +- .../tests/data/parser/err/0012_broken_lambda.txt | 2 +- .../tests/data/parser/err/0013_invalid_type.txt | 2 +- .../tests/data/parser/err/0014_where_no_bounds.txt | 2 +- .../tests/data/parser/err/0015_curly_in_params.txt | 2 +- .../tests/data/parser/err/0016_missing_semi.txt | 2 +- .../data/parser/err/0017_incomplete_binexpr.txt | 2 +- .../tests/data/parser/err/0018_incomplete_fn.txt | 2 +- .../tests/data/parser/err/0019_let_recover.txt | 2 +- .../tests/data/parser/err/0020_fn_recover.txt | 2 +- .../data/parser/err/0021_incomplete_param.txt | 2 +- .../tests/data/parser/err/0022_bad_exprs.txt | 2 +- .../data/parser/err/0023_mismatched_paren.txt | 2 +- .../data/parser/err/0024_many_type_parens.txt | 2 +- .../ra_syntax/tests/data/parser/err/0025_nope.txt | 2 +- .../tests/data/parser/err/0026_imp_recovery.txt | 2 +- .../data/parser/err/0027_incomplere_where_for.txt | 2 +- .../data/parser/inline/0001_const_unsafe_fn.txt | 2 +- .../tests/data/parser/inline/0002_const_fn.txt | 2 +- .../tests/data/parser/inline/0003_extern_block.txt | 2 +- .../tests/data/parser/inline/0004_extern_fn.txt | 2 +- .../tests/data/parser/inline/0005_extern_crate.txt | 2 +- .../tests/data/parser/inline/0007_unsafe_trait.txt | 2 +- .../tests/data/parser/inline/0008_unsafe_impl.txt | 2 +- .../data/parser/inline/0009_unsafe_auto_trait.txt | 2 +- .../parser/inline/0010_unsafe_default_impl.txt | 2 +- .../tests/data/parser/inline/0011_unsafe_fn.txt | 2 +- .../data/parser/inline/0012_unsafe_extern_fn.txt | 2 +- .../parser/inline/0013_unsafe_block_in_mod.txt | 2 +- .../parser/inline/0014_type_item_type_params.txt | 2 +- .../tests/data/parser/inline/0015_type_item.txt | 2 +- .../parser/inline/0016_type_item_where_clause.txt | 2 +- .../tests/data/parser/inline/0017_paren_type.txt | 2 +- .../tests/data/parser/inline/0018_unit_type.txt | 2 +- .../parser/inline/0019_singleton_tuple_type.txt | 2 +- .../tests/data/parser/inline/0020_never_type.txt | 2 +- .../inline/0021_pointer_type_no_mutability.txt | 2 +- .../data/parser/inline/0022_pointer_type_mut.txt | 2 +- .../parser/inline/0023_array_type_missing_semi.txt | 2 +- .../tests/data/parser/inline/0024_array_type.txt | 2 +- .../tests/data/parser/inline/0025_slice_type.txt | 2 +- .../data/parser/inline/0026_reference_type;.txt | 2 +- .../data/parser/inline/0027_placeholder_type.txt | 2 +- .../data/parser/inline/0028_fn_pointer_type.txt | 2 +- .../inline/0029_fn_pointer_type_missing_fn.txt | 2 +- .../inline/0030_fn_pointer_type_with_ret.txt | 2 +- .../tests/data/parser/inline/0031_for_type.txt | 2 +- .../tests/data/parser/inline/0032_path_type.txt | 2 +- .../tests/data/parser/inline/0034_bind_pat.txt | 2 +- .../tests/data/parser/inline/0035_ref_pat.txt | 2 +- .../data/parser/inline/0036_placeholder_pat.txt | 2 +- .../data/parser/inline/0037_crate_visibility.txt | 2 +- .../data/parser/inline/0038_function_ret_type.txt | 2 +- .../tests/data/parser/inline/0039_path_expr.txt | 2 +- .../data/parser/inline/0040_expr_literals.txt | 2 +- .../data/parser/inline/0041_type_param_bounds.txt | 2 +- .../data/parser/inline/0042_type_param_default.txt | 2 +- .../tests/data/parser/inline/0043_call_expr.txt | 2 +- .../tests/data/parser/inline/0044_ref_expr.txt | 2 +- .../tests/data/parser/inline/0045_block.txt | 2 +- .../tests/data/parser/inline/0046_default_impl.txt | 2 +- .../tests/data/parser/inline/0047_impl_item.txt | 2 +- .../data/parser/inline/0048_impl_item_neg.txt | 2 +- .../data/parser/inline/0049_trait_item_list.txt | 2 +- .../tests/data/parser/inline/0050_let_stmt;.txt | 2 +- .../data/parser/inline/0051_method_call_expr.txt | 2 +- .../tests/data/parser/inline/0052_field_expr.txt | 2 +- .../tests/data/parser/inline/0053_block_items.txt | 2 +- .../data/parser/inline/0054_field_pat_list.txt | 2 +- .../tests/data/parser/inline/0055_self_param.txt | 2 +- .../tests/data/parser/inline/0056_trait_item.txt | 2 +- .../tests/data/parser/inline/0057_auto_trait.txt | 2 +- .../tests/data/parser/inline/0058_type_arg.txt | 2 +- .../parser/inline/0059_function_where_clause.txt | 2 +- .../parser/inline/0060_function_type_params.txt | 2 +- .../tests/data/parser/inline/0061_struct_lit.txt | 2 +- .../data/parser/inline/0063_impl_trait_type.txt | 2 +- .../tests/data/parser/inline/0063_lambda_expr.txt | 2 +- .../tests/data/parser/inline/0064_param_list.txt | 2 +- .../tests/data/parser/inline/0065_if_expr.txt | 2 +- .../tests/data/parser/inline/0066_lambda_expr.txt | 2 +- .../tests/data/parser/inline/0067_block_expr.txt | 2 +- .../tests/data/parser/inline/0068_pub_expr.txt | 2 +- .../tests/data/parser/inline/0068_return_expr.txt | 2 +- .../tests/data/parser/inline/0069_match_arm.txt | 2 +- .../tests/data/parser/inline/0070_match_expr.txt | 2 +- .../data/parser/inline/0071_tuple_pat_fields.txt | 2 +- .../tests/data/parser/inline/0072_path_part.txt | 2 +- .../data/parser/inline/0073_impl_item_list.txt | 2 +- .../tests/data/parser/inline/0074_unary_expr.txt | 2 +- .../tests/data/parser/inline/0075_try_expr.txt | 2 +- .../tests/data/parser/inline/0076_cond.txt | 2 +- .../tests/data/parser/inline/0077_while_expr.txt | 2 +- .../tests/data/parser/inline/0078_mod_contents.txt | 2 +- .../tests/data/parser/inline/0079_cast_expr.txt | 2 +- .../tests/data/parser/inline/0080_tuple_expr.txt | 2 +- .../tests/data/parser/inline/0081_index_expr.txt | 2 +- .../tests/data/parser/inline/0082_tuple_pat.txt | 2 +- .../data/parser/inline/0083_postfix_range.txt | 2 +- .../tests/data/parser/inline/0084_loop_expr.txt | 2 +- .../tests/data/parser/inline/0085_for_expr.txt | 2 +- .../data/parser/inline/0085_match_arms_commas.txt | 2 +- .../tests/data/parser/inline/0086_array_expr.txt | 2 +- .../parser/inline/0086_no_semi_after_block.txt | 2 +- .../inline/0087_stmt_postfix_expr_ambiguity.txt | 2 +- .../parser/inline/0088_stmt_bin_expr_ambiguity.txt | 2 +- .../tests/data/parser/inline/0089_slice_pat.txt | 2 +- .../tests/data/parser/inline/0091_fn_decl.txt | 2 +- .../data/parser/inline/0092_literal_pattern.txt | 2 +- .../data/parser/inline/0093_path_fn_trait_args.txt | 2 +- .../tests/data/parser/inline/0094_range_pat.txt | 2 +- .../parser/inline/0095_path_type_with_bounds.txt | 2 +- .../inline/0096_value_parameters_no_patterns.txt | 2 +- .../parser/inline/0097_param_list_opt_patterns.txt | 2 +- .../tests/data/parser/inline/0098_where_clause.txt | 2 +- .../data/parser/inline/0099_crate_keyword_vis.txt | 2 +- .../data/parser/inline/0100_dyn_trait_type.txt | 2 +- .../tests/data/parser/inline/0101_qual_paths.txt | 2 +- .../data/parser/inline/0102_full_range_expr.txt | 2 +- .../tests/data/parser/inline/0103_field_attrs.txt | 2 +- .../data/parser/inline/0104_arb_self_types.txt | 2 +- .../data/parser/inline/0105_continue_expr.txt | 2 +- .../tests/data/parser/inline/0106_break_expr.txt | 2 +- .../tests/data/parser/inline/0107_label.txt | 2 +- .../parser/inline/0108_misplaced_label_err.txt | 2 +- .../tests/data/parser/inline/0109_struct_items.txt | 2 +- .../tests/data/parser/inline/0110_union_items.txt | 2 +- .../tests/data/parser/inline/0111_impl_type.txt | 2 +- .../tests/data/parser/inline/0112_crate_path.txt | 2 +- .../data/parser/inline/0113_where_pred_for.txt | 2 +- .../ra_syntax/tests/data/parser/ok/0000_empty.txt | 2 +- .../tests/data/parser/ok/0001_struct_item.txt | 2 +- .../data/parser/ok/0002_struct_item_field.txt | 2 +- .../tests/data/parser/ok/0004_file_shebang.txt | 2 +- .../tests/data/parser/ok/0005_fn_item.txt | 2 +- .../tests/data/parser/ok/0006_inner_attributes.txt | 2 +- .../tests/data/parser/ok/0007_extern_crate.txt | 2 +- .../tests/data/parser/ok/0008_mod_item.txt | 2 +- .../tests/data/parser/ok/0009_use_item.txt | 2 +- .../data/parser/ok/0010_use_path_segments.txt | 2 +- .../tests/data/parser/ok/0011_outer_attribute.txt | 2 +- .../tests/data/parser/ok/0012_visibility.txt | 2 +- .../data/parser/ok/0013_use_path_self_super.txt | 2 +- .../tests/data/parser/ok/0014_use_tree.txt | 2 +- .../tests/data/parser/ok/0015_use_tree.txt | 2 +- .../tests/data/parser/ok/0016_struct_flavors.txt | 2 +- .../data/parser/ok/0017_attr_trailing_comma.txt | 2 +- .../data/parser/ok/0018_struct_type_params.txt | 2 +- .../ra_syntax/tests/data/parser/ok/0019_enums.txt | 2 +- .../data/parser/ok/0020_type_param_bounds.txt | 2 +- .../tests/data/parser/ok/0021_extern_fn.txt | 2 +- .../data/parser/ok/0022_empty_extern_block.txt | 2 +- .../tests/data/parser/ok/0023_static_items.txt | 2 +- .../tests/data/parser/ok/0024_const_item.txt | 2 +- .../data/parser/ok/0025_extern_fn_in_block.txt | 2 +- .../data/parser/ok/0026_const_fn_in_block.txt | 2 +- .../data/parser/ok/0027_unsafe_fn_in_block.txt | 2 +- .../data/parser/ok/0028_operator_binding_power.txt | 2 +- .../tests/data/parser/ok/0029_range_forms.txt | 2 +- .../ra_syntax/tests/data/parser/ok/0030_traits.txt | 2 +- .../ra_syntax/tests/data/parser/ok/0031_extern.txt | 2 +- .../tests/data/parser/ok/0032_where_for.txt | 2 +- .../tests/data/parser/ok/0033_label_break.txt | 2 +- .../tests/data/parser/ok/0034_macro_2.0.txt | 2 +- .../tests/data/parser/ok/0034_macro_stuck.txt | 2 +- .../data/parser/ok/0035_crate_path_in_call.txt | 2 +- 183 files changed, 231 insertions(+), 232 deletions(-) (limited to 'crates/ra_syntax') diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index 8cf3222f7..5b5f71ee7 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs @@ -3016,49 +3016,6 @@ impl> ReturnExprNode { impl<'a> ReturnExpr<'a> {} -// Root -#[derive(Debug, Clone, Copy,)] -pub struct RootNode = OwnedRoot> { - pub(crate) syntax: SyntaxNode, -} -pub type Root<'a> = RootNode>; - -impl, R2: TreeRoot> PartialEq> for RootNode { - fn eq(&self, other: &RootNode) -> bool { self.syntax == other.syntax } -} -impl> Eq for RootNode {} -impl> Hash for RootNode { - fn hash(&self, state: &mut H) { self.syntax.hash(state) } -} - -impl<'a> AstNode<'a> for Root<'a> { - fn cast(syntax: SyntaxNodeRef<'a>) -> Option { - match syntax.kind() { - ROOT => Some(Root { syntax }), - _ => None, - } - } - fn syntax(self) -> SyntaxNodeRef<'a> { self.syntax } -} - -impl> RootNode { - pub fn borrowed(&self) -> Root { - RootNode { syntax: self.syntax.borrowed() } - } - pub fn owned(&self) -> RootNode { - RootNode { syntax: self.syntax.owned() } - } -} - - -impl<'a> ast::ModuleItemOwner<'a> for Root<'a> {} -impl<'a> ast::FnDefOwner<'a> for Root<'a> {} -impl<'a> Root<'a> { - pub fn modules(self) -> impl Iterator> + 'a { - super::children(self) - } -} - // SelfParam #[derive(Debug, Clone, Copy,)] pub struct SelfParamNode = OwnedRoot> { @@ -3170,6 +3127,49 @@ impl> SliceTypeNode { impl<'a> SliceType<'a> {} +// SourceFile +#[derive(Debug, Clone, Copy,)] +pub struct SourceFileNode = OwnedRoot> { + pub(crate) syntax: SyntaxNode, +} +pub type SourceFile<'a> = SourceFileNode>; + +impl, R2: TreeRoot> PartialEq> for SourceFileNode { + fn eq(&self, other: &SourceFileNode) -> bool { self.syntax == other.syntax } +} +impl> Eq for SourceFileNode {} +impl> Hash for SourceFileNode { + fn hash(&self, state: &mut H) { self.syntax.hash(state) } +} + +impl<'a> AstNode<'a> for SourceFile<'a> { + fn cast(syntax: SyntaxNodeRef<'a>) -> Option { + match syntax.kind() { + SOURCE_FILE => Some(SourceFile { syntax }), + _ => None, + } + } + fn syntax(self) -> SyntaxNodeRef<'a> { self.syntax } +} + +impl> SourceFileNode { + pub fn borrowed(&self) -> SourceFile { + SourceFileNode { syntax: self.syntax.borrowed() } + } + pub fn owned(&self) -> SourceFileNode { + SourceFileNode { syntax: self.syntax.owned() } + } +} + + +impl<'a> ast::ModuleItemOwner<'a> for SourceFile<'a> {} +impl<'a> ast::FnDefOwner<'a> for SourceFile<'a> {} +impl<'a> SourceFile<'a> { + pub fn modules(self) -> impl Iterator> + 'a { + super::children(self) + } +} + // StaticDef #[derive(Debug, Clone, Copy,)] pub struct StaticDefNode = OwnedRoot> { diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron index 1fa25dc4d..a92844415 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron @@ -116,7 +116,7 @@ Grammar( "SHEBANG", ], nodes: [ - "ROOT", + "SOURCE_FILE", "STRUCT_DEF", "ENUM_DEF", @@ -239,7 +239,7 @@ Grammar( "ARG_LIST", ], ast: { - "Root": ( + "SourceFile": ( traits: [ "ModuleItemOwner", "FnDefOwner" ], collections: [ ["modules", "Module"], diff --git a/crates/ra_syntax/src/grammar/mod.rs b/crates/ra_syntax/src/grammar/mod.rs index 95c437983..06a37d648 100644 --- a/crates/ra_syntax/src/grammar/mod.rs +++ b/crates/ra_syntax/src/grammar/mod.rs @@ -53,7 +53,7 @@ pub(crate) fn root(p: &mut Parser) { let m = p.start(); p.eat(SHEBANG); items::mod_contents(p, false); - m.complete(p, ROOT); + m.complete(p, SOURCE_FILE); } #[derive(Clone, Copy, PartialEq, Eq)] diff --git a/crates/ra_syntax/src/lib.rs b/crates/ra_syntax/src/lib.rs index 9f8066c70..330f68053 100644 --- a/crates/ra_syntax/src/lib.rs +++ b/crates/ra_syntax/src/lib.rs @@ -61,9 +61,8 @@ pub use crate::{ use crate::yellow::GreenNode; -// TODO: pick a single name for everything. SourceFileNode maybe? -/// File represents a parse tree for a single Rust file. -pub type SourceFileNode = ast::RootNode; +/// `SourceFileNode` represents a parse tree for a single Rust file. +pub use crate::ast::SourceFileNode; impl SourceFileNode { fn new(green: GreenNode, errors: Vec) -> SourceFileNode { @@ -71,8 +70,8 @@ impl SourceFileNode { if cfg!(debug_assertions) { utils::validate_block_structure(root.borrowed()); } - assert_eq!(root.kind(), SyntaxKind::ROOT); - ast::RootNode { syntax: root } + assert_eq!(root.kind(), SyntaxKind::SOURCE_FILE); + ast::SourceFileNode { syntax: root } } pub fn parse(text: &str) -> SourceFileNode { let tokens = tokenize(&text); @@ -94,7 +93,7 @@ impl SourceFileNode { SourceFileNode::parse(&text) } /// Typed AST representation of the parse tree. - pub fn ast(&self) -> ast::Root { + pub fn ast(&self) -> ast::SourceFile { self.borrowed() } /// Untyped homogeneous representation of the parse tree. diff --git a/crates/ra_syntax/src/parser_impl/event.rs b/crates/ra_syntax/src/parser_impl/event.rs index bf9c1cef0..3d8b062d5 100644 --- a/crates/ra_syntax/src/parser_impl/event.rs +++ b/crates/ra_syntax/src/parser_impl/event.rs @@ -172,7 +172,7 @@ impl<'a, S: Sink> EventProcessor<'a, S> { } fn start(&mut self, kind: SyntaxKind) { - if kind == ROOT { + if kind == SOURCE_FILE { self.sink.start_internal(kind); return; } diff --git a/crates/ra_syntax/src/syntax_kinds/generated.rs b/crates/ra_syntax/src/syntax_kinds/generated.rs index 6568f1a37..c43a8bf65 100644 --- a/crates/ra_syntax/src/syntax_kinds/generated.rs +++ b/crates/ra_syntax/src/syntax_kinds/generated.rs @@ -117,7 +117,7 @@ pub enum SyntaxKind { RAW_BYTE_STRING, COMMENT, SHEBANG, - ROOT, + SOURCE_FILE, STRUCT_DEF, ENUM_DEF, FN_DEF, @@ -378,7 +378,7 @@ impl SyntaxKind { RAW_BYTE_STRING => &SyntaxInfo { name: "RAW_BYTE_STRING" }, COMMENT => &SyntaxInfo { name: "COMMENT" }, SHEBANG => &SyntaxInfo { name: "SHEBANG" }, - ROOT => &SyntaxInfo { name: "ROOT" }, + SOURCE_FILE => &SyntaxInfo { name: "SOURCE_FILE" }, STRUCT_DEF => &SyntaxInfo { name: "STRUCT_DEF" }, ENUM_DEF => &SyntaxInfo { name: "ENUM_DEF" }, FN_DEF => &SyntaxInfo { name: "FN_DEF" }, diff --git a/crates/ra_syntax/tests/data/parser/err/0000_struct_field_missing_comma.txt b/crates/ra_syntax/tests/data/parser/err/0000_struct_field_missing_comma.txt index aa375fe8a..665f7599c 100644 --- a/crates/ra_syntax/tests/data/parser/err/0000_struct_field_missing_comma.txt +++ b/crates/ra_syntax/tests/data/parser/err/0000_struct_field_missing_comma.txt @@ -1,4 +1,4 @@ -ROOT@[0; 34) +SOURCE_FILE@[0; 34) STRUCT_DEF@[0; 34) STRUCT_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/ra_syntax/tests/data/parser/err/0001_item_recovery_in_file.txt b/crates/ra_syntax/tests/data/parser/err/0001_item_recovery_in_file.txt index 771d6e1ef..74743d7ad 100644 --- a/crates/ra_syntax/tests/data/parser/err/0001_item_recovery_in_file.txt +++ b/crates/ra_syntax/tests/data/parser/err/0001_item_recovery_in_file.txt @@ -1,4 +1,4 @@ -ROOT@[0; 21) +SOURCE_FILE@[0; 21) ERROR@[0; 2) IF_KW@[0; 2) err: `expected an item` diff --git a/crates/ra_syntax/tests/data/parser/err/0002_duplicate_shebang.txt b/crates/ra_syntax/tests/data/parser/err/0002_duplicate_shebang.txt index 57fb48420..a1f041c33 100644 --- a/crates/ra_syntax/tests/data/parser/err/0002_duplicate_shebang.txt +++ b/crates/ra_syntax/tests/data/parser/err/0002_duplicate_shebang.txt @@ -1,4 +1,4 @@ -ROOT@[0; 42) +SOURCE_FILE@[0; 42) SHEBANG@[0; 20) WHITESPACE@[20; 21) err: `expected an item` diff --git a/crates/ra_syntax/tests/data/parser/err/0003_C++_semicolon.txt b/crates/ra_syntax/tests/data/parser/err/0003_C++_semicolon.txt index b51c0573a..e9400d03b 100644 --- a/crates/ra_syntax/tests/data/parser/err/0003_C++_semicolon.txt +++ b/crates/ra_syntax/tests/data/parser/err/0003_C++_semicolon.txt @@ -1,4 +1,4 @@ -ROOT@[0; 40) +SOURCE_FILE@[0; 40) STRUCT_DEF@[0; 40) STRUCT_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/ra_syntax/tests/data/parser/err/0004_use_path_bad_segment.txt b/crates/ra_syntax/tests/data/parser/err/0004_use_path_bad_segment.txt index 646c84534..5bdb24676 100644 --- a/crates/ra_syntax/tests/data/parser/err/0004_use_path_bad_segment.txt +++ b/crates/ra_syntax/tests/data/parser/err/0004_use_path_bad_segment.txt @@ -1,4 +1,4 @@ -ROOT@[0; 12) +SOURCE_FILE@[0; 12) USE_ITEM@[0; 12) USE_KW@[0; 3) WHITESPACE@[3; 4) diff --git a/crates/ra_syntax/tests/data/parser/err/0005_attribute_recover.txt b/crates/ra_syntax/tests/data/parser/err/0005_attribute_recover.txt index b3cf9b889..381a7d6dd 100644 --- a/crates/ra_syntax/tests/data/parser/err/0005_attribute_recover.txt +++ b/crates/ra_syntax/tests/data/parser/err/0005_attribute_recover.txt @@ -1,4 +1,4 @@ -ROOT@[0; 54) +SOURCE_FILE@[0; 54) FN_DEF@[0; 31) ATTR@[0; 18) POUND@[0; 1) diff --git a/crates/ra_syntax/tests/data/parser/err/0006_named_field_recovery.txt b/crates/ra_syntax/tests/data/parser/err/0006_named_field_recovery.txt index 9abda7099..02f832fb7 100644 --- a/crates/ra_syntax/tests/data/parser/err/0006_named_field_recovery.txt +++ b/crates/ra_syntax/tests/data/parser/err/0006_named_field_recovery.txt @@ -1,4 +1,4 @@ -ROOT@[0; 74) +SOURCE_FILE@[0; 74) STRUCT_DEF@[0; 73) STRUCT_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/ra_syntax/tests/data/parser/err/0007_stray_curly_in_file.txt b/crates/ra_syntax/tests/data/parser/err/0007_stray_curly_in_file.txt index 802c69b31..d46f753ad 100644 --- a/crates/ra_syntax/tests/data/parser/err/0007_stray_curly_in_file.txt +++ b/crates/ra_syntax/tests/data/parser/err/0007_stray_curly_in_file.txt @@ -1,4 +1,4 @@ -ROOT@[0; 31) +SOURCE_FILE@[0; 31) ERROR@[0; 1) R_CURLY@[0; 1) err: `unmatched `}`` diff --git a/crates/ra_syntax/tests/data/parser/err/0008_item_block_recovery.txt b/crates/ra_syntax/tests/data/parser/err/0008_item_block_recovery.txt index 95a34333b..de5c81f29 100644 --- a/crates/ra_syntax/tests/data/parser/err/0008_item_block_recovery.txt +++ b/crates/ra_syntax/tests/data/parser/err/0008_item_block_recovery.txt @@ -1,4 +1,4 @@ -ROOT@[0; 95) +SOURCE_FILE@[0; 95) FN_DEF@[0; 12) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/err/0009_broken_struct_type_parameter.txt b/crates/ra_syntax/tests/data/parser/err/0009_broken_struct_type_parameter.txt index fa8adf881..e22c061d2 100644 --- a/crates/ra_syntax/tests/data/parser/err/0009_broken_struct_type_parameter.txt +++ b/crates/ra_syntax/tests/data/parser/err/0009_broken_struct_type_parameter.txt @@ -1,4 +1,4 @@ -ROOT@[0; 43) +SOURCE_FILE@[0; 43) STRUCT_DEF@[0; 11) STRUCT_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/ra_syntax/tests/data/parser/err/0010_unsafe_lambda_block.txt b/crates/ra_syntax/tests/data/parser/err/0010_unsafe_lambda_block.txt index 38667e030..e6794a2a0 100644 --- a/crates/ra_syntax/tests/data/parser/err/0010_unsafe_lambda_block.txt +++ b/crates/ra_syntax/tests/data/parser/err/0010_unsafe_lambda_block.txt @@ -1,4 +1,4 @@ -ROOT@[0; 42) +SOURCE_FILE@[0; 42) FN_DEF@[0; 41) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/err/0011_extern_struct.txt b/crates/ra_syntax/tests/data/parser/err/0011_extern_struct.txt index 0cb7447c4..a65cecde5 100644 --- a/crates/ra_syntax/tests/data/parser/err/0011_extern_struct.txt +++ b/crates/ra_syntax/tests/data/parser/err/0011_extern_struct.txt @@ -1,4 +1,4 @@ -ROOT@[0; 19) +SOURCE_FILE@[0; 19) ERROR@[0; 6) ABI@[0; 6) EXTERN_KW@[0; 6) diff --git a/crates/ra_syntax/tests/data/parser/err/0012_broken_lambda.txt b/crates/ra_syntax/tests/data/parser/err/0012_broken_lambda.txt index a03aa05e3..12ebc2a3a 100644 --- a/crates/ra_syntax/tests/data/parser/err/0012_broken_lambda.txt +++ b/crates/ra_syntax/tests/data/parser/err/0012_broken_lambda.txt @@ -1,4 +1,4 @@ -ROOT@[0; 389) +SOURCE_FILE@[0; 389) FN_DEF@[0; 389) VISIBILITY@[0; 10) PUB_KW@[0; 3) diff --git a/crates/ra_syntax/tests/data/parser/err/0013_invalid_type.txt b/crates/ra_syntax/tests/data/parser/err/0013_invalid_type.txt index e1a6b6432..83d716b2f 100644 --- a/crates/ra_syntax/tests/data/parser/err/0013_invalid_type.txt +++ b/crates/ra_syntax/tests/data/parser/err/0013_invalid_type.txt @@ -1,4 +1,4 @@ -ROOT@[0; 86) +SOURCE_FILE@[0; 86) STRUCT_DEF@[0; 72) VISIBILITY@[0; 3) PUB_KW@[0; 3) diff --git a/crates/ra_syntax/tests/data/parser/err/0014_where_no_bounds.txt b/crates/ra_syntax/tests/data/parser/err/0014_where_no_bounds.txt index 37826ce86..a81772764 100644 --- a/crates/ra_syntax/tests/data/parser/err/0014_where_no_bounds.txt +++ b/crates/ra_syntax/tests/data/parser/err/0014_where_no_bounds.txt @@ -1,4 +1,4 @@ -ROOT@[0; 23) +SOURCE_FILE@[0; 23) FN_DEF@[0; 22) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/err/0015_curly_in_params.txt b/crates/ra_syntax/tests/data/parser/err/0015_curly_in_params.txt index 5f736a978..e4d91109f 100644 --- a/crates/ra_syntax/tests/data/parser/err/0015_curly_in_params.txt +++ b/crates/ra_syntax/tests/data/parser/err/0015_curly_in_params.txt @@ -1,4 +1,4 @@ -ROOT@[0; 14) +SOURCE_FILE@[0; 14) FN_DEF@[0; 7) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/err/0016_missing_semi.txt b/crates/ra_syntax/tests/data/parser/err/0016_missing_semi.txt index a3163adcb..5b128caa2 100644 --- a/crates/ra_syntax/tests/data/parser/err/0016_missing_semi.txt +++ b/crates/ra_syntax/tests/data/parser/err/0016_missing_semi.txt @@ -1,4 +1,4 @@ -ROOT@[0; 56) +SOURCE_FILE@[0; 56) FN_DEF@[0; 55) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/err/0017_incomplete_binexpr.txt b/crates/ra_syntax/tests/data/parser/err/0017_incomplete_binexpr.txt index f0be287ad..fbfdc2c44 100644 --- a/crates/ra_syntax/tests/data/parser/err/0017_incomplete_binexpr.txt +++ b/crates/ra_syntax/tests/data/parser/err/0017_incomplete_binexpr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 47) +SOURCE_FILE@[0; 47) FN_DEF@[0; 46) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/err/0018_incomplete_fn.txt b/crates/ra_syntax/tests/data/parser/err/0018_incomplete_fn.txt index c4d9f5e7e..3937be255 100644 --- a/crates/ra_syntax/tests/data/parser/err/0018_incomplete_fn.txt +++ b/crates/ra_syntax/tests/data/parser/err/0018_incomplete_fn.txt @@ -1,4 +1,4 @@ -ROOT@[0; 183) +SOURCE_FILE@[0; 183) IMPL_ITEM@[0; 182) IMPL_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/err/0019_let_recover.txt b/crates/ra_syntax/tests/data/parser/err/0019_let_recover.txt index 6e74771f1..ee75c33ae 100644 --- a/crates/ra_syntax/tests/data/parser/err/0019_let_recover.txt +++ b/crates/ra_syntax/tests/data/parser/err/0019_let_recover.txt @@ -1,4 +1,4 @@ -ROOT@[0; 139) +SOURCE_FILE@[0; 139) FN_DEF@[0; 138) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/err/0020_fn_recover.txt b/crates/ra_syntax/tests/data/parser/err/0020_fn_recover.txt index b5218b0fa..375fd3ad2 100644 --- a/crates/ra_syntax/tests/data/parser/err/0020_fn_recover.txt +++ b/crates/ra_syntax/tests/data/parser/err/0020_fn_recover.txt @@ -1,4 +1,4 @@ -ROOT@[0; 16) +SOURCE_FILE@[0; 16) FN_DEF@[0; 2) FN_KW@[0; 2) err: `expected a name` diff --git a/crates/ra_syntax/tests/data/parser/err/0021_incomplete_param.txt b/crates/ra_syntax/tests/data/parser/err/0021_incomplete_param.txt index 8dcb58ae2..1b3dcd945 100644 --- a/crates/ra_syntax/tests/data/parser/err/0021_incomplete_param.txt +++ b/crates/ra_syntax/tests/data/parser/err/0021_incomplete_param.txt @@ -1,4 +1,4 @@ -ROOT@[0; 22) +SOURCE_FILE@[0; 22) FN_DEF@[0; 21) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/err/0022_bad_exprs.txt b/crates/ra_syntax/tests/data/parser/err/0022_bad_exprs.txt index 287e56ac4..55999c160 100644 --- a/crates/ra_syntax/tests/data/parser/err/0022_bad_exprs.txt +++ b/crates/ra_syntax/tests/data/parser/err/0022_bad_exprs.txt @@ -1,4 +1,4 @@ -ROOT@[0; 112) +SOURCE_FILE@[0; 112) FN_DEF@[0; 33) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/err/0023_mismatched_paren.txt b/crates/ra_syntax/tests/data/parser/err/0023_mismatched_paren.txt index 2df81b12b..dcca0756d 100644 --- a/crates/ra_syntax/tests/data/parser/err/0023_mismatched_paren.txt +++ b/crates/ra_syntax/tests/data/parser/err/0023_mismatched_paren.txt @@ -1,4 +1,4 @@ -ROOT@[0; 94) +SOURCE_FILE@[0; 94) FN_DEF@[0; 55) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/err/0024_many_type_parens.txt b/crates/ra_syntax/tests/data/parser/err/0024_many_type_parens.txt index 195c12e08..8720fc6ea 100644 --- a/crates/ra_syntax/tests/data/parser/err/0024_many_type_parens.txt +++ b/crates/ra_syntax/tests/data/parser/err/0024_many_type_parens.txt @@ -1,4 +1,4 @@ -ROOT@[0; 240) +SOURCE_FILE@[0; 240) FN_DEF@[0; 53) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/err/0025_nope.txt b/crates/ra_syntax/tests/data/parser/err/0025_nope.txt index 6879c8d0a..615064f77 100644 --- a/crates/ra_syntax/tests/data/parser/err/0025_nope.txt +++ b/crates/ra_syntax/tests/data/parser/err/0025_nope.txt @@ -1,4 +1,4 @@ -ROOT@[0; 575) +SOURCE_FILE@[0; 575) FN_DEF@[0; 574) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.txt b/crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.txt index 9e26f58a0..82683f6ee 100644 --- a/crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.txt +++ b/crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.txt @@ -1,4 +1,4 @@ -ROOT@[0; 38) +SOURCE_FILE@[0; 38) IMPL_ITEM@[0; 14) IMPL_KW@[0; 4) TYPE_PARAM_LIST@[4; 14) diff --git a/crates/ra_syntax/tests/data/parser/err/0027_incomplere_where_for.txt b/crates/ra_syntax/tests/data/parser/err/0027_incomplere_where_for.txt index 94b75a656..694295a60 100644 --- a/crates/ra_syntax/tests/data/parser/err/0027_incomplere_where_for.txt +++ b/crates/ra_syntax/tests/data/parser/err/0027_incomplere_where_for.txt @@ -1,4 +1,4 @@ -ROOT@[0; 30) +SOURCE_FILE@[0; 30) FN_DEF@[0; 29) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0001_const_unsafe_fn.txt b/crates/ra_syntax/tests/data/parser/inline/0001_const_unsafe_fn.txt index 956532981..814c9f1a0 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0001_const_unsafe_fn.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0001_const_unsafe_fn.txt @@ -1,4 +1,4 @@ -ROOT@[0; 25) +SOURCE_FILE@[0; 25) FN_DEF@[0; 24) CONST_KW@[0; 5) WHITESPACE@[5; 6) diff --git a/crates/ra_syntax/tests/data/parser/inline/0002_const_fn.txt b/crates/ra_syntax/tests/data/parser/inline/0002_const_fn.txt index bda875fc5..8206d973b 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0002_const_fn.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0002_const_fn.txt @@ -1,4 +1,4 @@ -ROOT@[0; 18) +SOURCE_FILE@[0; 18) FN_DEF@[0; 17) CONST_KW@[0; 5) WHITESPACE@[5; 6) diff --git a/crates/ra_syntax/tests/data/parser/inline/0003_extern_block.txt b/crates/ra_syntax/tests/data/parser/inline/0003_extern_block.txt index 2c2bbd035..7e79c2280 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0003_extern_block.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0003_extern_block.txt @@ -1,4 +1,4 @@ -ROOT@[0; 10) +SOURCE_FILE@[0; 10) EXTERN_BLOCK@[0; 9) ABI@[0; 6) EXTERN_KW@[0; 6) diff --git a/crates/ra_syntax/tests/data/parser/inline/0004_extern_fn.txt b/crates/ra_syntax/tests/data/parser/inline/0004_extern_fn.txt index f6e769475..d2b26566d 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0004_extern_fn.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0004_extern_fn.txt @@ -1,4 +1,4 @@ -ROOT@[0; 19) +SOURCE_FILE@[0; 19) FN_DEF@[0; 18) ABI@[0; 6) EXTERN_KW@[0; 6) diff --git a/crates/ra_syntax/tests/data/parser/inline/0005_extern_crate.txt b/crates/ra_syntax/tests/data/parser/inline/0005_extern_crate.txt index fc025b0f3..7ffdc7fbd 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0005_extern_crate.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0005_extern_crate.txt @@ -1,4 +1,4 @@ -ROOT@[0; 18) +SOURCE_FILE@[0; 18) EXTERN_CRATE_ITEM@[0; 17) EXTERN_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/ra_syntax/tests/data/parser/inline/0007_unsafe_trait.txt b/crates/ra_syntax/tests/data/parser/inline/0007_unsafe_trait.txt index fb97cc042..3669c93a8 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0007_unsafe_trait.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0007_unsafe_trait.txt @@ -1,4 +1,4 @@ -ROOT@[0; 18) +SOURCE_FILE@[0; 18) TRAIT_DEF@[0; 17) UNSAFE_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/ra_syntax/tests/data/parser/inline/0008_unsafe_impl.txt b/crates/ra_syntax/tests/data/parser/inline/0008_unsafe_impl.txt index fa596394f..f9c96c242 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0008_unsafe_impl.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0008_unsafe_impl.txt @@ -1,4 +1,4 @@ -ROOT@[0; 19) +SOURCE_FILE@[0; 19) IMPL_ITEM@[0; 18) UNSAFE_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/ra_syntax/tests/data/parser/inline/0009_unsafe_auto_trait.txt b/crates/ra_syntax/tests/data/parser/inline/0009_unsafe_auto_trait.txt index e642bbf80..b541ceff8 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0009_unsafe_auto_trait.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0009_unsafe_auto_trait.txt @@ -1,4 +1,4 @@ -ROOT@[0; 23) +SOURCE_FILE@[0; 23) TRAIT_DEF@[0; 22) UNSAFE_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/ra_syntax/tests/data/parser/inline/0010_unsafe_default_impl.txt b/crates/ra_syntax/tests/data/parser/inline/0010_unsafe_default_impl.txt index 99d33a902..6003ba645 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0010_unsafe_default_impl.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0010_unsafe_default_impl.txt @@ -1,4 +1,4 @@ -ROOT@[0; 27) +SOURCE_FILE@[0; 27) IMPL_ITEM@[0; 26) UNSAFE_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/ra_syntax/tests/data/parser/inline/0011_unsafe_fn.txt b/crates/ra_syntax/tests/data/parser/inline/0011_unsafe_fn.txt index 39ec53b26..5498dbcbb 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0011_unsafe_fn.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0011_unsafe_fn.txt @@ -1,4 +1,4 @@ -ROOT@[0; 19) +SOURCE_FILE@[0; 19) FN_DEF@[0; 18) UNSAFE_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/ra_syntax/tests/data/parser/inline/0012_unsafe_extern_fn.txt b/crates/ra_syntax/tests/data/parser/inline/0012_unsafe_extern_fn.txt index 54e296ed6..0cde40595 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0012_unsafe_extern_fn.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0012_unsafe_extern_fn.txt @@ -1,4 +1,4 @@ -ROOT@[0; 30) +SOURCE_FILE@[0; 30) FN_DEF@[0; 29) UNSAFE_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/ra_syntax/tests/data/parser/inline/0013_unsafe_block_in_mod.txt b/crates/ra_syntax/tests/data/parser/inline/0013_unsafe_block_in_mod.txt index 9825e5ace..d2da2bad7 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0013_unsafe_block_in_mod.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0013_unsafe_block_in_mod.txt @@ -1,4 +1,4 @@ -ROOT@[0; 33) +SOURCE_FILE@[0; 33) FN_DEF@[0; 10) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0014_type_item_type_params.txt b/crates/ra_syntax/tests/data/parser/inline/0014_type_item_type_params.txt index bf65e8a37..89b34d4f1 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0014_type_item_type_params.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0014_type_item_type_params.txt @@ -1,4 +1,4 @@ -ROOT@[0; 21) +SOURCE_FILE@[0; 21) TYPE_DEF@[0; 20) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0015_type_item.txt b/crates/ra_syntax/tests/data/parser/inline/0015_type_item.txt index 71048bcc5..4b66a05a6 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0015_type_item.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0015_type_item.txt @@ -1,4 +1,4 @@ -ROOT@[0; 16) +SOURCE_FILE@[0; 16) TYPE_DEF@[0; 15) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0016_type_item_where_clause.txt b/crates/ra_syntax/tests/data/parser/inline/0016_type_item_where_clause.txt index c3fca013e..f38b2f79a 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0016_type_item_where_clause.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0016_type_item_where_clause.txt @@ -1,4 +1,4 @@ -ROOT@[0; 31) +SOURCE_FILE@[0; 31) TYPE_DEF@[0; 30) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0017_paren_type.txt b/crates/ra_syntax/tests/data/parser/inline/0017_paren_type.txt index 97e73fea1..bd5feb6b3 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0017_paren_type.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0017_paren_type.txt @@ -1,4 +1,4 @@ -ROOT@[0; 16) +SOURCE_FILE@[0; 16) TYPE_DEF@[0; 15) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0018_unit_type.txt b/crates/ra_syntax/tests/data/parser/inline/0018_unit_type.txt index 5d04d42fc..9fd19ba4a 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0018_unit_type.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0018_unit_type.txt @@ -1,4 +1,4 @@ -ROOT@[0; 13) +SOURCE_FILE@[0; 13) TYPE_DEF@[0; 12) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0019_singleton_tuple_type.txt b/crates/ra_syntax/tests/data/parser/inline/0019_singleton_tuple_type.txt index 2cd8be9ab..173c325d0 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0019_singleton_tuple_type.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0019_singleton_tuple_type.txt @@ -1,4 +1,4 @@ -ROOT@[0; 17) +SOURCE_FILE@[0; 17) TYPE_DEF@[0; 16) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0020_never_type.txt b/crates/ra_syntax/tests/data/parser/inline/0020_never_type.txt index 6205d9669..e0cae644d 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0020_never_type.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0020_never_type.txt @@ -1,4 +1,4 @@ -ROOT@[0; 16) +SOURCE_FILE@[0; 16) TYPE_DEF@[0; 15) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0021_pointer_type_no_mutability.txt b/crates/ra_syntax/tests/data/parser/inline/0021_pointer_type_no_mutability.txt index 23e68557a..189aa563e 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0021_pointer_type_no_mutability.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0021_pointer_type_no_mutability.txt @@ -1,4 +1,4 @@ -ROOT@[0; 14) +SOURCE_FILE@[0; 14) TYPE_DEF@[0; 13) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0022_pointer_type_mut.txt b/crates/ra_syntax/tests/data/parser/inline/0022_pointer_type_mut.txt index 33f5ad8b4..149cd571d 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0022_pointer_type_mut.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0022_pointer_type_mut.txt @@ -1,4 +1,4 @@ -ROOT@[0; 36) +SOURCE_FILE@[0; 36) TYPE_DEF@[0; 17) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0023_array_type_missing_semi.txt b/crates/ra_syntax/tests/data/parser/inline/0023_array_type_missing_semi.txt index 90bdc5d2e..036363587 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0023_array_type_missing_semi.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0023_array_type_missing_semi.txt @@ -1,4 +1,4 @@ -ROOT@[0; 18) +SOURCE_FILE@[0; 18) TYPE_DEF@[0; 12) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0024_array_type.txt b/crates/ra_syntax/tests/data/parser/inline/0024_array_type.txt index 809c86974..2c2b615fc 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0024_array_type.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0024_array_type.txt @@ -1,4 +1,4 @@ -ROOT@[0; 19) +SOURCE_FILE@[0; 19) TYPE_DEF@[0; 18) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0025_slice_type.txt b/crates/ra_syntax/tests/data/parser/inline/0025_slice_type.txt index 978530a6a..db18c7139 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0025_slice_type.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0025_slice_type.txt @@ -1,4 +1,4 @@ -ROOT@[0; 15) +SOURCE_FILE@[0; 15) TYPE_DEF@[0; 14) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0026_reference_type;.txt b/crates/ra_syntax/tests/data/parser/inline/0026_reference_type;.txt index ff27ce5dd..7f35254d1 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0026_reference_type;.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0026_reference_type;.txt @@ -1,4 +1,4 @@ -ROOT@[0; 54) +SOURCE_FILE@[0; 54) TYPE_DEF@[0; 13) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0027_placeholder_type.txt b/crates/ra_syntax/tests/data/parser/inline/0027_placeholder_type.txt index 538e4e69c..43ada95d4 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0027_placeholder_type.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0027_placeholder_type.txt @@ -1,4 +1,4 @@ -ROOT@[0; 22) +SOURCE_FILE@[0; 22) TYPE_DEF@[0; 21) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0028_fn_pointer_type.txt b/crates/ra_syntax/tests/data/parser/inline/0028_fn_pointer_type.txt index 4dba83eb5..0c508ec27 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0028_fn_pointer_type.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0028_fn_pointer_type.txt @@ -1,4 +1,4 @@ -ROOT@[0; 70) +SOURCE_FILE@[0; 70) TYPE_DEF@[0; 14) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0029_fn_pointer_type_missing_fn.txt b/crates/ra_syntax/tests/data/parser/inline/0029_fn_pointer_type_missing_fn.txt index fa0771ab1..f97db4bff 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0029_fn_pointer_type_missing_fn.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0029_fn_pointer_type_missing_fn.txt @@ -1,4 +1,4 @@ -ROOT@[0; 20) +SOURCE_FILE@[0; 20) TYPE_DEF@[0; 15) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0030_fn_pointer_type_with_ret.txt b/crates/ra_syntax/tests/data/parser/inline/0030_fn_pointer_type_with_ret.txt index 203839636..f092c6df7 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0030_fn_pointer_type_with_ret.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0030_fn_pointer_type_with_ret.txt @@ -1,4 +1,4 @@ -ROOT@[0; 21) +SOURCE_FILE@[0; 21) TYPE_DEF@[0; 20) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0031_for_type.txt b/crates/ra_syntax/tests/data/parser/inline/0031_for_type.txt index f6b962b2c..843cc4973 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0031_for_type.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0031_for_type.txt @@ -1,4 +1,4 @@ -ROOT@[0; 29) +SOURCE_FILE@[0; 29) TYPE_DEF@[0; 28) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0032_path_type.txt b/crates/ra_syntax/tests/data/parser/inline/0032_path_type.txt index b0a110a2c..b72b96e95 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0032_path_type.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0032_path_type.txt @@ -1,4 +1,4 @@ -ROOT@[0; 71) +SOURCE_FILE@[0; 71) TYPE_DEF@[0; 13) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0034_bind_pat.txt b/crates/ra_syntax/tests/data/parser/inline/0034_bind_pat.txt index 9adc89b7c..86f8154ea 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0034_bind_pat.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0034_bind_pat.txt @@ -1,4 +1,4 @@ -ROOT@[0; 146) +SOURCE_FILE@[0; 146) FN_DEF@[0; 145) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0035_ref_pat.txt b/crates/ra_syntax/tests/data/parser/inline/0035_ref_pat.txt index a625637cd..008f4f159 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0035_ref_pat.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0035_ref_pat.txt @@ -1,4 +1,4 @@ -ROOT@[0; 52) +SOURCE_FILE@[0; 52) FN_DEF@[0; 51) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0036_placeholder_pat.txt b/crates/ra_syntax/tests/data/parser/inline/0036_placeholder_pat.txt index e89ff4e7c..08ba391e3 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0036_placeholder_pat.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0036_placeholder_pat.txt @@ -1,4 +1,4 @@ -ROOT@[0; 26) +SOURCE_FILE@[0; 26) FN_DEF@[0; 25) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0037_crate_visibility.txt b/crates/ra_syntax/tests/data/parser/inline/0037_crate_visibility.txt index 3b5fbf95d..7d137cfe9 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0037_crate_visibility.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0037_crate_visibility.txt @@ -1,4 +1,4 @@ -ROOT@[0; 81) +SOURCE_FILE@[0; 81) STRUCT_DEF@[0; 20) VISIBILITY@[0; 10) PUB_KW@[0; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0038_function_ret_type.txt b/crates/ra_syntax/tests/data/parser/inline/0038_function_ret_type.txt index a3d235ce1..1edf9412f 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0038_function_ret_type.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0038_function_ret_type.txt @@ -1,4 +1,4 @@ -ROOT@[0; 30) +SOURCE_FILE@[0; 30) FN_DEF@[0; 11) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0039_path_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0039_path_expr.txt index 618afc0a9..673ea1d3d 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0039_path_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0039_path_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 91) +SOURCE_FILE@[0; 91) FN_DEF@[0; 90) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0040_expr_literals.txt b/crates/ra_syntax/tests/data/parser/inline/0040_expr_literals.txt index 8105ee25a..1d88f952d 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0040_expr_literals.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0040_expr_literals.txt @@ -1,4 +1,4 @@ -ROOT@[0; 189) +SOURCE_FILE@[0; 189) FN_DEF@[0; 188) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0041_type_param_bounds.txt b/crates/ra_syntax/tests/data/parser/inline/0041_type_param_bounds.txt index 549b571c2..745cf8798 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0041_type_param_bounds.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0041_type_param_bounds.txt @@ -1,4 +1,4 @@ -ROOT@[0; 35) +SOURCE_FILE@[0; 35) STRUCT_DEF@[0; 34) STRUCT_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/ra_syntax/tests/data/parser/inline/0042_type_param_default.txt b/crates/ra_syntax/tests/data/parser/inline/0042_type_param_default.txt index a75b7ed0a..59b3fbd2e 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0042_type_param_default.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0042_type_param_default.txt @@ -1,4 +1,4 @@ -ROOT@[0; 19) +SOURCE_FILE@[0; 19) STRUCT_DEF@[0; 18) STRUCT_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/ra_syntax/tests/data/parser/inline/0043_call_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0043_call_expr.txt index f8e31045a..6364dc73c 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0043_call_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0043_call_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 57) +SOURCE_FILE@[0; 57) FN_DEF@[0; 56) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0044_ref_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0044_ref_expr.txt index 77f2ca22c..2cd888762 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0044_ref_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0044_ref_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 52) +SOURCE_FILE@[0; 52) FN_DEF@[0; 51) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0045_block.txt b/crates/ra_syntax/tests/data/parser/inline/0045_block.txt index e6c841f21..c13e22b3a 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0045_block.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0045_block.txt @@ -1,4 +1,4 @@ -ROOT@[0; 65) +SOURCE_FILE@[0; 65) FN_DEF@[0; 9) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0046_default_impl.txt b/crates/ra_syntax/tests/data/parser/inline/0046_default_impl.txt index 19fe5ca85..f45b6251f 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0046_default_impl.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0046_default_impl.txt @@ -1,4 +1,4 @@ -ROOT@[0; 20) +SOURCE_FILE@[0; 20) IMPL_ITEM@[0; 19) DEFAULT_KW@[0; 7) WHITESPACE@[7; 8) diff --git a/crates/ra_syntax/tests/data/parser/inline/0047_impl_item.txt b/crates/ra_syntax/tests/data/parser/inline/0047_impl_item.txt index 6419243e2..1b9a8aa0e 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0047_impl_item.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0047_impl_item.txt @@ -1,4 +1,4 @@ -ROOT@[0; 12) +SOURCE_FILE@[0; 12) IMPL_ITEM@[0; 11) IMPL_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0048_impl_item_neg.txt b/crates/ra_syntax/tests/data/parser/inline/0048_impl_item_neg.txt index 6739f9c55..b83db380e 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0048_impl_item_neg.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0048_impl_item_neg.txt @@ -1,4 +1,4 @@ -ROOT@[0; 20) +SOURCE_FILE@[0; 20) IMPL_ITEM@[0; 19) IMPL_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0049_trait_item_list.txt b/crates/ra_syntax/tests/data/parser/inline/0049_trait_item_list.txt index 72d9220e8..998ac3da9 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0049_trait_item_list.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0049_trait_item_list.txt @@ -1,4 +1,4 @@ -ROOT@[0; 83) +SOURCE_FILE@[0; 83) IMPL_ITEM@[0; 82) IMPL_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0050_let_stmt;.txt b/crates/ra_syntax/tests/data/parser/inline/0050_let_stmt;.txt index 30dc83454..9c2aad7e0 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0050_let_stmt;.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0050_let_stmt;.txt @@ -1,4 +1,4 @@ -ROOT@[0; 77) +SOURCE_FILE@[0; 77) FN_DEF@[0; 76) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0051_method_call_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0051_method_call_expr.txt index 530c80fa8..51ecfdf78 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0051_method_call_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0051_method_call_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 49) +SOURCE_FILE@[0; 49) FN_DEF@[0; 48) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0052_field_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0052_field_expr.txt index 9086219ca..03fbf092b 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0052_field_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0052_field_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 37) +SOURCE_FILE@[0; 37) FN_DEF@[0; 36) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0053_block_items.txt b/crates/ra_syntax/tests/data/parser/inline/0053_block_items.txt index 20122d763..dd1843ee5 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0053_block_items.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0053_block_items.txt @@ -1,4 +1,4 @@ -ROOT@[0; 21) +SOURCE_FILE@[0; 21) FN_DEF@[0; 20) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0054_field_pat_list.txt b/crates/ra_syntax/tests/data/parser/inline/0054_field_pat_list.txt index 4df4ca35b..13a51a9d9 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0054_field_pat_list.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0054_field_pat_list.txt @@ -1,4 +1,4 @@ -ROOT@[0; 119) +SOURCE_FILE@[0; 119) FN_DEF@[0; 118) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0055_self_param.txt b/crates/ra_syntax/tests/data/parser/inline/0055_self_param.txt index f0e47c2dc..53027c852 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0055_self_param.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0055_self_param.txt @@ -1,4 +1,4 @@ -ROOT@[0; 128) +SOURCE_FILE@[0; 128) IMPL_ITEM@[0; 127) IMPL_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0056_trait_item.txt b/crates/ra_syntax/tests/data/parser/inline/0056_trait_item.txt index 40c77db4b..333a737ec 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0056_trait_item.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0056_trait_item.txt @@ -1,4 +1,4 @@ -ROOT@[0; 42) +SOURCE_FILE@[0; 42) TRAIT_DEF@[0; 41) TRAIT_KW@[0; 5) WHITESPACE@[5; 6) diff --git a/crates/ra_syntax/tests/data/parser/inline/0057_auto_trait.txt b/crates/ra_syntax/tests/data/parser/inline/0057_auto_trait.txt index 0303d76bd..8b3ce28d0 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0057_auto_trait.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0057_auto_trait.txt @@ -1,4 +1,4 @@ -ROOT@[0; 16) +SOURCE_FILE@[0; 16) TRAIT_DEF@[0; 15) AUTO_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0058_type_arg.txt b/crates/ra_syntax/tests/data/parser/inline/0058_type_arg.txt index aaf2924ba..086a74bdb 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0058_type_arg.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0058_type_arg.txt @@ -1,4 +1,4 @@ -ROOT@[0; 35) +SOURCE_FILE@[0; 35) TYPE_DEF@[0; 34) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0059_function_where_clause.txt b/crates/ra_syntax/tests/data/parser/inline/0059_function_where_clause.txt index 281e79deb..b58d09e35 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0059_function_where_clause.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0059_function_where_clause.txt @@ -1,4 +1,4 @@ -ROOT@[0; 29) +SOURCE_FILE@[0; 29) FN_DEF@[0; 28) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0060_function_type_params.txt b/crates/ra_syntax/tests/data/parser/inline/0060_function_type_params.txt index b6fea5ab2..b20f13267 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0060_function_type_params.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0060_function_type_params.txt @@ -1,4 +1,4 @@ -ROOT@[0; 28) +SOURCE_FILE@[0; 28) FN_DEF@[0; 27) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0061_struct_lit.txt b/crates/ra_syntax/tests/data/parser/inline/0061_struct_lit.txt index cf6e881b2..aec25403d 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0061_struct_lit.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0061_struct_lit.txt @@ -1,4 +1,4 @@ -ROOT@[0; 86) +SOURCE_FILE@[0; 86) FN_DEF@[0; 85) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0063_impl_trait_type.txt b/crates/ra_syntax/tests/data/parser/inline/0063_impl_trait_type.txt index 68fce58ee..efd4dd42a 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0063_impl_trait_type.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0063_impl_trait_type.txt @@ -1,4 +1,4 @@ -ROOT@[0; 43) +SOURCE_FILE@[0; 43) TYPE_DEF@[0; 42) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0063_lambda_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0063_lambda_expr.txt index 93f6285ac..8c1340c4a 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0063_lambda_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0063_lambda_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 74) +SOURCE_FILE@[0; 74) FN_DEF@[0; 74) FN_KW@[0; 2) NAME@[2; 6) diff --git a/crates/ra_syntax/tests/data/parser/inline/0064_param_list.txt b/crates/ra_syntax/tests/data/parser/inline/0064_param_list.txt index de547d699..503fc97ff 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0064_param_list.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0064_param_list.txt @@ -1,4 +1,4 @@ -ROOT@[0; 67) +SOURCE_FILE@[0; 67) FN_DEF@[0; 9) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0065_if_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0065_if_expr.txt index ae1a8101e..637d23d9e 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0065_if_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0065_if_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 107) +SOURCE_FILE@[0; 107) FN_DEF@[0; 106) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0066_lambda_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0066_lambda_expr.txt index 82aaf3897..98271c233 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0066_lambda_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0066_lambda_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 79) +SOURCE_FILE@[0; 79) FN_DEF@[0; 78) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0067_block_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0067_block_expr.txt index 12a1ff49a..eeb184ab2 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0067_block_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0067_block_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 52) +SOURCE_FILE@[0; 52) FN_DEF@[0; 51) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0068_pub_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0068_pub_expr.txt index 5f179c3ca..de20eee7a 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0068_pub_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0068_pub_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 29) +SOURCE_FILE@[0; 29) FN_DEF@[0; 20) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0068_return_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0068_return_expr.txt index ead1ada96..f8d1db41c 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0068_return_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0068_return_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 40) +SOURCE_FILE@[0; 40) FN_DEF@[0; 39) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0069_match_arm.txt b/crates/ra_syntax/tests/data/parser/inline/0069_match_arm.txt index f862b1268..044faec04 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0069_match_arm.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0069_match_arm.txt @@ -1,4 +1,4 @@ -ROOT@[0; 125) +SOURCE_FILE@[0; 125) FN_DEF@[0; 124) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0070_match_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0070_match_expr.txt index d7740e3cc..cc22bd3b2 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0070_match_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0070_match_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 47) +SOURCE_FILE@[0; 47) FN_DEF@[0; 46) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0071_tuple_pat_fields.txt b/crates/ra_syntax/tests/data/parser/inline/0071_tuple_pat_fields.txt index 734e0726c..737fbec22 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0071_tuple_pat_fields.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0071_tuple_pat_fields.txt @@ -1,4 +1,4 @@ -ROOT@[0; 97) +SOURCE_FILE@[0; 97) FN_DEF@[0; 96) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0072_path_part.txt b/crates/ra_syntax/tests/data/parser/inline/0072_path_part.txt index 1a8d1546d..0020cfb4d 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0072_path_part.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0072_path_part.txt @@ -1,4 +1,4 @@ -ROOT@[0; 103) +SOURCE_FILE@[0; 103) FN_DEF@[0; 102) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0073_impl_item_list.txt b/crates/ra_syntax/tests/data/parser/inline/0073_impl_item_list.txt index 1f524f34a..b15f93cd2 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0073_impl_item_list.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0073_impl_item_list.txt @@ -1,4 +1,4 @@ -ROOT@[0; 89) +SOURCE_FILE@[0; 89) IMPL_ITEM@[0; 88) IMPL_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0074_unary_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0074_unary_expr.txt index 4d77c8c11..72d7d8bfb 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0074_unary_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0074_unary_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 44) +SOURCE_FILE@[0; 44) FN_DEF@[0; 43) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0075_try_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0075_try_expr.txt index b80235146..f47e6da55 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0075_try_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0075_try_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 21) +SOURCE_FILE@[0; 21) FN_DEF@[0; 20) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0076_cond.txt b/crates/ra_syntax/tests/data/parser/inline/0076_cond.txt index 1808f10fb..641a09fff 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0076_cond.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0076_cond.txt @@ -1,4 +1,4 @@ -ROOT@[0; 38) +SOURCE_FILE@[0; 38) FN_DEF@[0; 37) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0077_while_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0077_while_expr.txt index c73157c04..f9b074e82 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0077_while_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0077_while_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 70) +SOURCE_FILE@[0; 70) FN_DEF@[0; 69) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0078_mod_contents.txt b/crates/ra_syntax/tests/data/parser/inline/0078_mod_contents.txt index 57b2b9372..62528ca47 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0078_mod_contents.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0078_mod_contents.txt @@ -1,4 +1,4 @@ -ROOT@[0; 70) +SOURCE_FILE@[0; 70) FN_DEF@[0; 11) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0079_cast_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0079_cast_expr.txt index 6d57078b3..a80439913 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0079_cast_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0079_cast_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 28) +SOURCE_FILE@[0; 28) FN_DEF@[0; 27) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0080_tuple_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0080_tuple_expr.txt index cf541411f..4e427c909 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0080_tuple_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0080_tuple_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 40) +SOURCE_FILE@[0; 40) FN_DEF@[0; 39) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0081_index_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0081_index_expr.txt index 4624aab23..6e10be559 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0081_index_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0081_index_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 26) +SOURCE_FILE@[0; 26) FN_DEF@[0; 25) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0082_tuple_pat.txt b/crates/ra_syntax/tests/data/parser/inline/0082_tuple_pat.txt index 2d68a5ff2..2471f6f8c 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0082_tuple_pat.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0082_tuple_pat.txt @@ -1,4 +1,4 @@ -ROOT@[0; 39) +SOURCE_FILE@[0; 39) FN_DEF@[0; 38) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0083_postfix_range.txt b/crates/ra_syntax/tests/data/parser/inline/0083_postfix_range.txt index 475251ea7..415ff2a20 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0083_postfix_range.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0083_postfix_range.txt @@ -1,4 +1,4 @@ -ROOT@[0; 26) +SOURCE_FILE@[0; 26) FN_DEF@[0; 25) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0084_loop_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0084_loop_expr.txt index 5321fade9..c3c64c322 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0084_loop_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0084_loop_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 26) +SOURCE_FILE@[0; 26) FN_DEF@[0; 25) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0085_for_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0085_for_expr.txt index 7ddf8122f..998f12110 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0085_for_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0085_for_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 33) +SOURCE_FILE@[0; 33) FN_DEF@[0; 32) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0085_match_arms_commas.txt b/crates/ra_syntax/tests/data/parser/inline/0085_match_arms_commas.txt index 560931645..1034846c8 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0085_match_arms_commas.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0085_match_arms_commas.txt @@ -1,4 +1,4 @@ -ROOT@[0; 83) +SOURCE_FILE@[0; 83) FN_DEF@[0; 82) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0086_array_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0086_array_expr.txt index dcdeff609..42df7c450 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0086_array_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0086_array_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 55) +SOURCE_FILE@[0; 55) FN_DEF@[0; 54) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0086_no_semi_after_block.txt b/crates/ra_syntax/tests/data/parser/inline/0086_no_semi_after_block.txt index f1b0e2787..69f0a48ce 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0086_no_semi_after_block.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0086_no_semi_after_block.txt @@ -1,4 +1,4 @@ -ROOT@[0; 107) +SOURCE_FILE@[0; 107) FN_DEF@[0; 106) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0087_stmt_postfix_expr_ambiguity.txt b/crates/ra_syntax/tests/data/parser/inline/0087_stmt_postfix_expr_ambiguity.txt index 91edf3f84..48e0026af 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0087_stmt_postfix_expr_ambiguity.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0087_stmt_postfix_expr_ambiguity.txt @@ -1,4 +1,4 @@ -ROOT@[0; 84) +SOURCE_FILE@[0; 84) FN_DEF@[0; 83) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0088_stmt_bin_expr_ambiguity.txt b/crates/ra_syntax/tests/data/parser/inline/0088_stmt_bin_expr_ambiguity.txt index ff1298acb..d8c599537 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0088_stmt_bin_expr_ambiguity.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0088_stmt_bin_expr_ambiguity.txt @@ -1,4 +1,4 @@ -ROOT@[0; 46) +SOURCE_FILE@[0; 46) FN_DEF@[0; 45) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0089_slice_pat.txt b/crates/ra_syntax/tests/data/parser/inline/0089_slice_pat.txt index 99e8dd427..72987308d 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0089_slice_pat.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0089_slice_pat.txt @@ -1,4 +1,4 @@ -ROOT@[0; 39) +SOURCE_FILE@[0; 39) FN_DEF@[0; 38) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0091_fn_decl.txt b/crates/ra_syntax/tests/data/parser/inline/0091_fn_decl.txt index c35bc8428..bb87e1d06 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0091_fn_decl.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0091_fn_decl.txt @@ -1,4 +1,4 @@ -ROOT@[0; 22) +SOURCE_FILE@[0; 22) TRAIT_DEF@[0; 21) TRAIT_KW@[0; 5) WHITESPACE@[5; 6) diff --git a/crates/ra_syntax/tests/data/parser/inline/0092_literal_pattern.txt b/crates/ra_syntax/tests/data/parser/inline/0092_literal_pattern.txt index 3128bfd7d..99b289d56 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0092_literal_pattern.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0092_literal_pattern.txt @@ -1,4 +1,4 @@ -ROOT@[0; 95) +SOURCE_FILE@[0; 95) FN_DEF@[0; 94) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0093_path_fn_trait_args.txt b/crates/ra_syntax/tests/data/parser/inline/0093_path_fn_trait_args.txt index 26a690d3a..ba1163c2d 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0093_path_fn_trait_args.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0093_path_fn_trait_args.txt @@ -1,4 +1,4 @@ -ROOT@[0; 32) +SOURCE_FILE@[0; 32) TYPE_DEF@[0; 31) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0094_range_pat.txt b/crates/ra_syntax/tests/data/parser/inline/0094_range_pat.txt index 4f14d5431..12ccc1314 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0094_range_pat.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0094_range_pat.txt @@ -1,4 +1,4 @@ -ROOT@[0; 47) +SOURCE_FILE@[0; 47) FN_DEF@[0; 46) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0095_path_type_with_bounds.txt b/crates/ra_syntax/tests/data/parser/inline/0095_path_type_with_bounds.txt index 4b864f741..911a27ea1 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0095_path_type_with_bounds.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0095_path_type_with_bounds.txt @@ -1,4 +1,4 @@ -ROOT@[0; 27) +SOURCE_FILE@[0; 27) FN_DEF@[0; 26) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0096_value_parameters_no_patterns.txt b/crates/ra_syntax/tests/data/parser/inline/0096_value_parameters_no_patterns.txt index 3c8352067..f2d7e866b 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0096_value_parameters_no_patterns.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0096_value_parameters_no_patterns.txt @@ -1,4 +1,4 @@ -ROOT@[0; 54) +SOURCE_FILE@[0; 54) TYPE_DEF@[0; 53) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0097_param_list_opt_patterns.txt b/crates/ra_syntax/tests/data/parser/inline/0097_param_list_opt_patterns.txt index 39bab8dd2..2ce7a6714 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0097_param_list_opt_patterns.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0097_param_list_opt_patterns.txt @@ -1,4 +1,4 @@ -ROOT@[0; 35) +SOURCE_FILE@[0; 35) FN_DEF@[0; 34) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0098_where_clause.txt b/crates/ra_syntax/tests/data/parser/inline/0098_where_clause.txt index 9fe803554..54c3d64f1 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0098_where_clause.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0098_where_clause.txt @@ -1,4 +1,4 @@ -ROOT@[0; 87) +SOURCE_FILE@[0; 87) FN_DEF@[0; 86) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0099_crate_keyword_vis.txt b/crates/ra_syntax/tests/data/parser/inline/0099_crate_keyword_vis.txt index 96a4e9162..ff5add838 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0099_crate_keyword_vis.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0099_crate_keyword_vis.txt @@ -1,4 +1,4 @@ -ROOT@[0; 20) +SOURCE_FILE@[0; 20) FN_DEF@[0; 19) VISIBILITY@[0; 5) CRATE_KW@[0; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0100_dyn_trait_type.txt b/crates/ra_syntax/tests/data/parser/inline/0100_dyn_trait_type.txt index c81ae5545..d07fe70b2 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0100_dyn_trait_type.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0100_dyn_trait_type.txt @@ -1,4 +1,4 @@ -ROOT@[0; 42) +SOURCE_FILE@[0; 42) TYPE_DEF@[0; 41) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0101_qual_paths.txt b/crates/ra_syntax/tests/data/parser/inline/0101_qual_paths.txt index 99516bf15..394fc7f5b 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0101_qual_paths.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0101_qual_paths.txt @@ -1,4 +1,4 @@ -ROOT@[0; 71) +SOURCE_FILE@[0; 71) TYPE_DEF@[0; 26) TYPE_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0102_full_range_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0102_full_range_expr.txt index 19f77fb73..caef145ce 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0102_full_range_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0102_full_range_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 21) +SOURCE_FILE@[0; 21) FN_DEF@[0; 20) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0103_field_attrs.txt b/crates/ra_syntax/tests/data/parser/inline/0103_field_attrs.txt index 420712e89..e02ebf400 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0103_field_attrs.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0103_field_attrs.txt @@ -1,4 +1,4 @@ -ROOT@[0; 64) +SOURCE_FILE@[0; 64) STRUCT_DEF@[0; 63) STRUCT_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/ra_syntax/tests/data/parser/inline/0104_arb_self_types.txt b/crates/ra_syntax/tests/data/parser/inline/0104_arb_self_types.txt index 9a306921e..b2f04ea7b 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0104_arb_self_types.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0104_arb_self_types.txt @@ -1,4 +1,4 @@ -ROOT@[0; 69) +SOURCE_FILE@[0; 69) IMPL_ITEM@[0; 68) IMPL_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0105_continue_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0105_continue_expr.txt index 1c78704fa..39be5b2c8 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0105_continue_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0105_continue_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 69) +SOURCE_FILE@[0; 69) FN_DEF@[0; 68) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0106_break_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0106_break_expr.txt index 92b6b8bea..1877311e8 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0106_break_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0106_break_expr.txt @@ -1,4 +1,4 @@ -ROOT@[0; 102) +SOURCE_FILE@[0; 102) FN_DEF@[0; 101) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0107_label.txt b/crates/ra_syntax/tests/data/parser/inline/0107_label.txt index 768515595..c641c3b16 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0107_label.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0107_label.txt @@ -1,4 +1,4 @@ -ROOT@[0; 74) +SOURCE_FILE@[0; 74) FN_DEF@[0; 73) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0108_misplaced_label_err.txt b/crates/ra_syntax/tests/data/parser/inline/0108_misplaced_label_err.txt index d00305b97..75533ecc1 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0108_misplaced_label_err.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0108_misplaced_label_err.txt @@ -1,4 +1,4 @@ -ROOT@[0; 30) +SOURCE_FILE@[0; 30) FN_DEF@[0; 29) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/inline/0109_struct_items.txt b/crates/ra_syntax/tests/data/parser/inline/0109_struct_items.txt index f9b34cc5e..058639375 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0109_struct_items.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0109_struct_items.txt @@ -1,4 +1,4 @@ -ROOT@[0; 106) +SOURCE_FILE@[0; 106) STRUCT_DEF@[0; 11) STRUCT_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/ra_syntax/tests/data/parser/inline/0110_union_items.txt b/crates/ra_syntax/tests/data/parser/inline/0110_union_items.txt index e2e755414..2d2fb1a0b 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0110_union_items.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0110_union_items.txt @@ -1,4 +1,4 @@ -ROOT@[0; 51) +SOURCE_FILE@[0; 51) STRUCT_DEF@[0; 12) UNION_KW@[0; 5) WHITESPACE@[5; 6) diff --git a/crates/ra_syntax/tests/data/parser/inline/0111_impl_type.txt b/crates/ra_syntax/tests/data/parser/inline/0111_impl_type.txt index a2907b060..7279d5cae 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0111_impl_type.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0111_impl_type.txt @@ -1,4 +1,4 @@ -ROOT@[0; 87) +SOURCE_FILE@[0; 87) IMPL_ITEM@[0; 12) IMPL_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/inline/0112_crate_path.txt b/crates/ra_syntax/tests/data/parser/inline/0112_crate_path.txt index 4c871ccdd..382286457 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0112_crate_path.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0112_crate_path.txt @@ -1,4 +1,4 @@ -ROOT@[0; 16) +SOURCE_FILE@[0; 16) USE_ITEM@[0; 15) USE_KW@[0; 3) WHITESPACE@[3; 4) diff --git a/crates/ra_syntax/tests/data/parser/inline/0113_where_pred_for.txt b/crates/ra_syntax/tests/data/parser/inline/0113_where_pred_for.txt index 08aacc77a..921bdacf4 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0113_where_pred_for.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0113_where_pred_for.txt @@ -1,4 +1,4 @@ -ROOT@[0; 49) +SOURCE_FILE@[0; 49) FN_DEF@[0; 48) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/ok/0000_empty.txt b/crates/ra_syntax/tests/data/parser/ok/0000_empty.txt index 9f505ee96..08f5a942f 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0000_empty.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0000_empty.txt @@ -1 +1 @@ -ROOT@[0; 0) +SOURCE_FILE@[0; 0) diff --git a/crates/ra_syntax/tests/data/parser/ok/0001_struct_item.txt b/crates/ra_syntax/tests/data/parser/ok/0001_struct_item.txt index aa2f1b712..12497e1a9 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0001_struct_item.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0001_struct_item.txt @@ -1,4 +1,4 @@ -ROOT@[0; 32) +SOURCE_FILE@[0; 32) STRUCT_DEF@[0; 31) STRUCT_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/ra_syntax/tests/data/parser/ok/0002_struct_item_field.txt b/crates/ra_syntax/tests/data/parser/ok/0002_struct_item_field.txt index 0b65387ef..2f588c598 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0002_struct_item_field.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0002_struct_item_field.txt @@ -1,4 +1,4 @@ -ROOT@[0; 25) +SOURCE_FILE@[0; 25) STRUCT_DEF@[0; 25) STRUCT_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/ra_syntax/tests/data/parser/ok/0004_file_shebang.txt b/crates/ra_syntax/tests/data/parser/ok/0004_file_shebang.txt index bb8874ead..31395ffc2 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0004_file_shebang.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0004_file_shebang.txt @@ -1,2 +1,2 @@ -ROOT@[0; 20) +SOURCE_FILE@[0; 20) SHEBANG@[0; 20) diff --git a/crates/ra_syntax/tests/data/parser/ok/0005_fn_item.txt b/crates/ra_syntax/tests/data/parser/ok/0005_fn_item.txt index 8ed92f2a4..c5eb46888 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0005_fn_item.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0005_fn_item.txt @@ -1,4 +1,4 @@ -ROOT@[0; 13) +SOURCE_FILE@[0; 13) FN_DEF@[0; 12) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/ok/0006_inner_attributes.txt b/crates/ra_syntax/tests/data/parser/ok/0006_inner_attributes.txt index 2b64c497f..05b114b54 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0006_inner_attributes.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0006_inner_attributes.txt @@ -1,4 +1,4 @@ -ROOT@[0; 236) +SOURCE_FILE@[0; 236) ATTR@[0; 8) POUND@[0; 1) EXCL@[1; 2) diff --git a/crates/ra_syntax/tests/data/parser/ok/0007_extern_crate.txt b/crates/ra_syntax/tests/data/parser/ok/0007_extern_crate.txt index 12193397e..5adf3f276 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0007_extern_crate.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0007_extern_crate.txt @@ -1,4 +1,4 @@ -ROOT@[0; 43) +SOURCE_FILE@[0; 43) EXTERN_CRATE_ITEM@[0; 17) EXTERN_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/ra_syntax/tests/data/parser/ok/0008_mod_item.txt b/crates/ra_syntax/tests/data/parser/ok/0008_mod_item.txt index c790f8431..139349fed 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0008_mod_item.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0008_mod_item.txt @@ -1,4 +1,4 @@ -ROOT@[0; 118) +SOURCE_FILE@[0; 118) MODULE@[0; 6) MOD_KW@[0; 3) WHITESPACE@[3; 4) diff --git a/crates/ra_syntax/tests/data/parser/ok/0009_use_item.txt b/crates/ra_syntax/tests/data/parser/ok/0009_use_item.txt index 4bcd15357..9e67d176a 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0009_use_item.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0009_use_item.txt @@ -1,4 +1,4 @@ -ROOT@[0; 19) +SOURCE_FILE@[0; 19) USE_ITEM@[0; 8) USE_KW@[0; 3) WHITESPACE@[3; 4) diff --git a/crates/ra_syntax/tests/data/parser/ok/0010_use_path_segments.txt b/crates/ra_syntax/tests/data/parser/ok/0010_use_path_segments.txt index f76ea1a35..d0d2c17ed 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0010_use_path_segments.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0010_use_path_segments.txt @@ -1,4 +1,4 @@ -ROOT@[0; 40) +SOURCE_FILE@[0; 40) USE_ITEM@[0; 20) USE_KW@[0; 3) WHITESPACE@[3; 4) diff --git a/crates/ra_syntax/tests/data/parser/ok/0011_outer_attribute.txt b/crates/ra_syntax/tests/data/parser/ok/0011_outer_attribute.txt index 203a07193..0f5f37474 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0011_outer_attribute.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0011_outer_attribute.txt @@ -1,4 +1,4 @@ -ROOT@[0; 35) +SOURCE_FILE@[0; 35) FN_DEF@[0; 34) ATTR@[0; 12) POUND@[0; 1) diff --git a/crates/ra_syntax/tests/data/parser/ok/0012_visibility.txt b/crates/ra_syntax/tests/data/parser/ok/0012_visibility.txt index 66901af54..15f547d29 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0012_visibility.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0012_visibility.txt @@ -1,4 +1,4 @@ -ROOT@[0; 98) +SOURCE_FILE@[0; 98) FN_DEF@[0; 9) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/ok/0013_use_path_self_super.txt b/crates/ra_syntax/tests/data/parser/ok/0013_use_path_self_super.txt index 95be4f75d..1ed498f82 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0013_use_path_self_super.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0013_use_path_self_super.txt @@ -1,4 +1,4 @@ -ROOT@[0; 65) +SOURCE_FILE@[0; 65) USE_ITEM@[0; 14) USE_KW@[0; 3) WHITESPACE@[3; 4) diff --git a/crates/ra_syntax/tests/data/parser/ok/0014_use_tree.txt b/crates/ra_syntax/tests/data/parser/ok/0014_use_tree.txt index 4aa539159..55eee5acc 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0014_use_tree.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0014_use_tree.txt @@ -1,4 +1,4 @@ -ROOT@[0; 81) +SOURCE_FILE@[0; 81) USE_ITEM@[0; 6) USE_KW@[0; 3) WHITESPACE@[3; 4) diff --git a/crates/ra_syntax/tests/data/parser/ok/0015_use_tree.txt b/crates/ra_syntax/tests/data/parser/ok/0015_use_tree.txt index aa4ef3715..8a4117673 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0015_use_tree.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0015_use_tree.txt @@ -1,4 +1,4 @@ -ROOT@[0; 55) +SOURCE_FILE@[0; 55) USE_ITEM@[0; 15) USE_KW@[0; 3) WHITESPACE@[3; 4) diff --git a/crates/ra_syntax/tests/data/parser/ok/0016_struct_flavors.txt b/crates/ra_syntax/tests/data/parser/ok/0016_struct_flavors.txt index 349481157..1d355823d 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0016_struct_flavors.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0016_struct_flavors.txt @@ -1,4 +1,4 @@ -ROOT@[0; 97) +SOURCE_FILE@[0; 97) STRUCT_DEF@[0; 9) STRUCT_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/ra_syntax/tests/data/parser/ok/0017_attr_trailing_comma.txt b/crates/ra_syntax/tests/data/parser/ok/0017_attr_trailing_comma.txt index 8cfd77256..d49341bc5 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0017_attr_trailing_comma.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0017_attr_trailing_comma.txt @@ -1,4 +1,4 @@ -ROOT@[0; 23) +SOURCE_FILE@[0; 23) FN_DEF@[0; 22) ATTR@[0; 10) POUND@[0; 1) diff --git a/crates/ra_syntax/tests/data/parser/ok/0018_struct_type_params.txt b/crates/ra_syntax/tests/data/parser/ok/0018_struct_type_params.txt index a98e823f6..491d154df 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0018_struct_type_params.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0018_struct_type_params.txt @@ -1,4 +1,4 @@ -ROOT@[0; 290) +SOURCE_FILE@[0; 290) STRUCT_DEF@[0; 13) STRUCT_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/ra_syntax/tests/data/parser/ok/0019_enums.txt b/crates/ra_syntax/tests/data/parser/ok/0019_enums.txt index 6333e47c5..6925219e8 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0019_enums.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0019_enums.txt @@ -1,4 +1,4 @@ -ROOT@[0; 182) +SOURCE_FILE@[0; 182) ENUM_DEF@[0; 11) ENUM_KW@[0; 4) WHITESPACE@[4; 5) diff --git a/crates/ra_syntax/tests/data/parser/ok/0020_type_param_bounds.txt b/crates/ra_syntax/tests/data/parser/ok/0020_type_param_bounds.txt index ac1a58e9a..b70a1d19a 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0020_type_param_bounds.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0020_type_param_bounds.txt @@ -1,4 +1,4 @@ -ROOT@[0; 200) +SOURCE_FILE@[0; 200) STRUCT_DEF@[0; 12) STRUCT_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/ra_syntax/tests/data/parser/ok/0021_extern_fn.txt b/crates/ra_syntax/tests/data/parser/ok/0021_extern_fn.txt index 5ceef46e0..6644d6ca2 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0021_extern_fn.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0021_extern_fn.txt @@ -1,4 +1,4 @@ -ROOT@[0; 71) +SOURCE_FILE@[0; 71) FN_DEF@[0; 19) ABI@[0; 6) EXTERN_KW@[0; 6) diff --git a/crates/ra_syntax/tests/data/parser/ok/0022_empty_extern_block.txt b/crates/ra_syntax/tests/data/parser/ok/0022_empty_extern_block.txt index 2099e2433..8f044e0b1 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0022_empty_extern_block.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0022_empty_extern_block.txt @@ -1,4 +1,4 @@ -ROOT@[0; 27) +SOURCE_FILE@[0; 27) EXTERN_BLOCK@[0; 10) ABI@[0; 6) EXTERN_KW@[0; 6) diff --git a/crates/ra_syntax/tests/data/parser/ok/0023_static_items.txt b/crates/ra_syntax/tests/data/parser/ok/0023_static_items.txt index 5c1a3a7a5..f7b107d1d 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0023_static_items.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0023_static_items.txt @@ -1,4 +1,4 @@ -ROOT@[0; 47) +SOURCE_FILE@[0; 47) STATIC_DEF@[0; 20) STATIC_KW@[0; 6) WHITESPACE@[6; 7) diff --git a/crates/ra_syntax/tests/data/parser/ok/0024_const_item.txt b/crates/ra_syntax/tests/data/parser/ok/0024_const_item.txt index d0e5842da..9cebc4673 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0024_const_item.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0024_const_item.txt @@ -1,4 +1,4 @@ -ROOT@[0; 46) +SOURCE_FILE@[0; 46) CONST_DEF@[0; 20) CONST_KW@[0; 5) WHITESPACE@[5; 6) diff --git a/crates/ra_syntax/tests/data/parser/ok/0025_extern_fn_in_block.txt b/crates/ra_syntax/tests/data/parser/ok/0025_extern_fn_in_block.txt index 363b3576e..e34ae9c65 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0025_extern_fn_in_block.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0025_extern_fn_in_block.txt @@ -1,4 +1,4 @@ -ROOT@[0; 35) +SOURCE_FILE@[0; 35) FN_DEF@[0; 34) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/ok/0026_const_fn_in_block.txt b/crates/ra_syntax/tests/data/parser/ok/0026_const_fn_in_block.txt index d45fc2559..6837c05ff 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0026_const_fn_in_block.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0026_const_fn_in_block.txt @@ -1,4 +1,4 @@ -ROOT@[0; 34) +SOURCE_FILE@[0; 34) FN_DEF@[0; 33) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/ok/0027_unsafe_fn_in_block.txt b/crates/ra_syntax/tests/data/parser/ok/0027_unsafe_fn_in_block.txt index 5a39fa98c..fe1a1ccbf 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0027_unsafe_fn_in_block.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0027_unsafe_fn_in_block.txt @@ -1,4 +1,4 @@ -ROOT@[0; 53) +SOURCE_FILE@[0; 53) FN_DEF@[0; 52) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/ok/0028_operator_binding_power.txt b/crates/ra_syntax/tests/data/parser/ok/0028_operator_binding_power.txt index 27efd180f..1427e08fc 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0028_operator_binding_power.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0028_operator_binding_power.txt @@ -1,4 +1,4 @@ -ROOT@[0; 248) +SOURCE_FILE@[0; 248) FN_DEF@[0; 247) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/ok/0029_range_forms.txt b/crates/ra_syntax/tests/data/parser/ok/0029_range_forms.txt index 6d6d2f4d0..2e7703c21 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0029_range_forms.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0029_range_forms.txt @@ -1,4 +1,4 @@ -ROOT@[0; 79) +SOURCE_FILE@[0; 79) FN_DEF@[0; 78) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/ok/0030_traits.txt b/crates/ra_syntax/tests/data/parser/ok/0030_traits.txt index ddd666407..b89f34884 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0030_traits.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0030_traits.txt @@ -1,4 +1,4 @@ -ROOT@[0; 164) +SOURCE_FILE@[0; 164) TRAIT_DEF@[0; 66) VISIBILITY@[0; 3) PUB_KW@[0; 3) diff --git a/crates/ra_syntax/tests/data/parser/ok/0031_extern.txt b/crates/ra_syntax/tests/data/parser/ok/0031_extern.txt index f3f1c25a9..9091c08e2 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0031_extern.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0031_extern.txt @@ -1,4 +1,4 @@ -ROOT@[0; 1598) +SOURCE_FILE@[0; 1598) EXTERN_BLOCK@[0; 1597) ABI@[0; 6) EXTERN_KW@[0; 6) diff --git a/crates/ra_syntax/tests/data/parser/ok/0032_where_for.txt b/crates/ra_syntax/tests/data/parser/ok/0032_where_for.txt index e3b9386a8..150a9e483 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0032_where_for.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0032_where_for.txt @@ -1,4 +1,4 @@ -ROOT@[0; 116) +SOURCE_FILE@[0; 116) FN_DEF@[0; 115) FN_KW@[0; 2) WHITESPACE@[2; 3) diff --git a/crates/ra_syntax/tests/data/parser/ok/0033_label_break.txt b/crates/ra_syntax/tests/data/parser/ok/0033_label_break.txt index 201eca644..1c2bf82c9 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0033_label_break.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0033_label_break.txt @@ -1,4 +1,4 @@ -ROOT@[0; 506) +SOURCE_FILE@[0; 506) FN_DEF@[0; 505) COMMENT@[0; 33) WHITESPACE@[33; 34) diff --git a/crates/ra_syntax/tests/data/parser/ok/0034_macro_2.0.txt b/crates/ra_syntax/tests/data/parser/ok/0034_macro_2.0.txt index 74af9d71b..caff8df76 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0034_macro_2.0.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0034_macro_2.0.txt @@ -1,4 +1,4 @@ -ROOT@[0; 350) +SOURCE_FILE@[0; 350) MACRO_CALL@[0; 41) PATH@[0; 5) PATH_SEGMENT@[0; 5) diff --git a/crates/ra_syntax/tests/data/parser/ok/0034_macro_stuck.txt b/crates/ra_syntax/tests/data/parser/ok/0034_macro_stuck.txt index 1a8ca761d..cf9a1a2fa 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0034_macro_stuck.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0034_macro_stuck.txt @@ -1,4 +1,4 @@ -ROOT@[0; 350) +SOURCE_FILE@[0; 350) MACRO_CALL@[0; 41) PATH@[0; 5) PATH_SEGMENT@[0; 5) diff --git a/crates/ra_syntax/tests/data/parser/ok/0035_crate_path_in_call.txt b/crates/ra_syntax/tests/data/parser/ok/0035_crate_path_in_call.txt index 364315180..3995f476c 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0035_crate_path_in_call.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0035_crate_path_in_call.txt @@ -1,4 +1,4 @@ -ROOT@[0; 62) +SOURCE_FILE@[0; 62) FN_DEF@[0; 61) FN_KW@[0; 2) WHITESPACE@[2; 3) -- cgit v1.2.3