From b5021411a84822cb3f1e3aeffad9550dd15bdeb6 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 16 Sep 2018 12:54:24 +0300 Subject: [PATCH] rename all things --- .cargo/config | 8 +- crates/gen_lsp_server/Cargo.toml | 2 +- crates/libeditor/scope.rs | 0 .../{libanalysis => ra_analysis}/Cargo.toml | 6 +- .../src/db/imp.rs | 0 .../src/db/mod.rs | 0 .../src/descriptors.rs | 2 +- .../{libanalysis => ra_analysis}/src/imp.rs | 14 +- .../{libanalysis => ra_analysis}/src/job.rs | 0 .../{libanalysis => ra_analysis}/src/lib.rs | 26 ++-- .../src/module_map.rs | 0 .../src/queries.rs | 4 +- .../{libanalysis => ra_analysis}/src/roots.rs | 4 +- .../src/symbol_index.rs | 4 +- .../tests/tests.rs | 4 +- crates/{cli => ra_cli}/Cargo.toml | 6 +- crates/{cli => ra_cli}/src/main.rs | 10 +- crates/{libeditor => ra_editor}/Cargo.toml | 4 +- .../src/code_actions.rs | 2 +- .../src/completion.rs | 2 +- crates/{libeditor => ra_editor}/src/edit.rs | 2 +- .../src/extend_selection.rs | 2 +- crates/{libeditor => ra_editor}/src/lib.rs | 8 +- .../src/line_index.rs | 0 .../src/scope/fn_scope.rs | 4 +- .../{libeditor => ra_editor}/src/scope/mod.rs | 0 .../src/scope/mod_scope.rs | 4 +- .../{libeditor => ra_editor}/src/symbols.rs | 2 +- .../src/test_utils.rs | 2 +- crates/{libeditor => ra_editor}/src/typing.rs | 2 +- crates/{server => ra_lsp_server}/Cargo.toml | 10 +- crates/{server => ra_lsp_server}/src/caps.rs | 0 crates/{server => ra_lsp_server}/src/conv.rs | 6 +- crates/{server => ra_lsp_server}/src/lib.rs | 6 +- crates/{server => ra_lsp_server}/src/main.rs | 8 +- .../src/main_loop/handlers.rs | 4 +- .../src/main_loop/mod.rs | 2 +- .../src/main_loop/subscriptions.rs | 2 +- .../{server => ra_lsp_server}/src/path_map.rs | 2 +- .../src/project_model.rs | 2 +- crates/{server => ra_lsp_server}/src/req.rs | 0 .../src/server_world.rs | 2 +- .../src/thread_watcher.rs | 0 crates/{server => ra_lsp_server}/src/vfs.rs | 0 .../tests/heavy_tests/main.rs | 4 +- .../tests/heavy_tests/support.rs | 2 +- crates/{libsyntax2 => ra_syntax}/Cargo.toml | 2 +- .../{libsyntax2 => ra_syntax}/fuzz/.gitignore | 0 .../{libsyntax2 => ra_syntax}/fuzz/Cargo.toml | 4 +- .../fuzz/fuzz_targets/parser.rs | 4 +- .../{libsyntax2 => ra_syntax}/src/algo/mod.rs | 0 .../src/algo/visit.rs | 0 .../src/algo/walk.rs | 0 .../src/ast/generated.rs | 0 .../src/ast/generated.rs.tera | 0 .../{libsyntax2 => ra_syntax}/src/ast/mod.rs | 0 .../{libsyntax2 => ra_syntax}/src/grammar.ron | 0 .../src/grammar/attributes.rs | 0 .../src/grammar/expressions/atom.rs | 0 .../src/grammar/expressions/mod.rs | 0 .../src/grammar/items/consts.rs | 0 .../src/grammar/items/mod.rs | 0 .../src/grammar/items/nominal.rs | 0 .../src/grammar/items/traits.rs | 0 .../src/grammar/items/use_item.rs | 0 .../src/grammar/mod.rs | 0 .../src/grammar/params.rs | 0 .../src/grammar/paths.rs | 0 .../src/grammar/patterns.rs | 0 .../src/grammar/type_args.rs | 0 .../src/grammar/type_params.rs | 0 .../src/grammar/types.rs | 0 .../src/lexer/classes.rs | 0 .../src/lexer/comments.rs | 0 .../src/lexer/mod.rs | 0 .../src/lexer/numbers.rs | 0 .../src/lexer/ptr.rs | 0 .../src/lexer/strings.rs | 0 crates/{libsyntax2 => ra_syntax}/src/lib.rs | 0 .../src/parser_api.rs | 0 .../src/parser_impl/event.rs | 0 .../src/parser_impl/input.rs | 0 .../src/parser_impl/mod.rs | 0 .../src/reparsing.rs | 0 .../src/syntax_kinds/generated.rs | 0 .../src/syntax_kinds/generated.rs.tera | 0 .../src/syntax_kinds/mod.rs | 0 .../src/text_utils.rs | 0 .../src/token_set.rs | 0 crates/{libsyntax2 => ra_syntax}/src/utils.rs | 0 .../src/yellow/builder.rs | 0 .../src/yellow/green.rs | 0 .../src/yellow/mod.rs | 0 .../src/yellow/red.rs | 0 .../src/yellow/syntax.rs | 0 .../src/yellow/syntax_text.rs | 0 .../tests/data/lexer/00012_block_comment.rs | 0 .../tests/data/lexer/00012_block_comment.txt | 0 .../tests/data/lexer/0001_hello.rs | 0 .../tests/data/lexer/0001_hello.txt | 0 .../tests/data/lexer/0002_whitespace.rs | 0 .../tests/data/lexer/0002_whitespace.txt | 0 .../tests/data/lexer/0003_ident.rs | 0 .../tests/data/lexer/0003_ident.txt | 0 .../tests/data/lexer/0004_numbers.rs | 0 .../tests/data/lexer/0004_numbers.txt | 0 .../tests/data/lexer/0005_symbols.rs | 0 .../tests/data/lexer/0005_symbols.txt | 0 .../tests/data/lexer/0006_chars.rs | 0 .../tests/data/lexer/0006_chars.txt | 0 .../tests/data/lexer/0007_lifetimes.rs | 0 .../tests/data/lexer/0007_lifetimes.txt | 0 .../tests/data/lexer/0008_byte_strings.rs | 0 .../tests/data/lexer/0008_byte_strings.txt | 0 .../tests/data/lexer/0009_strings.rs | 0 .../tests/data/lexer/0009_strings.txt | 0 .../tests/data/lexer/0010_comments.rs | 0 .../tests/data/lexer/0010_comments.txt | 0 .../tests/data/lexer/0011_keywords.rs | 0 .../tests/data/lexer/0011_keywords.txt | 0 .../tests/data/lexer/0013_raw_strings.rs | 0 .../tests/data/lexer/0013_raw_strings.txt | 0 .../tests/data/lexer/0014_unclosed_char.rs | 0 .../tests/data/lexer/0014_unclosed_char.txt | 0 .../tests/data/lexer/0015_unclosed_string.rs | 0 .../tests/data/lexer/0015_unclosed_string.txt | 0 .../err/0000_struct_field_missing_comma.rs | 0 .../err/0000_struct_field_missing_comma.txt | 0 .../parser/err/0001_item_recovery_in_file.rs | 0 .../parser/err/0001_item_recovery_in_file.txt | 0 .../data/parser/err/0002_duplicate_shebang.rs | 0 .../parser/err/0002_duplicate_shebang.txt | 0 .../data/parser/err/0003_C++_semicolon.rs | 0 .../data/parser/err/0003_C++_semicolon.txt | 0 .../parser/err/0004_use_path_bad_segment.rs | 0 .../parser/err/0004_use_path_bad_segment.txt | 0 .../data/parser/err/0005_attribute_recover.rs | 0 .../parser/err/0005_attribute_recover.txt | 0 .../parser/err/0006_named_field_recovery.rs | 0 .../parser/err/0006_named_field_recovery.txt | 0 .../parser/err/0007_stray_curly_in_file.rs | 0 .../parser/err/0007_stray_curly_in_file.txt | 0 .../parser/err/0008_item_block_recovery.rs | 0 .../parser/err/0008_item_block_recovery.txt | 0 .../err/0009_broken_struct_type_parameter.rs | 0 .../err/0009_broken_struct_type_parameter.txt | 0 .../parser/err/0010_unsafe_lambda_block.rs | 0 .../parser/err/0010_unsafe_lambda_block.txt | 0 .../data/parser/err/0011_extern_struct.rs | 0 .../data/parser/err/0011_extern_struct.txt | 0 .../data/parser/err/0012_broken_lambda.txt | 0 .../data/parser/err/0013_invalid_type.rs | 0 .../data/parser/err/0013_invalid_type.txt | 0 .../data/parser/err/0014_where_no_bounds.rs | 0 .../data/parser/err/0014_where_no_bounds.txt | 0 .../data/parser/err/0015_curly_in_params.rs | 0 .../data/parser/err/0015_curly_in_params.txt | 0 .../data/parser/err/0016_missing_semi.rs | 0 .../data/parser/err/0016_missing_semi.txt | 0 .../parser/err/0017_incomplete_binexpr.rs | 0 .../parser/err/0017_incomplete_binexpr.txt | 0 .../data/parser/err/0018_incomplete_fn.rs | 0 .../data/parser/err/0018_incomplete_fn.txt | 0 .../tests/data/parser/err/0019_let_recover.rs | 0 .../data/parser/err/0019_let_recover.txt | 0 .../tests/data/parser/err/0020_fn_recover.rs | 0 .../tests/data/parser/err/0020_fn_recover.txt | 0 .../data/parser/err/0021_incomplete_param.rs | 0 .../data/parser/err/0021_incomplete_param.txt | 0 .../tests/data/parser/err/0022_bad_exprs.rs | 0 .../tests/data/parser/err/0022_bad_exprs.txt | 0 .../data/parser/err/0023_mismatched_paren.rs | 0 .../data/parser/err/0023_mismatched_paren.txt | 0 .../data/parser/err/0024_many_type_parens.rs | 0 .../data/parser/err/0024_many_type_parens.txt | 0 .../tests/data/parser/err/0025_nope.rs | 0 .../tests/data/parser/err/0025_nope.txt | 0 .../tests/data/parser/fuzz-failures/0000.rs | 0 .../tests/data/parser/fuzz-failures/0001.rs | 2 +- .../parser/inline/0001_const_unsafe_fn.rs | 0 .../parser/inline/0001_const_unsafe_fn.txt | 0 .../tests/data/parser/inline/0002_const_fn.rs | 0 .../data/parser/inline/0002_const_fn.txt | 0 .../data/parser/inline/0003_extern_block.rs | 0 .../data/parser/inline/0003_extern_block.txt | 0 .../data/parser/inline/0004_extern_fn.rs | 0 .../data/parser/inline/0004_extern_fn.txt | 0 .../data/parser/inline/0005_extern_crate.rs | 0 .../data/parser/inline/0005_extern_crate.txt | 0 .../data/parser/inline/0007_unsafe_trait.rs | 0 .../data/parser/inline/0007_unsafe_trait.txt | 0 .../data/parser/inline/0008_unsafe_impl.rs | 0 .../data/parser/inline/0008_unsafe_impl.txt | 0 .../parser/inline/0009_unsafe_auto_trait.rs | 0 .../parser/inline/0009_unsafe_auto_trait.txt | 0 .../parser/inline/0010_unsafe_default_impl.rs | 0 .../inline/0010_unsafe_default_impl.txt | 0 .../data/parser/inline/0011_unsafe_fn.rs | 0 .../data/parser/inline/0011_unsafe_fn.txt | 0 .../parser/inline/0012_unsafe_extern_fn.rs | 0 .../parser/inline/0012_unsafe_extern_fn.txt | 0 .../parser/inline/0013_unsafe_block_in_mod.rs | 0 .../inline/0013_unsafe_block_in_mod.txt | 0 .../inline/0014_type_item_type_params.rs | 0 .../inline/0014_type_item_type_params.txt | 0 .../data/parser/inline/0015_type_item.rs | 0 .../data/parser/inline/0015_type_item.txt | 0 .../inline/0016_type_item_where_clause.rs | 0 .../inline/0016_type_item_where_clause.txt | 0 .../data/parser/inline/0017_paren_type.rs | 0 .../data/parser/inline/0017_paren_type.txt | 0 .../data/parser/inline/0018_unit_type.rs | 0 .../data/parser/inline/0018_unit_type.txt | 0 .../inline/0019_singleton_tuple_type.rs | 0 .../inline/0019_singleton_tuple_type.txt | 0 .../data/parser/inline/0020_never_type.rs | 0 .../data/parser/inline/0020_never_type.txt | 0 .../inline/0021_pointer_type_no_mutability.rs | 0 .../0021_pointer_type_no_mutability.txt | 0 .../parser/inline/0022_pointer_type_mut.rs | 0 .../parser/inline/0022_pointer_type_mut.txt | 0 .../inline/0023_array_type_missing_semi.rs | 0 .../inline/0023_array_type_missing_semi.txt | 0 .../data/parser/inline/0024_array_type.rs | 0 .../data/parser/inline/0024_array_type.txt | 0 .../data/parser/inline/0025_slice_type.rs | 0 .../data/parser/inline/0025_slice_type.txt | 0 .../parser/inline/0026_reference_type;.rs | 0 .../parser/inline/0026_reference_type;.txt | 0 .../parser/inline/0027_placeholder_type.rs | 0 .../parser/inline/0027_placeholder_type.txt | 0 .../parser/inline/0028_fn_pointer_type.rs | 0 .../parser/inline/0028_fn_pointer_type.txt | 0 .../inline/0029_fn_pointer_type_missing_fn.rs | 0 .../0029_fn_pointer_type_missing_fn.txt | 0 .../inline/0030_fn_pointer_type_with_ret.rs | 0 .../inline/0030_fn_pointer_type_with_ret.txt | 0 .../tests/data/parser/inline/0031_for_type.rs | 0 .../data/parser/inline/0031_for_type.txt | 0 .../data/parser/inline/0032_path_type.rs | 0 .../data/parser/inline/0032_path_type.txt | 0 .../tests/data/parser/inline/0034_bind_pat.rs | 0 .../data/parser/inline/0034_bind_pat.txt | 0 .../tests/data/parser/inline/0035_ref_pat.rs | 0 .../tests/data/parser/inline/0035_ref_pat.txt | 0 .../parser/inline/0036_placeholder_pat.rs | 0 .../parser/inline/0036_placeholder_pat.txt | 0 .../parser/inline/0037_crate_visibility.rs | 0 .../parser/inline/0037_crate_visibility.txt | 0 .../parser/inline/0038_function_ret_type.rs | 0 .../parser/inline/0038_function_ret_type.txt | 0 .../data/parser/inline/0039_path_expr.rs | 0 .../data/parser/inline/0039_path_expr.txt | 0 .../data/parser/inline/0040_expr_literals.rs | 0 .../data/parser/inline/0040_expr_literals.txt | 0 .../parser/inline/0041_type_param_bounds.rs | 0 .../parser/inline/0041_type_param_bounds.txt | 0 .../parser/inline/0042_type_param_default.rs | 0 .../parser/inline/0042_type_param_default.txt | 0 .../data/parser/inline/0043_call_expr.rs | 0 .../data/parser/inline/0043_call_expr.txt | 0 .../tests/data/parser/inline/0044_ref_expr.rs | 0 .../data/parser/inline/0044_ref_expr.txt | 0 .../tests/data/parser/inline/0045_block.rs | 0 .../tests/data/parser/inline/0045_block.txt | 0 .../data/parser/inline/0046_default_impl.rs | 0 .../data/parser/inline/0046_default_impl.txt | 0 .../data/parser/inline/0047_impl_item.rs | 0 .../data/parser/inline/0047_impl_item.txt | 0 .../data/parser/inline/0048_impl_item_neg.rs | 0 .../data/parser/inline/0048_impl_item_neg.txt | 0 .../parser/inline/0049_trait_item_list.rs | 0 .../parser/inline/0049_trait_item_list.txt | 0 .../data/parser/inline/0050_let_stmt;.rs | 0 .../data/parser/inline/0050_let_stmt;.txt | 0 .../parser/inline/0051_method_call_expr.rs | 0 .../parser/inline/0051_method_call_expr.txt | 0 .../data/parser/inline/0052_field_expr.rs | 0 .../data/parser/inline/0052_field_expr.txt | 0 .../data/parser/inline/0053_block_items.rs | 0 .../data/parser/inline/0053_block_items.txt | 0 .../data/parser/inline/0054_field_pat_list.rs | 0 .../parser/inline/0054_field_pat_list.txt | 0 .../data/parser/inline/0055_self_param.rs | 0 .../data/parser/inline/0055_self_param.txt | 0 .../data/parser/inline/0056_trait_item.rs | 0 .../data/parser/inline/0056_trait_item.txt | 0 .../data/parser/inline/0057_auto_trait.rs | 0 .../data/parser/inline/0057_auto_trait.txt | 0 .../tests/data/parser/inline/0058_type_arg.rs | 0 .../data/parser/inline/0058_type_arg.txt | 0 .../inline/0059_function_where_clause.rs | 0 .../inline/0059_function_where_clause.txt | 0 .../inline/0060_function_type_params.rs | 0 .../inline/0060_function_type_params.txt | 0 .../data/parser/inline/0061_struct_lit.rs | 0 .../data/parser/inline/0061_struct_lit.txt | 0 .../parser/inline/0063_impl_trait_type.rs | 0 .../parser/inline/0063_impl_trait_type.txt | 0 .../data/parser/inline/0063_lambda_expr.txt | 0 .../data/parser/inline/0064_param_list.rs | 0 .../data/parser/inline/0064_param_list.txt | 0 .../tests/data/parser/inline/0065_if_expr.rs | 0 .../tests/data/parser/inline/0065_if_expr.txt | 0 .../data/parser/inline/0066_lambda_expr.rs | 0 .../data/parser/inline/0066_lambda_expr.txt | 0 .../data/parser/inline/0067_block_expr.rs | 0 .../data/parser/inline/0067_block_expr.txt | 0 .../tests/data/parser/inline/0068_pub_expr.rs | 0 .../data/parser/inline/0068_pub_expr.txt | 0 .../data/parser/inline/0068_return_expr.rs | 0 .../data/parser/inline/0068_return_expr.txt | 0 .../data/parser/inline/0069_match_arm.rs | 0 .../data/parser/inline/0069_match_arm.txt | 0 .../data/parser/inline/0070_match_expr.rs | 0 .../data/parser/inline/0070_match_expr.txt | 0 .../parser/inline/0071_tuple_pat_fields.rs | 0 .../parser/inline/0071_tuple_pat_fields.txt | 0 .../data/parser/inline/0072_path_part.rs | 0 .../data/parser/inline/0072_path_part.txt | 0 .../data/parser/inline/0073_impl_item_list.rs | 0 .../parser/inline/0073_impl_item_list.txt | 0 .../data/parser/inline/0074_unary_expr.rs | 0 .../data/parser/inline/0074_unary_expr.txt | 0 .../tests/data/parser/inline/0075_try_expr.rs | 0 .../data/parser/inline/0075_try_expr.txt | 0 .../tests/data/parser/inline/0076_cond.rs | 0 .../tests/data/parser/inline/0076_cond.txt | 0 .../data/parser/inline/0077_while_expr.rs | 0 .../data/parser/inline/0077_while_expr.txt | 0 .../data/parser/inline/0078_mod_contents.rs | 0 .../data/parser/inline/0078_mod_contents.txt | 0 .../data/parser/inline/0079_cast_expr.rs | 0 .../data/parser/inline/0079_cast_expr.txt | 0 .../data/parser/inline/0080_tuple_expr.rs | 0 .../data/parser/inline/0080_tuple_expr.txt | 0 .../data/parser/inline/0081_index_expr.rs | 0 .../data/parser/inline/0081_index_expr.txt | 0 .../data/parser/inline/0082_tuple_pat.rs | 0 .../data/parser/inline/0082_tuple_pat.txt | 0 .../data/parser/inline/0083_postfix_range.rs | 0 .../data/parser/inline/0083_postfix_range.txt | 0 .../data/parser/inline/0084_loop_expr.rs | 0 .../data/parser/inline/0084_loop_expr.txt | 0 .../tests/data/parser/inline/0085_for_expr.rs | 0 .../data/parser/inline/0085_for_expr.txt | 0 .../parser/inline/0085_match_arms_commas.rs | 0 .../parser/inline/0085_match_arms_commas.txt | 0 .../data/parser/inline/0086_array_expr.rs | 0 .../data/parser/inline/0086_array_expr.txt | 0 .../parser/inline/0086_no_semi_after_block.rs | 0 .../inline/0086_no_semi_after_block.txt | 0 .../0087_stmt_postfix_expr_ambiguity.rs | 0 .../0087_stmt_postfix_expr_ambiguity.txt | 0 .../inline/0088_stmt_bin_expr_ambiguity.rs | 0 .../inline/0088_stmt_bin_expr_ambiguity.txt | 0 .../data/parser/inline/0089_slice_pat.rs | 0 .../data/parser/inline/0089_slice_pat.txt | 0 .../tests/data/parser/inline/0091_fn_decl.rs | 0 .../tests/data/parser/inline/0091_fn_decl.txt | 0 .../parser/inline/0092_literal_pattern.rs | 0 .../parser/inline/0092_literal_pattern.txt | 0 .../parser/inline/0093_path_fn_trait_args.rs | 0 .../parser/inline/0093_path_fn_trait_args.txt | 0 .../data/parser/inline/0094_range_pat.rs | 0 .../data/parser/inline/0094_range_pat.txt | 0 .../inline/0095_path_type_with_bounds.rs | 0 .../inline/0095_path_type_with_bounds.txt | 0 .../0096_value_parameters_no_patterns.rs | 0 .../0096_value_parameters_no_patterns.txt | 0 .../inline/0097_param_list_opt_patterns.rs | 0 .../inline/0097_param_list_opt_patterns.txt | 0 .../data/parser/inline/0098_where_clause.rs | 0 .../data/parser/inline/0098_where_clause.txt | 0 .../parser/inline/0099_crate_keyword_vis.rs | 0 .../parser/inline/0099_crate_keyword_vis.txt | 0 .../data/parser/inline/0100_dyn_trait_type.rs | 0 .../parser/inline/0100_dyn_trait_type.txt | 0 .../data/parser/inline/0101_qual_paths.rs | 0 .../data/parser/inline/0101_qual_paths.txt | 0 .../parser/inline/0102_full_range_expr.rs | 0 .../parser/inline/0102_full_range_expr.txt | 0 .../data/parser/inline/0103_field_attrs.rs | 0 .../data/parser/inline/0103_field_attrs.txt | 0 .../data/parser/inline/0104_arb_self_types.rs | 0 .../parser/inline/0104_arb_self_types.txt | 0 .../data/parser/inline/0105_continue_expr.rs | 0 .../data/parser/inline/0105_continue_expr.txt | 0 .../data/parser/inline/0106_break_expr.rs | 0 .../data/parser/inline/0106_break_expr.txt | 0 .../tests/data/parser/inline/0107_label.rs | 0 .../tests/data/parser/inline/0107_label.txt | 0 .../parser/inline/0108_misplaced_label_err.rs | 0 .../inline/0108_misplaced_label_err.txt | 0 .../data/parser/inline/0109_struct_items.rs | 0 .../data/parser/inline/0109_struct_items.txt | 0 .../data/parser/inline/0110_union_items.rs | 0 .../data/parser/inline/0110_union_items.txt | 0 .../tests/data/parser/ok/0000_empty.rs | 0 .../tests/data/parser/ok/0000_empty.txt | 0 .../tests/data/parser/ok/0001_struct_item.rs | 0 .../tests/data/parser/ok/0001_struct_item.txt | 0 .../data/parser/ok/0002_struct_item_field.rs | 0 .../data/parser/ok/0002_struct_item_field.txt | 0 .../tests/data/parser/ok/0004_file_shebang.rs | 0 .../data/parser/ok/0004_file_shebang.txt | 0 .../tests/data/parser/ok/0005_fn_item.rs | 0 .../tests/data/parser/ok/0005_fn_item.txt | 0 .../data/parser/ok/0006_inner_attributes.rs | 0 .../data/parser/ok/0006_inner_attributes.txt | 0 .../tests/data/parser/ok/0007_extern_crate.rs | 0 .../data/parser/ok/0007_extern_crate.txt | 0 .../tests/data/parser/ok/0008_mod_item.rs | 0 .../tests/data/parser/ok/0008_mod_item.txt | 0 .../tests/data/parser/ok/0009_use_item.rs | 0 .../tests/data/parser/ok/0009_use_item.txt | 0 .../data/parser/ok/0010_use_path_segments.rs | 0 .../data/parser/ok/0010_use_path_segments.txt | 0 .../data/parser/ok/0011_outer_attribute.rs | 0 .../data/parser/ok/0011_outer_attribute.txt | 0 .../tests/data/parser/ok/0012_visibility.rs | 0 .../tests/data/parser/ok/0012_visibility.txt | 0 .../parser/ok/0013_use_path_self_super.rs | 0 .../parser/ok/0013_use_path_self_super.txt | 0 .../tests/data/parser/ok/0014_use_tree.rs | 0 .../tests/data/parser/ok/0014_use_tree.txt | 0 .../tests/data/parser/ok/0015_use_tree.rs | 0 .../tests/data/parser/ok/0015_use_tree.txt | 0 .../data/parser/ok/0016_struct_flavors.rs | 0 .../data/parser/ok/0016_struct_flavors.txt | 0 .../parser/ok/0017_attr_trailing_comma.rs | 0 .../parser/ok/0017_attr_trailing_comma.txt | 0 .../data/parser/ok/0018_struct_type_params.rs | 0 .../parser/ok/0018_struct_type_params.txt | 0 .../tests/data/parser/ok/0019_enums.rs | 0 .../tests/data/parser/ok/0019_enums.txt | 0 .../data/parser/ok/0020_type_param_bounds.rs | 0 .../data/parser/ok/0020_type_param_bounds.txt | 0 .../tests/data/parser/ok/0021_extern_fn.rs | 0 .../tests/data/parser/ok/0021_extern_fn.txt | 0 .../data/parser/ok/0022_empty_extern_block.rs | 0 .../parser/ok/0022_empty_extern_block.txt | 0 .../tests/data/parser/ok/0023_static_items.rs | 0 .../data/parser/ok/0023_static_items.txt | 0 .../tests/data/parser/ok/0024_const_item.rs | 0 .../tests/data/parser/ok/0024_const_item.txt | 0 .../data/parser/ok/0025_extern_fn_in_block.rs | 0 .../parser/ok/0025_extern_fn_in_block.txt | 0 .../data/parser/ok/0026_const_fn_in_block.rs | 0 .../data/parser/ok/0026_const_fn_in_block.txt | 0 .../data/parser/ok/0027_unsafe_fn_in_block.rs | 0 .../parser/ok/0027_unsafe_fn_in_block.txt | 0 .../parser/ok/0028_operator_binding_power.rs | 0 .../parser/ok/0028_operator_binding_power.txt | 0 .../tests/data/parser/ok/0029_range_forms.rs | 0 .../tests/data/parser/ok/0029_range_forms.txt | 0 .../tests/data/parser/ok/0030_traits.rs | 0 .../tests/data/parser/ok/0030_traits.txt | 0 .../tests/data/parser/ok/0031_extern.rs | 0 .../tests/data/parser/ok/0031_extern.txt | 0 .../tests/data/parser/ok/0032_where_for.rs | 0 .../tests/data/parser/ok/0032_where_for.txt | 0 .../tests/data/parser/ok/0033_label_break.rs | 0 .../tests/data/parser/ok/0033_label_break.txt | 0 .../tests/data/parser/ok/0034_macro_2.0.rs | 0 .../tests/data/parser/ok/0034_macro_2.0.txt | 0 .../tests/data/parser/ok/0034_macro_stuck.txt | 0 .../test/main.rs => ra_syntax/tests/test.rs} | 10 +- crates/tools/src/main.rs | 26 ++-- {code => editors/code}/.gitignore | 0 {code => editors/code}/.vscode/launch.json | 0 {code => editors/code}/.vscode/settings.json | 0 {code => editors/code}/.vscode/tasks.json | 0 {code => editors/code}/.vscodeignore | 0 {code => editors/code}/package-lock.json | 145 ++++++++++-------- {code => editors/code}/package.json | 30 ++-- {code => editors/code}/src/extension.ts | 26 ++-- {code => editors/code}/tsconfig.json | 0 478 files changed, 219 insertions(+), 204 deletions(-) delete mode 100644 crates/libeditor/scope.rs rename crates/{libanalysis => ra_analysis}/Cargo.toml (77%) rename crates/{libanalysis => ra_analysis}/src/db/imp.rs (100%) rename crates/{libanalysis => ra_analysis}/src/db/mod.rs (100%) rename crates/{libanalysis => ra_analysis}/src/descriptors.rs (99%) rename crates/{libanalysis => ra_analysis}/src/imp.rs (96%) rename crates/{libanalysis => ra_analysis}/src/job.rs (100%) rename crates/{libanalysis => ra_analysis}/src/lib.rs (92%) rename crates/{libanalysis => ra_analysis}/src/module_map.rs (100%) rename crates/{libanalysis => ra_analysis}/src/queries.rs (96%) rename crates/{libanalysis => ra_analysis}/src/roots.rs (99%) rename crates/{libanalysis => ra_analysis}/src/symbol_index.rs (97%) rename crates/{libanalysis => ra_analysis}/tests/tests.rs (97%) rename crates/{cli => ra_cli}/Cargo.toml (66%) rename crates/{cli => ra_cli}/src/main.rs (94%) rename crates/{libeditor => ra_editor}/Cargo.toml (80%) rename crates/{libeditor => ra_editor}/src/code_actions.rs (99%) rename crates/{libeditor => ra_editor}/src/completion.rs (99%) rename crates/{libeditor => ra_editor}/src/edit.rs (99%) rename crates/{libeditor => ra_editor}/src/extend_selection.rs (99%) rename crates/{libeditor => ra_editor}/src/lib.rs (97%) rename crates/{libeditor => ra_editor}/src/line_index.rs (100%) rename crates/{libeditor => ra_editor}/src/scope/fn_scope.rs (99%) rename crates/{libeditor => ra_editor}/src/scope/mod.rs (100%) rename crates/{libeditor => ra_editor}/src/scope/mod_scope.rs (97%) rename crates/{libeditor => ra_editor}/src/symbols.rs (99%) rename crates/{libeditor => ra_editor}/src/test_utils.rs (96%) rename crates/{libeditor => ra_editor}/src/typing.rs (99%) rename crates/{server => ra_lsp_server}/Cargo.toml (77%) rename crates/{server => ra_lsp_server}/src/caps.rs (100%) rename crates/{server => ra_lsp_server}/src/conv.rs (97%) rename crates/{server => ra_lsp_server}/src/lib.rs (90%) rename crates/{server => ra_lsp_server}/src/main.rs (88%) rename crates/{server => ra_lsp_server}/src/main_loop/handlers.rs (99%) rename crates/{server => ra_lsp_server}/src/main_loop/mod.rs (99%) rename crates/{server => ra_lsp_server}/src/main_loop/subscriptions.rs (95%) rename crates/{server => ra_lsp_server}/src/path_map.rs (98%) rename crates/{server => ra_lsp_server}/src/project_model.rs (99%) rename crates/{server => ra_lsp_server}/src/req.rs (100%) rename crates/{server => ra_lsp_server}/src/server_world.rs (98%) rename crates/{server => ra_lsp_server}/src/thread_watcher.rs (100%) rename crates/{server => ra_lsp_server}/src/vfs.rs (100%) rename crates/{server => ra_lsp_server}/tests/heavy_tests/main.rs (96%) rename crates/{server => ra_lsp_server}/tests/heavy_tests/support.rs (98%) rename crates/{libsyntax2 => ra_syntax}/Cargo.toml (94%) rename crates/{libsyntax2 => ra_syntax}/fuzz/.gitignore (100%) rename crates/{libsyntax2 => ra_syntax}/fuzz/Cargo.toml (87%) rename crates/{libsyntax2 => ra_syntax}/fuzz/fuzz_targets/parser.rs (64%) rename crates/{libsyntax2 => ra_syntax}/src/algo/mod.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/algo/visit.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/algo/walk.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/ast/generated.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/ast/generated.rs.tera (100%) rename crates/{libsyntax2 => ra_syntax}/src/ast/mod.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/grammar.ron (100%) rename crates/{libsyntax2 => ra_syntax}/src/grammar/attributes.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/grammar/expressions/atom.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/grammar/expressions/mod.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/grammar/items/consts.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/grammar/items/mod.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/grammar/items/nominal.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/grammar/items/traits.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/grammar/items/use_item.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/grammar/mod.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/grammar/params.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/grammar/paths.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/grammar/patterns.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/grammar/type_args.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/grammar/type_params.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/grammar/types.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/lexer/classes.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/lexer/comments.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/lexer/mod.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/lexer/numbers.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/lexer/ptr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/lexer/strings.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/lib.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/parser_api.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/parser_impl/event.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/parser_impl/input.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/parser_impl/mod.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/reparsing.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/syntax_kinds/generated.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/syntax_kinds/generated.rs.tera (100%) rename crates/{libsyntax2 => ra_syntax}/src/syntax_kinds/mod.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/text_utils.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/token_set.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/utils.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/yellow/builder.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/yellow/green.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/yellow/mod.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/yellow/red.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/yellow/syntax.rs (100%) rename crates/{libsyntax2 => ra_syntax}/src/yellow/syntax_text.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/00012_block_comment.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/00012_block_comment.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0001_hello.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0001_hello.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0002_whitespace.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0002_whitespace.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0003_ident.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0003_ident.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0004_numbers.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0004_numbers.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0005_symbols.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0005_symbols.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0006_chars.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0006_chars.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0007_lifetimes.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0007_lifetimes.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0008_byte_strings.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0008_byte_strings.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0009_strings.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0009_strings.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0010_comments.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0010_comments.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0011_keywords.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0011_keywords.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0013_raw_strings.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0013_raw_strings.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0014_unclosed_char.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0014_unclosed_char.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0015_unclosed_string.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/lexer/0015_unclosed_string.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0000_struct_field_missing_comma.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0000_struct_field_missing_comma.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0001_item_recovery_in_file.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0001_item_recovery_in_file.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0002_duplicate_shebang.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0002_duplicate_shebang.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0003_C++_semicolon.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0003_C++_semicolon.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0004_use_path_bad_segment.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0004_use_path_bad_segment.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0005_attribute_recover.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0005_attribute_recover.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0006_named_field_recovery.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0006_named_field_recovery.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0007_stray_curly_in_file.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0007_stray_curly_in_file.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0008_item_block_recovery.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0008_item_block_recovery.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0009_broken_struct_type_parameter.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0009_broken_struct_type_parameter.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0010_unsafe_lambda_block.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0010_unsafe_lambda_block.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0011_extern_struct.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0011_extern_struct.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0012_broken_lambda.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0013_invalid_type.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0013_invalid_type.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0014_where_no_bounds.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0014_where_no_bounds.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0015_curly_in_params.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0015_curly_in_params.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0016_missing_semi.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0016_missing_semi.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0017_incomplete_binexpr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0017_incomplete_binexpr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0018_incomplete_fn.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0018_incomplete_fn.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0019_let_recover.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0019_let_recover.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0020_fn_recover.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0020_fn_recover.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0021_incomplete_param.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0021_incomplete_param.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0022_bad_exprs.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0022_bad_exprs.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0023_mismatched_paren.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0023_mismatched_paren.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0024_many_type_parens.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0024_many_type_parens.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0025_nope.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/err/0025_nope.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/fuzz-failures/0000.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/fuzz-failures/0001.rs (99%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0001_const_unsafe_fn.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0001_const_unsafe_fn.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0002_const_fn.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0002_const_fn.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0003_extern_block.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0003_extern_block.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0004_extern_fn.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0004_extern_fn.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0005_extern_crate.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0005_extern_crate.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0007_unsafe_trait.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0007_unsafe_trait.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0008_unsafe_impl.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0008_unsafe_impl.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0009_unsafe_auto_trait.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0009_unsafe_auto_trait.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0010_unsafe_default_impl.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0010_unsafe_default_impl.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0011_unsafe_fn.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0011_unsafe_fn.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0012_unsafe_extern_fn.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0012_unsafe_extern_fn.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0013_unsafe_block_in_mod.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0013_unsafe_block_in_mod.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0014_type_item_type_params.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0014_type_item_type_params.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0015_type_item.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0015_type_item.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0016_type_item_where_clause.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0016_type_item_where_clause.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0017_paren_type.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0017_paren_type.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0018_unit_type.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0018_unit_type.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0019_singleton_tuple_type.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0019_singleton_tuple_type.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0020_never_type.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0020_never_type.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0021_pointer_type_no_mutability.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0021_pointer_type_no_mutability.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0022_pointer_type_mut.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0022_pointer_type_mut.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0023_array_type_missing_semi.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0023_array_type_missing_semi.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0024_array_type.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0024_array_type.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0025_slice_type.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0025_slice_type.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0026_reference_type;.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0026_reference_type;.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0027_placeholder_type.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0027_placeholder_type.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0028_fn_pointer_type.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0028_fn_pointer_type.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0029_fn_pointer_type_missing_fn.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0029_fn_pointer_type_missing_fn.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0030_fn_pointer_type_with_ret.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0030_fn_pointer_type_with_ret.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0031_for_type.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0031_for_type.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0032_path_type.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0032_path_type.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0034_bind_pat.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0034_bind_pat.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0035_ref_pat.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0035_ref_pat.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0036_placeholder_pat.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0036_placeholder_pat.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0037_crate_visibility.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0037_crate_visibility.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0038_function_ret_type.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0038_function_ret_type.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0039_path_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0039_path_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0040_expr_literals.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0040_expr_literals.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0041_type_param_bounds.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0041_type_param_bounds.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0042_type_param_default.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0042_type_param_default.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0043_call_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0043_call_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0044_ref_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0044_ref_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0045_block.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0045_block.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0046_default_impl.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0046_default_impl.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0047_impl_item.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0047_impl_item.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0048_impl_item_neg.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0048_impl_item_neg.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0049_trait_item_list.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0049_trait_item_list.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0050_let_stmt;.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0050_let_stmt;.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0051_method_call_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0051_method_call_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0052_field_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0052_field_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0053_block_items.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0053_block_items.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0054_field_pat_list.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0054_field_pat_list.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0055_self_param.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0055_self_param.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0056_trait_item.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0056_trait_item.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0057_auto_trait.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0057_auto_trait.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0058_type_arg.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0058_type_arg.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0059_function_where_clause.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0059_function_where_clause.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0060_function_type_params.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0060_function_type_params.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0061_struct_lit.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0061_struct_lit.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0063_impl_trait_type.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0063_impl_trait_type.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0063_lambda_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0064_param_list.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0064_param_list.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0065_if_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0065_if_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0066_lambda_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0066_lambda_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0067_block_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0067_block_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0068_pub_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0068_pub_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0068_return_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0068_return_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0069_match_arm.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0069_match_arm.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0070_match_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0070_match_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0071_tuple_pat_fields.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0071_tuple_pat_fields.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0072_path_part.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0072_path_part.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0073_impl_item_list.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0073_impl_item_list.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0074_unary_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0074_unary_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0075_try_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0075_try_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0076_cond.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0076_cond.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0077_while_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0077_while_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0078_mod_contents.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0078_mod_contents.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0079_cast_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0079_cast_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0080_tuple_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0080_tuple_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0081_index_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0081_index_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0082_tuple_pat.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0082_tuple_pat.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0083_postfix_range.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0083_postfix_range.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0084_loop_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0084_loop_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0085_for_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0085_for_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0085_match_arms_commas.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0085_match_arms_commas.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0086_array_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0086_array_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0086_no_semi_after_block.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0086_no_semi_after_block.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0087_stmt_postfix_expr_ambiguity.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0087_stmt_postfix_expr_ambiguity.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0088_stmt_bin_expr_ambiguity.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0088_stmt_bin_expr_ambiguity.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0089_slice_pat.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0089_slice_pat.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0091_fn_decl.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0091_fn_decl.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0092_literal_pattern.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0092_literal_pattern.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0093_path_fn_trait_args.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0093_path_fn_trait_args.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0094_range_pat.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0094_range_pat.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0095_path_type_with_bounds.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0095_path_type_with_bounds.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0096_value_parameters_no_patterns.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0096_value_parameters_no_patterns.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0097_param_list_opt_patterns.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0097_param_list_opt_patterns.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0098_where_clause.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0098_where_clause.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0099_crate_keyword_vis.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0099_crate_keyword_vis.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0100_dyn_trait_type.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0100_dyn_trait_type.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0101_qual_paths.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0101_qual_paths.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0102_full_range_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0102_full_range_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0103_field_attrs.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0103_field_attrs.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0104_arb_self_types.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0104_arb_self_types.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0105_continue_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0105_continue_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0106_break_expr.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0106_break_expr.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0107_label.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0107_label.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0108_misplaced_label_err.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0108_misplaced_label_err.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0109_struct_items.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0109_struct_items.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0110_union_items.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/inline/0110_union_items.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0000_empty.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0000_empty.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0001_struct_item.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0001_struct_item.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0002_struct_item_field.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0002_struct_item_field.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0004_file_shebang.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0004_file_shebang.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0005_fn_item.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0005_fn_item.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0006_inner_attributes.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0006_inner_attributes.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0007_extern_crate.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0007_extern_crate.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0008_mod_item.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0008_mod_item.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0009_use_item.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0009_use_item.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0010_use_path_segments.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0010_use_path_segments.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0011_outer_attribute.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0011_outer_attribute.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0012_visibility.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0012_visibility.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0013_use_path_self_super.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0013_use_path_self_super.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0014_use_tree.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0014_use_tree.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0015_use_tree.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0015_use_tree.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0016_struct_flavors.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0016_struct_flavors.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0017_attr_trailing_comma.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0017_attr_trailing_comma.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0018_struct_type_params.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0018_struct_type_params.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0019_enums.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0019_enums.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0020_type_param_bounds.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0020_type_param_bounds.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0021_extern_fn.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0021_extern_fn.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0022_empty_extern_block.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0022_empty_extern_block.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0023_static_items.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0023_static_items.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0024_const_item.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0024_const_item.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0025_extern_fn_in_block.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0025_extern_fn_in_block.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0026_const_fn_in_block.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0026_const_fn_in_block.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0027_unsafe_fn_in_block.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0027_unsafe_fn_in_block.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0028_operator_binding_power.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0028_operator_binding_power.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0029_range_forms.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0029_range_forms.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0030_traits.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0030_traits.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0031_extern.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0031_extern.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0032_where_for.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0032_where_for.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0033_label_break.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0033_label_break.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0034_macro_2.0.rs (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0034_macro_2.0.txt (100%) rename crates/{libsyntax2 => ra_syntax}/tests/data/parser/ok/0034_macro_stuck.txt (100%) rename crates/{libsyntax2/tests/test/main.rs => ra_syntax/tests/test.rs} (94%) rename {code => editors/code}/.gitignore (100%) rename {code => editors/code}/.vscode/launch.json (100%) rename {code => editors/code}/.vscode/settings.json (100%) rename {code => editors/code}/.vscode/tasks.json (100%) rename {code => editors/code}/.vscodeignore (100%) rename {code => editors/code}/package-lock.json (95%) rename {code => editors/code}/package.json (82%) rename {code => editors/code}/src/extension.ts (94%) rename {code => editors/code}/tsconfig.json (100%) diff --git a/.cargo/config b/.cargo/config index 0e9e0f3877..767045bdba 100644 --- a/.cargo/config +++ b/.cargo/config @@ -1,7 +1,7 @@ [alias] -gen-kinds = "run --package tools -- gen-kinds" -gen-tests = "run --package tools -- gen-tests" +gen-kinds = "run --package tools -- gen-kinds" +gen-tests = "run --package tools -- gen-tests" install-code = "run --package tools -- install-code" -render-test = "run --package cli -- render-test" -parse = "run --package cli -- parse" +render-test = "run --package ra_cli -- render-test" +parse = "run --package ra_cli -- parse" diff --git a/crates/gen_lsp_server/Cargo.toml b/crates/gen_lsp_server/Cargo.toml index b31884802a..4eb508fc03 100644 --- a/crates/gen_lsp_server/Cargo.toml +++ b/crates/gen_lsp_server/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" authors = ["Aleksey Kladov "] [dependencies] -languageserver-types = "0.49.0" +languageserver-types = "0.50.0" log = "0.4.3" failure = "0.1.2" diff --git a/crates/libeditor/scope.rs b/crates/libeditor/scope.rs deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/crates/libanalysis/Cargo.toml b/crates/ra_analysis/Cargo.toml similarity index 77% rename from crates/libanalysis/Cargo.toml rename to crates/ra_analysis/Cargo.toml index 88f29d7c86..a30cdfc9c5 100644 --- a/crates/libanalysis/Cargo.toml +++ b/crates/ra_analysis/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "libanalysis" +name = "ra_analysis" version = "0.1.0" authors = ["Aleksey Kladov "] @@ -12,8 +12,8 @@ once_cell = "0.1.5" rayon = "1.0.2" fst = "0.3.1" im = "12.0.0" -libsyntax2 = { path = "../libsyntax2" } -libeditor = { path = "../libeditor" } +ra_syntax = { path = "../ra_syntax" } +ra_editor = { path = "../ra_editor" } salsa = { path = "../salsa" } [dev-dependencies] diff --git a/crates/libanalysis/src/db/imp.rs b/crates/ra_analysis/src/db/imp.rs similarity index 100% rename from crates/libanalysis/src/db/imp.rs rename to crates/ra_analysis/src/db/imp.rs diff --git a/crates/libanalysis/src/db/mod.rs b/crates/ra_analysis/src/db/mod.rs similarity index 100% rename from crates/libanalysis/src/db/mod.rs rename to crates/ra_analysis/src/db/mod.rs diff --git a/crates/libanalysis/src/descriptors.rs b/crates/ra_analysis/src/descriptors.rs similarity index 99% rename from crates/libanalysis/src/descriptors.rs rename to crates/ra_analysis/src/descriptors.rs index 93a4158e44..0731b5572a 100644 --- a/crates/libanalysis/src/descriptors.rs +++ b/crates/ra_analysis/src/descriptors.rs @@ -2,7 +2,7 @@ use std::{ collections::BTreeMap, }; use relative_path::RelativePathBuf; -use libsyntax2::{ +use ra_syntax::{ SmolStr, ast::{self, NameOwner}, }; diff --git a/crates/libanalysis/src/imp.rs b/crates/ra_analysis/src/imp.rs similarity index 96% rename from crates/libanalysis/src/imp.rs rename to crates/ra_analysis/src/imp.rs index 6f3191fe73..90184a4b95 100644 --- a/crates/libanalysis/src/imp.rs +++ b/crates/ra_analysis/src/imp.rs @@ -9,8 +9,8 @@ use std::{ }; use relative_path::RelativePath; -use libeditor::{self, FileSymbol, LineIndex, find_node_at_offset, LocalEdit}; -use libsyntax2::{ +use ra_editor::{self, FileSymbol, LineIndex, find_node_at_offset, LocalEdit}; +use ra_syntax::{ TextUnit, TextRange, SmolStr, File, AstNode, SyntaxKind::*, ast::{self, NameOwner}, @@ -228,7 +228,7 @@ impl AnalysisImpl { let module_tree = root.module_tree(); let syntax = root.syntax(file_id); - let mut res = libeditor::diagnostics(&syntax) + let mut res = ra_editor::diagnostics(&syntax) .into_iter() .map(|d| Diagnostic { range: d.range, message: d.msg, fix: None }) .collect::>(); @@ -277,10 +277,10 @@ impl AnalysisImpl { let file = self.file_syntax(file_id); let offset = range.start(); let actions = vec![ - ("flip comma", libeditor::flip_comma(&file, offset).map(|f| f())), - ("add `#[derive]`", libeditor::add_derive(&file, offset).map(|f| f())), - ("add impl", libeditor::add_impl(&file, offset).map(|f| f())), - ("introduce variable", libeditor::introduce_variable(&file, range).map(|f| f())), + ("flip comma", ra_editor::flip_comma(&file, offset).map(|f| f())), + ("add `#[derive]`", ra_editor::add_derive(&file, offset).map(|f| f())), + ("add impl", ra_editor::add_impl(&file, offset).map(|f| f())), + ("introduce variable", ra_editor::introduce_variable(&file, range).map(|f| f())), ]; actions.into_iter() .filter_map(|(name, local_edit)| { diff --git a/crates/libanalysis/src/job.rs b/crates/ra_analysis/src/job.rs similarity index 100% rename from crates/libanalysis/src/job.rs rename to crates/ra_analysis/src/job.rs diff --git a/crates/libanalysis/src/lib.rs b/crates/ra_analysis/src/lib.rs similarity index 92% rename from crates/libanalysis/src/lib.rs rename to crates/ra_analysis/src/lib.rs index b4b7a6a304..4da55ab269 100644 --- a/crates/libanalysis/src/lib.rs +++ b/crates/ra_analysis/src/lib.rs @@ -2,8 +2,8 @@ extern crate parking_lot; #[macro_use] extern crate log; extern crate once_cell; -extern crate libsyntax2; -extern crate libeditor; +extern crate ra_syntax; +extern crate ra_editor; extern crate fst; extern crate rayon; extern crate relative_path; @@ -28,10 +28,10 @@ use std::{ }; use relative_path::{RelativePath, RelativePathBuf}; -use libsyntax2::{File, TextRange, TextUnit, AtomEdit}; +use ra_syntax::{File, TextRange, TextUnit, AtomEdit}; use imp::{AnalysisImpl, AnalysisHostImpl, FileResolverImp}; -pub use libeditor::{ +pub use ra_editor::{ StructureNode, LineIndex, FileSymbol, Runnable, RunnableKind, HighlightedRange, CompletionItem, }; @@ -170,26 +170,26 @@ impl Analysis { self.imp.file_line_index(file_id) } pub fn extend_selection(&self, file: &File, range: TextRange) -> TextRange { - libeditor::extend_selection(file, range).unwrap_or(range) + ra_editor::extend_selection(file, range).unwrap_or(range) } pub fn matching_brace(&self, file: &File, offset: TextUnit) -> Option { - libeditor::matching_brace(file, offset) + ra_editor::matching_brace(file, offset) } pub fn syntax_tree(&self, file_id: FileId) -> String { let file = self.imp.file_syntax(file_id); - libeditor::syntax_tree(&file) + ra_editor::syntax_tree(&file) } pub fn join_lines(&self, file_id: FileId, range: TextRange) -> SourceChange { let file = self.imp.file_syntax(file_id); - SourceChange::from_local_edit(file_id, "join lines", libeditor::join_lines(&file, range)) + SourceChange::from_local_edit(file_id, "join lines", ra_editor::join_lines(&file, range)) } pub fn on_eq_typed(&self, file_id: FileId, offset: TextUnit) -> Option { let file = self.imp.file_syntax(file_id); - Some(SourceChange::from_local_edit(file_id, "add semicolon", libeditor::on_eq_typed(&file, offset)?)) + Some(SourceChange::from_local_edit(file_id, "add semicolon", ra_editor::on_eq_typed(&file, offset)?)) } pub fn file_structure(&self, file_id: FileId) -> Vec { let file = self.imp.file_syntax(file_id); - libeditor::file_structure(&file) + ra_editor::file_structure(&file) } pub fn symbol_search(&self, query: Query, token: &JobToken) -> Vec<(FileId, FileSymbol)> { self.imp.world_symbols(query, token) @@ -208,15 +208,15 @@ impl Analysis { } pub fn runnables(&self, file_id: FileId) -> Vec { let file = self.imp.file_syntax(file_id); - libeditor::runnables(&file) + ra_editor::runnables(&file) } pub fn highlight(&self, file_id: FileId) -> Vec { let file = self.imp.file_syntax(file_id); - libeditor::highlight(&file) + ra_editor::highlight(&file) } pub fn completions(&self, file_id: FileId, offset: TextUnit) -> Option> { let file = self.imp.file_syntax(file_id); - libeditor::scope_completion(&file, offset) + ra_editor::scope_completion(&file, offset) } pub fn assists(&self, file_id: FileId, range: TextRange) -> Vec { self.imp.assists(file_id, range) diff --git a/crates/libanalysis/src/module_map.rs b/crates/ra_analysis/src/module_map.rs similarity index 100% rename from crates/libanalysis/src/module_map.rs rename to crates/ra_analysis/src/module_map.rs diff --git a/crates/libanalysis/src/queries.rs b/crates/ra_analysis/src/queries.rs similarity index 96% rename from crates/libanalysis/src/queries.rs rename to crates/ra_analysis/src/queries.rs index 0b60316e60..062a2f4203 100644 --- a/crates/libanalysis/src/queries.rs +++ b/crates/ra_analysis/src/queries.rs @@ -1,6 +1,6 @@ use std::sync::Arc; -use libsyntax2::File; -use libeditor::LineIndex; +use ra_syntax::File; +use ra_editor::LineIndex; use { FileId, db::{Query, QueryCtx, QueryRegistry}, diff --git a/crates/libanalysis/src/roots.rs b/crates/ra_analysis/src/roots.rs similarity index 99% rename from crates/libanalysis/src/roots.rs rename to crates/ra_analysis/src/roots.rs index 191d0d821a..1835a9b259 100644 --- a/crates/libanalysis/src/roots.rs +++ b/crates/ra_analysis/src/roots.rs @@ -6,8 +6,8 @@ use std::{ use once_cell::sync::OnceCell; use rayon::prelude::*; -use libeditor::LineIndex; -use libsyntax2::File; +use ra_editor::LineIndex; +use ra_syntax::File; use { FileId, diff --git a/crates/libanalysis/src/symbol_index.rs b/crates/ra_analysis/src/symbol_index.rs similarity index 97% rename from crates/libanalysis/src/symbol_index.rs rename to crates/ra_analysis/src/symbol_index.rs index d22187ac0b..ffbb6a29fd 100644 --- a/crates/libanalysis/src/symbol_index.rs +++ b/crates/ra_analysis/src/symbol_index.rs @@ -2,8 +2,8 @@ use std::{ sync::Arc, hash::{Hash, Hasher}, }; -use libeditor::{FileSymbol, file_symbols}; -use libsyntax2::{ +use ra_editor::{FileSymbol, file_symbols}; +use ra_syntax::{ File, SyntaxKind::{self, *}, }; diff --git a/crates/libanalysis/tests/tests.rs b/crates/ra_analysis/tests/tests.rs similarity index 97% rename from crates/libanalysis/tests/tests.rs rename to crates/ra_analysis/tests/tests.rs index 547f85958e..334dc5e485 100644 --- a/crates/libanalysis/tests/tests.rs +++ b/crates/ra_analysis/tests/tests.rs @@ -1,5 +1,5 @@ -extern crate libanalysis; extern crate relative_path; +extern crate ra_analysis; extern crate test_utils; use std::{ @@ -8,7 +8,7 @@ use std::{ }; use relative_path::{RelativePath, RelativePathBuf}; -use libanalysis::{Analysis, AnalysisHost, FileId, FileResolver, JobHandle, CrateGraph, CrateId}; +use ra_analysis::{Analysis, AnalysisHost, FileId, FileResolver, JobHandle, CrateGraph, CrateId}; use test_utils::assert_eq_dbg; #[derive(Debug)] diff --git a/crates/cli/Cargo.toml b/crates/ra_cli/Cargo.toml similarity index 66% rename from crates/cli/Cargo.toml rename to crates/ra_cli/Cargo.toml index 7dbbe3f4ee..17011e0636 100644 --- a/crates/cli/Cargo.toml +++ b/crates/ra_cli/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "cli" +name = "ra_cli" version = "0.1.0" authors = ["Aleksey Kladov "] publish = false @@ -7,6 +7,6 @@ publish = false [dependencies] clap = "2.32.0" failure = "0.1.1" -libsyntax2 = { path = "../libsyntax2" } -libeditor = { path = "../libeditor" } +ra_syntax = { path = "../ra_syntax" } +ra_editor = { path = "../ra_editor" } tools = { path = "../tools" } diff --git a/crates/cli/src/main.rs b/crates/ra_cli/src/main.rs similarity index 94% rename from crates/cli/src/main.rs rename to crates/ra_cli/src/main.rs index 68a531f93f..96e5b718c9 100644 --- a/crates/cli/src/main.rs +++ b/crates/ra_cli/src/main.rs @@ -1,8 +1,8 @@ extern crate clap; #[macro_use] extern crate failure; -extern crate libsyntax2; -extern crate libeditor; +extern crate ra_syntax; +extern crate ra_editor; extern crate tools; use std::{ @@ -11,13 +11,13 @@ use std::{ }; use clap::{App, Arg, SubCommand}; use tools::collect_tests; -use libsyntax2::File; -use libeditor::{syntax_tree, file_structure}; +use ra_syntax::File; +use ra_editor::{syntax_tree, file_structure}; type Result = ::std::result::Result; fn main() -> Result<()> { - let matches = App::new("libsyntax2-cli") + let matches = App::new("ra-cli") .setting(clap::AppSettings::SubcommandRequiredElseHelp) .subcommand( SubCommand::with_name("render-test") diff --git a/crates/libeditor/Cargo.toml b/crates/ra_editor/Cargo.toml similarity index 80% rename from crates/libeditor/Cargo.toml rename to crates/ra_editor/Cargo.toml index b04da1abe5..40e3254ffa 100644 --- a/crates/libeditor/Cargo.toml +++ b/crates/ra_editor/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "libeditor" +name = "ra_editor" version = "0.1.0" authors = ["Aleksey Kladov "] publish = false @@ -9,7 +9,7 @@ itertools = "0.7.8" superslice = "0.1.0" join_to_string = "0.1.1" -libsyntax2 = { path = "../libsyntax2" } +ra_syntax = { path = "../ra_syntax" } [dev-dependencies] test_utils = { path = "../test_utils" } diff --git a/crates/libeditor/src/code_actions.rs b/crates/ra_editor/src/code_actions.rs similarity index 99% rename from crates/libeditor/src/code_actions.rs rename to crates/ra_editor/src/code_actions.rs index 4a07d1bc9a..83f7956d29 100644 --- a/crates/libeditor/src/code_actions.rs +++ b/crates/ra_editor/src/code_actions.rs @@ -1,6 +1,6 @@ use join_to_string::join; -use libsyntax2::{ +use ra_syntax::{ File, TextUnit, TextRange, ast::{self, AstNode, AttrsOwner, TypeParamsOwner, NameOwner}, SyntaxKind::{COMMA, WHITESPACE}, diff --git a/crates/libeditor/src/completion.rs b/crates/ra_editor/src/completion.rs similarity index 99% rename from crates/libeditor/src/completion.rs rename to crates/ra_editor/src/completion.rs index 52df6fd10a..5000b32a05 100644 --- a/crates/libeditor/src/completion.rs +++ b/crates/ra_editor/src/completion.rs @@ -1,6 +1,6 @@ use std::collections::{HashSet, HashMap}; -use libsyntax2::{ +use ra_syntax::{ File, TextUnit, AstNode, SyntaxNodeRef, SyntaxKind::*, ast::{self, LoopBodyOwner, ModuleItemOwner}, algo::{ diff --git a/crates/libeditor/src/edit.rs b/crates/ra_editor/src/edit.rs similarity index 99% rename from crates/libeditor/src/edit.rs rename to crates/ra_editor/src/edit.rs index 09cf2bd006..2839ac20a0 100644 --- a/crates/libeditor/src/edit.rs +++ b/crates/ra_editor/src/edit.rs @@ -1,5 +1,5 @@ use {TextRange, TextUnit}; -use libsyntax2::{ +use ra_syntax::{ AtomEdit, text_utils::contains_offset_nonstrict, }; diff --git a/crates/libeditor/src/extend_selection.rs b/crates/ra_editor/src/extend_selection.rs similarity index 99% rename from crates/libeditor/src/extend_selection.rs rename to crates/ra_editor/src/extend_selection.rs index 9dc59e2541..5fd1ca4fc6 100644 --- a/crates/libeditor/src/extend_selection.rs +++ b/crates/ra_editor/src/extend_selection.rs @@ -1,4 +1,4 @@ -use libsyntax2::{ +use ra_syntax::{ File, TextRange, SyntaxNodeRef, TextUnit, SyntaxKind::*, algo::{find_leaf_at_offset, LeafAtOffset, find_covering_node, ancestors, Direction, siblings}, diff --git a/crates/libeditor/src/lib.rs b/crates/ra_editor/src/lib.rs similarity index 97% rename from crates/libeditor/src/lib.rs rename to crates/ra_editor/src/lib.rs index b3cf2ef55e..78ed34c7c1 100644 --- a/crates/libeditor/src/lib.rs +++ b/crates/ra_editor/src/lib.rs @@ -1,4 +1,4 @@ -extern crate libsyntax2; +extern crate ra_syntax; extern crate superslice; extern crate itertools; extern crate join_to_string; @@ -17,13 +17,13 @@ mod scope; #[cfg(test)] mod test_utils; -use libsyntax2::{ +use ra_syntax::{ File, TextUnit, TextRange, SyntaxNodeRef, ast::{self, AstNode, NameOwner}, algo::{walk, find_leaf_at_offset, ancestors}, SyntaxKind::{self, *}, }; -pub use libsyntax2::AtomEdit; +pub use ra_syntax::AtomEdit; pub use self::{ line_index::{LineIndex, LineCol}, extend_selection::extend_selection, @@ -124,7 +124,7 @@ pub fn diagnostics(file: &File) -> Vec { } pub fn syntax_tree(file: &File) -> String { - ::libsyntax2::utils::dump_tree(file.syntax()) + ::ra_syntax::utils::dump_tree(file.syntax()) } pub fn runnables(file: &File) -> Vec { diff --git a/crates/libeditor/src/line_index.rs b/crates/ra_editor/src/line_index.rs similarity index 100% rename from crates/libeditor/src/line_index.rs rename to crates/ra_editor/src/line_index.rs diff --git a/crates/libeditor/src/scope/fn_scope.rs b/crates/ra_editor/src/scope/fn_scope.rs similarity index 99% rename from crates/libeditor/src/scope/fn_scope.rs rename to crates/ra_editor/src/scope/fn_scope.rs index 60b8ce919f..3ae5276a22 100644 --- a/crates/libeditor/src/scope/fn_scope.rs +++ b/crates/ra_editor/src/scope/fn_scope.rs @@ -3,7 +3,7 @@ use std::{ collections::HashMap, }; -use libsyntax2::{ +use ra_syntax::{ SyntaxNodeRef, SyntaxNode, SmolStr, AstNode, ast::{self, NameOwner, LoopBodyOwner, ArgListOwner}, algo::{ancestors, generate, walk::preorder} @@ -244,7 +244,7 @@ struct ScopeData { #[cfg(test)] mod tests { use super::*; - use libsyntax2::File; + use ra_syntax::File; use {find_node_at_offset, test_utils::extract_offset}; fn do_check(code: &str, expected: &[&str]) { diff --git a/crates/libeditor/src/scope/mod.rs b/crates/ra_editor/src/scope/mod.rs similarity index 100% rename from crates/libeditor/src/scope/mod.rs rename to crates/ra_editor/src/scope/mod.rs diff --git a/crates/libeditor/src/scope/mod_scope.rs b/crates/ra_editor/src/scope/mod_scope.rs similarity index 97% rename from crates/libeditor/src/scope/mod_scope.rs rename to crates/ra_editor/src/scope/mod_scope.rs index 0ec56a206d..d2a3e7c583 100644 --- a/crates/libeditor/src/scope/mod_scope.rs +++ b/crates/ra_editor/src/scope/mod_scope.rs @@ -1,4 +1,4 @@ -use libsyntax2::{ +use ra_syntax::{ AstNode, SyntaxNode, SyntaxNodeRef, SmolStr, ast::{self, AstChildren}, }; @@ -86,7 +86,7 @@ fn collect_imports(tree: ast::UseTree, acc: &mut Vec) { #[cfg(test)] mod tests { use super::*; - use libsyntax2::{File, ast::ModuleItemOwner}; + use ra_syntax::{File, ast::ModuleItemOwner}; fn do_check(code: &str, expected: &[&str]) { let file = File::parse(&code); diff --git a/crates/libeditor/src/symbols.rs b/crates/ra_editor/src/symbols.rs similarity index 99% rename from crates/libeditor/src/symbols.rs rename to crates/ra_editor/src/symbols.rs index 2f9cc92336..9179841772 100644 --- a/crates/libeditor/src/symbols.rs +++ b/crates/ra_editor/src/symbols.rs @@ -1,4 +1,4 @@ -use libsyntax2::{ +use ra_syntax::{ SyntaxKind, SyntaxNodeRef, AstNode, File, SmolStr, ast::{self, NameOwner}, algo::{ diff --git a/crates/libeditor/src/test_utils.rs b/crates/ra_editor/src/test_utils.rs similarity index 96% rename from crates/libeditor/src/test_utils.rs rename to crates/ra_editor/src/test_utils.rs index 9c1279991d..c4ea4db6c9 100644 --- a/crates/libeditor/src/test_utils.rs +++ b/crates/ra_editor/src/test_utils.rs @@ -1,4 +1,4 @@ -use libsyntax2::{File, TextUnit, TextRange}; +use ra_syntax::{File, TextUnit, TextRange}; pub use _test_utils::*; use LocalEdit; diff --git a/crates/libeditor/src/typing.rs b/crates/ra_editor/src/typing.rs similarity index 99% rename from crates/libeditor/src/typing.rs rename to crates/ra_editor/src/typing.rs index 826b16181d..0f4e7e0d02 100644 --- a/crates/libeditor/src/typing.rs +++ b/crates/ra_editor/src/typing.rs @@ -1,6 +1,6 @@ use std::mem; -use libsyntax2::{ +use ra_syntax::{ TextUnit, TextRange, SyntaxNodeRef, File, AstNode, SyntaxKind, ast, algo::{ diff --git a/crates/server/Cargo.toml b/crates/ra_lsp_server/Cargo.toml similarity index 77% rename from crates/server/Cargo.toml rename to crates/ra_lsp_server/Cargo.toml index fc20730b88..b851f70e1e 100644 --- a/crates/server/Cargo.toml +++ b/crates/ra_lsp_server/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "m" +name = "ra_lsp_server" version = "0.1.0" authors = ["Aleksey Kladov "] @@ -15,16 +15,16 @@ crossbeam-channel = "0.2.4" flexi_logger = "0.9.1" log = "0.4.3" url_serde = "0.2.0" -languageserver-types = "0.49.0" +languageserver-types = "0.50.0" walkdir = "2.2.0" im = "12.0.0" cargo_metadata = "0.6.0" text_unit = { version = "0.1.2", features = ["serde"] } smol_str = { version = "0.1.5", features = ["serde"] } -libsyntax2 = { path = "../libsyntax2" } -libeditor = { path = "../libeditor" } -libanalysis = { path = "../libanalysis" } +ra_syntax = { path = "../ra_syntax" } +ra_editor = { path = "../ra_editor" } +ra_analysis = { path = "../ra_analysis" } gen_lsp_server = { path = "../gen_lsp_server" } [dev-dependencies] diff --git a/crates/server/src/caps.rs b/crates/ra_lsp_server/src/caps.rs similarity index 100% rename from crates/server/src/caps.rs rename to crates/ra_lsp_server/src/caps.rs diff --git a/crates/server/src/conv.rs b/crates/ra_lsp_server/src/conv.rs similarity index 97% rename from crates/server/src/conv.rs rename to crates/ra_lsp_server/src/conv.rs index a59308c3fb..759e5e914c 100644 --- a/crates/server/src/conv.rs +++ b/crates/ra_lsp_server/src/conv.rs @@ -3,9 +3,9 @@ use languageserver_types::{ TextDocumentIdentifier, VersionedTextDocumentIdentifier, TextDocumentItem, TextDocumentPositionParams, TextDocumentEdit, }; -use libeditor::{LineIndex, LineCol, Edit, AtomEdit}; -use libsyntax2::{SyntaxKind, TextUnit, TextRange}; -use libanalysis::{FileId, SourceChange, SourceFileEdit, FileSystemEdit}; +use ra_editor::{LineIndex, LineCol, Edit, AtomEdit}; +use ra_syntax::{SyntaxKind, TextUnit, TextRange}; +use ra_analysis::{FileId, SourceChange, SourceFileEdit, FileSystemEdit}; use { Result, diff --git a/crates/server/src/lib.rs b/crates/ra_lsp_server/src/lib.rs similarity index 90% rename from crates/server/src/lib.rs rename to crates/ra_lsp_server/src/lib.rs index c8aebc59c6..d2f76972fd 100644 --- a/crates/server/src/lib.rs +++ b/crates/ra_lsp_server/src/lib.rs @@ -18,9 +18,9 @@ extern crate relative_path; extern crate cargo_metadata; extern crate gen_lsp_server; -extern crate libeditor; -extern crate libanalysis; -extern crate libsyntax2; +extern crate ra_editor; +extern crate ra_analysis; +extern crate ra_syntax; mod caps; pub mod req; diff --git a/crates/server/src/main.rs b/crates/ra_lsp_server/src/main.rs similarity index 88% rename from crates/server/src/main.rs rename to crates/ra_lsp_server/src/main.rs index 968b3b87ac..c547764f66 100644 --- a/crates/server/src/main.rs +++ b/crates/ra_lsp_server/src/main.rs @@ -4,11 +4,11 @@ extern crate log; extern crate failure; extern crate flexi_logger; extern crate gen_lsp_server; -extern crate m; +extern crate ra_lsp_server; use flexi_logger::{Logger, Duplicate}; use gen_lsp_server::{run_server, stdio_transport}; -use m::Result; +use ra_lsp_server::Result; fn main() -> Result<()> { ::std::env::set_var("RUST_BACKTRACE", "short"); @@ -34,12 +34,12 @@ fn main_inner() -> Result<()> { let (receiver, sender, threads) = stdio_transport(); let cwd = ::std::env::current_dir()?; run_server( - m::server_capabilities(), + ra_lsp_server::server_capabilities(), |params, r, s| { let root = params.root_uri .and_then(|it| it.to_file_path().ok()) .unwrap_or(cwd); - m::main_loop(false, root, r, s) + ra_lsp_server::main_loop(false, root, r, s) }, receiver, sender, diff --git a/crates/server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs similarity index 99% rename from crates/server/src/main_loop/handlers.rs rename to crates/ra_lsp_server/src/main_loop/handlers.rs index 3e02227d5d..568f5344ca 100644 --- a/crates/server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs @@ -7,8 +7,8 @@ use languageserver_types::{ CompletionItem, InsertTextFormat, CompletionItemKind, }; use serde_json::to_value; -use libanalysis::{Query, FileId, RunnableKind, JobToken}; -use libsyntax2::{ +use ra_analysis::{Query, FileId, RunnableKind, JobToken}; +use ra_syntax::{ text_utils::contains_offset_nonstrict, }; diff --git a/crates/server/src/main_loop/mod.rs b/crates/ra_lsp_server/src/main_loop/mod.rs similarity index 99% rename from crates/server/src/main_loop/mod.rs rename to crates/ra_lsp_server/src/main_loop/mod.rs index f3b2744bfb..2b2279e977 100644 --- a/crates/server/src/main_loop/mod.rs +++ b/crates/ra_lsp_server/src/main_loop/mod.rs @@ -10,7 +10,7 @@ use serde::{Serialize, de::DeserializeOwned}; use crossbeam_channel::{unbounded, Sender, Receiver}; use rayon::{self, ThreadPool}; use languageserver_types::{NumberOrString}; -use libanalysis::{FileId, JobHandle, JobToken, LibraryData}; +use ra_analysis::{FileId, JobHandle, JobToken, LibraryData}; use gen_lsp_server::{ RawRequest, RawNotification, RawMessage, RawResponse, ErrorCode, handle_shutdown, diff --git a/crates/server/src/main_loop/subscriptions.rs b/crates/ra_lsp_server/src/main_loop/subscriptions.rs similarity index 95% rename from crates/server/src/main_loop/subscriptions.rs rename to crates/ra_lsp_server/src/main_loop/subscriptions.rs index 963096aefe..27f92cc9a6 100644 --- a/crates/server/src/main_loop/subscriptions.rs +++ b/crates/ra_lsp_server/src/main_loop/subscriptions.rs @@ -1,5 +1,5 @@ use std::collections::HashSet; -use libanalysis::FileId; +use ra_analysis::FileId; pub struct Subscriptions { subs: HashSet, diff --git a/crates/server/src/path_map.rs b/crates/ra_lsp_server/src/path_map.rs similarity index 98% rename from crates/server/src/path_map.rs rename to crates/ra_lsp_server/src/path_map.rs index 282a03271f..19c3b1d3bc 100644 --- a/crates/server/src/path_map.rs +++ b/crates/ra_lsp_server/src/path_map.rs @@ -1,7 +1,7 @@ use std::path::{PathBuf, Path, Component}; use im; use relative_path::RelativePath; -use libanalysis::{FileId, FileResolver}; +use ra_analysis::{FileId, FileResolver}; #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum Root { diff --git a/crates/server/src/project_model.rs b/crates/ra_lsp_server/src/project_model.rs similarity index 99% rename from crates/server/src/project_model.rs rename to crates/ra_lsp_server/src/project_model.rs index 359cf787d6..5db34e3e58 100644 --- a/crates/server/src/project_model.rs +++ b/crates/ra_lsp_server/src/project_model.rs @@ -3,7 +3,7 @@ use std::{ path::{Path, PathBuf}, }; use cargo_metadata::{metadata_run, CargoOpt}; -use libsyntax2::SmolStr; +use ra_syntax::SmolStr; use { Result, diff --git a/crates/server/src/req.rs b/crates/ra_lsp_server/src/req.rs similarity index 100% rename from crates/server/src/req.rs rename to crates/ra_lsp_server/src/req.rs diff --git a/crates/server/src/server_world.rs b/crates/ra_lsp_server/src/server_world.rs similarity index 98% rename from crates/server/src/server_world.rs rename to crates/ra_lsp_server/src/server_world.rs index 6853efc00c..865f7c4917 100644 --- a/crates/server/src/server_world.rs +++ b/crates/ra_lsp_server/src/server_world.rs @@ -6,7 +6,7 @@ use std::{ }; use languageserver_types::Url; -use libanalysis::{FileId, AnalysisHost, Analysis, CrateGraph, CrateId, LibraryData, FileResolver}; +use ra_analysis::{FileId, AnalysisHost, Analysis, CrateGraph, CrateId, LibraryData, FileResolver}; use { Result, diff --git a/crates/server/src/thread_watcher.rs b/crates/ra_lsp_server/src/thread_watcher.rs similarity index 100% rename from crates/server/src/thread_watcher.rs rename to crates/ra_lsp_server/src/thread_watcher.rs diff --git a/crates/server/src/vfs.rs b/crates/ra_lsp_server/src/vfs.rs similarity index 100% rename from crates/server/src/vfs.rs rename to crates/ra_lsp_server/src/vfs.rs diff --git a/crates/server/tests/heavy_tests/main.rs b/crates/ra_lsp_server/tests/heavy_tests/main.rs similarity index 96% rename from crates/server/tests/heavy_tests/main.rs rename to crates/ra_lsp_server/tests/heavy_tests/main.rs index 50529f4539..dced45f55b 100644 --- a/crates/server/tests/heavy_tests/main.rs +++ b/crates/ra_lsp_server/tests/heavy_tests/main.rs @@ -6,11 +6,11 @@ extern crate serde; extern crate serde_json; extern crate gen_lsp_server; extern crate flexi_logger; -extern crate m; +extern crate ra_lsp_server; mod support; -use m::req::{Runnables, RunnablesParams}; +use ra_lsp_server::req::{Runnables, RunnablesParams}; use support::project; diff --git a/crates/server/tests/heavy_tests/support.rs b/crates/ra_lsp_server/tests/heavy_tests/support.rs similarity index 98% rename from crates/server/tests/heavy_tests/support.rs rename to crates/ra_lsp_server/tests/heavy_tests/support.rs index 3559140330..8fe2aa8164 100644 --- a/crates/server/tests/heavy_tests/support.rs +++ b/crates/ra_lsp_server/tests/heavy_tests/support.rs @@ -21,7 +21,7 @@ use serde::Serialize; use serde_json::{Value, from_str, to_string_pretty}; use gen_lsp_server::{RawMessage, RawRequest, RawNotification}; -use m::{main_loop, req, thread_watcher::{ThreadWatcher, Worker}}; +use ra_lsp_server::{main_loop, req, thread_watcher::{ThreadWatcher, Worker}}; pub fn project(fixture: &str) -> Server { static INIT: Once = Once::new(); diff --git a/crates/libsyntax2/Cargo.toml b/crates/ra_syntax/Cargo.toml similarity index 94% rename from crates/libsyntax2/Cargo.toml rename to crates/ra_syntax/Cargo.toml index 030cca2016..a0fd633e00 100644 --- a/crates/libsyntax2/Cargo.toml +++ b/crates/ra_syntax/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "libsyntax2" +name = "ra_syntax" version = "0.1.0" authors = ["Aleksey Kladov "] license = "MIT OR Apache-2.0" diff --git a/crates/libsyntax2/fuzz/.gitignore b/crates/ra_syntax/fuzz/.gitignore similarity index 100% rename from crates/libsyntax2/fuzz/.gitignore rename to crates/ra_syntax/fuzz/.gitignore diff --git a/crates/libsyntax2/fuzz/Cargo.toml b/crates/ra_syntax/fuzz/Cargo.toml similarity index 87% rename from crates/libsyntax2/fuzz/Cargo.toml rename to crates/ra_syntax/fuzz/Cargo.toml index 916cd5b6f1..65ded6a21b 100644 --- a/crates/libsyntax2/fuzz/Cargo.toml +++ b/crates/ra_syntax/fuzz/Cargo.toml @@ -1,6 +1,6 @@ [package] -name = "libsyntax2-fuzz" +name = "ra_syntax-fuzz" version = "0.0.1" authors = ["Automatically generated"] publish = false @@ -8,7 +8,7 @@ publish = false [package.metadata] cargo-fuzz = true -[dependencies.libsyntax2] +[dependencies.ra_syntax] path = ".." [dependencies.libfuzzer-sys] git = "https://github.com/rust-fuzz/libfuzzer-sys.git" diff --git a/crates/libsyntax2/fuzz/fuzz_targets/parser.rs b/crates/ra_syntax/fuzz/fuzz_targets/parser.rs similarity index 64% rename from crates/libsyntax2/fuzz/fuzz_targets/parser.rs rename to crates/ra_syntax/fuzz/fuzz_targets/parser.rs index da87180bb4..396c0ecaf3 100644 --- a/crates/libsyntax2/fuzz/fuzz_targets/parser.rs +++ b/crates/ra_syntax/fuzz/fuzz_targets/parser.rs @@ -1,9 +1,9 @@ #![no_main] #[macro_use] extern crate libfuzzer_sys; -extern crate libsyntax2; +extern crate ra_syntax; fuzz_target!(|data: &[u8]| { if let Ok(text) = std::str::from_utf8(data) { - libsyntax2::utils::check_fuzz_invariants(text) + ra_syntax::utils::check_fuzz_invariants(text) } }); diff --git a/crates/libsyntax2/src/algo/mod.rs b/crates/ra_syntax/src/algo/mod.rs similarity index 100% rename from crates/libsyntax2/src/algo/mod.rs rename to crates/ra_syntax/src/algo/mod.rs diff --git a/crates/libsyntax2/src/algo/visit.rs b/crates/ra_syntax/src/algo/visit.rs similarity index 100% rename from crates/libsyntax2/src/algo/visit.rs rename to crates/ra_syntax/src/algo/visit.rs diff --git a/crates/libsyntax2/src/algo/walk.rs b/crates/ra_syntax/src/algo/walk.rs similarity index 100% rename from crates/libsyntax2/src/algo/walk.rs rename to crates/ra_syntax/src/algo/walk.rs diff --git a/crates/libsyntax2/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs similarity index 100% rename from crates/libsyntax2/src/ast/generated.rs rename to crates/ra_syntax/src/ast/generated.rs diff --git a/crates/libsyntax2/src/ast/generated.rs.tera b/crates/ra_syntax/src/ast/generated.rs.tera similarity index 100% rename from crates/libsyntax2/src/ast/generated.rs.tera rename to crates/ra_syntax/src/ast/generated.rs.tera diff --git a/crates/libsyntax2/src/ast/mod.rs b/crates/ra_syntax/src/ast/mod.rs similarity index 100% rename from crates/libsyntax2/src/ast/mod.rs rename to crates/ra_syntax/src/ast/mod.rs diff --git a/crates/libsyntax2/src/grammar.ron b/crates/ra_syntax/src/grammar.ron similarity index 100% rename from crates/libsyntax2/src/grammar.ron rename to crates/ra_syntax/src/grammar.ron diff --git a/crates/libsyntax2/src/grammar/attributes.rs b/crates/ra_syntax/src/grammar/attributes.rs similarity index 100% rename from crates/libsyntax2/src/grammar/attributes.rs rename to crates/ra_syntax/src/grammar/attributes.rs diff --git a/crates/libsyntax2/src/grammar/expressions/atom.rs b/crates/ra_syntax/src/grammar/expressions/atom.rs similarity index 100% rename from crates/libsyntax2/src/grammar/expressions/atom.rs rename to crates/ra_syntax/src/grammar/expressions/atom.rs diff --git a/crates/libsyntax2/src/grammar/expressions/mod.rs b/crates/ra_syntax/src/grammar/expressions/mod.rs similarity index 100% rename from crates/libsyntax2/src/grammar/expressions/mod.rs rename to crates/ra_syntax/src/grammar/expressions/mod.rs diff --git a/crates/libsyntax2/src/grammar/items/consts.rs b/crates/ra_syntax/src/grammar/items/consts.rs similarity index 100% rename from crates/libsyntax2/src/grammar/items/consts.rs rename to crates/ra_syntax/src/grammar/items/consts.rs diff --git a/crates/libsyntax2/src/grammar/items/mod.rs b/crates/ra_syntax/src/grammar/items/mod.rs similarity index 100% rename from crates/libsyntax2/src/grammar/items/mod.rs rename to crates/ra_syntax/src/grammar/items/mod.rs diff --git a/crates/libsyntax2/src/grammar/items/nominal.rs b/crates/ra_syntax/src/grammar/items/nominal.rs similarity index 100% rename from crates/libsyntax2/src/grammar/items/nominal.rs rename to crates/ra_syntax/src/grammar/items/nominal.rs diff --git a/crates/libsyntax2/src/grammar/items/traits.rs b/crates/ra_syntax/src/grammar/items/traits.rs similarity index 100% rename from crates/libsyntax2/src/grammar/items/traits.rs rename to crates/ra_syntax/src/grammar/items/traits.rs diff --git a/crates/libsyntax2/src/grammar/items/use_item.rs b/crates/ra_syntax/src/grammar/items/use_item.rs similarity index 100% rename from crates/libsyntax2/src/grammar/items/use_item.rs rename to crates/ra_syntax/src/grammar/items/use_item.rs diff --git a/crates/libsyntax2/src/grammar/mod.rs b/crates/ra_syntax/src/grammar/mod.rs similarity index 100% rename from crates/libsyntax2/src/grammar/mod.rs rename to crates/ra_syntax/src/grammar/mod.rs diff --git a/crates/libsyntax2/src/grammar/params.rs b/crates/ra_syntax/src/grammar/params.rs similarity index 100% rename from crates/libsyntax2/src/grammar/params.rs rename to crates/ra_syntax/src/grammar/params.rs diff --git a/crates/libsyntax2/src/grammar/paths.rs b/crates/ra_syntax/src/grammar/paths.rs similarity index 100% rename from crates/libsyntax2/src/grammar/paths.rs rename to crates/ra_syntax/src/grammar/paths.rs diff --git a/crates/libsyntax2/src/grammar/patterns.rs b/crates/ra_syntax/src/grammar/patterns.rs similarity index 100% rename from crates/libsyntax2/src/grammar/patterns.rs rename to crates/ra_syntax/src/grammar/patterns.rs diff --git a/crates/libsyntax2/src/grammar/type_args.rs b/crates/ra_syntax/src/grammar/type_args.rs similarity index 100% rename from crates/libsyntax2/src/grammar/type_args.rs rename to crates/ra_syntax/src/grammar/type_args.rs diff --git a/crates/libsyntax2/src/grammar/type_params.rs b/crates/ra_syntax/src/grammar/type_params.rs similarity index 100% rename from crates/libsyntax2/src/grammar/type_params.rs rename to crates/ra_syntax/src/grammar/type_params.rs diff --git a/crates/libsyntax2/src/grammar/types.rs b/crates/ra_syntax/src/grammar/types.rs similarity index 100% rename from crates/libsyntax2/src/grammar/types.rs rename to crates/ra_syntax/src/grammar/types.rs diff --git a/crates/libsyntax2/src/lexer/classes.rs b/crates/ra_syntax/src/lexer/classes.rs similarity index 100% rename from crates/libsyntax2/src/lexer/classes.rs rename to crates/ra_syntax/src/lexer/classes.rs diff --git a/crates/libsyntax2/src/lexer/comments.rs b/crates/ra_syntax/src/lexer/comments.rs similarity index 100% rename from crates/libsyntax2/src/lexer/comments.rs rename to crates/ra_syntax/src/lexer/comments.rs diff --git a/crates/libsyntax2/src/lexer/mod.rs b/crates/ra_syntax/src/lexer/mod.rs similarity index 100% rename from crates/libsyntax2/src/lexer/mod.rs rename to crates/ra_syntax/src/lexer/mod.rs diff --git a/crates/libsyntax2/src/lexer/numbers.rs b/crates/ra_syntax/src/lexer/numbers.rs similarity index 100% rename from crates/libsyntax2/src/lexer/numbers.rs rename to crates/ra_syntax/src/lexer/numbers.rs diff --git a/crates/libsyntax2/src/lexer/ptr.rs b/crates/ra_syntax/src/lexer/ptr.rs similarity index 100% rename from crates/libsyntax2/src/lexer/ptr.rs rename to crates/ra_syntax/src/lexer/ptr.rs diff --git a/crates/libsyntax2/src/lexer/strings.rs b/crates/ra_syntax/src/lexer/strings.rs similarity index 100% rename from crates/libsyntax2/src/lexer/strings.rs rename to crates/ra_syntax/src/lexer/strings.rs diff --git a/crates/libsyntax2/src/lib.rs b/crates/ra_syntax/src/lib.rs similarity index 100% rename from crates/libsyntax2/src/lib.rs rename to crates/ra_syntax/src/lib.rs diff --git a/crates/libsyntax2/src/parser_api.rs b/crates/ra_syntax/src/parser_api.rs similarity index 100% rename from crates/libsyntax2/src/parser_api.rs rename to crates/ra_syntax/src/parser_api.rs diff --git a/crates/libsyntax2/src/parser_impl/event.rs b/crates/ra_syntax/src/parser_impl/event.rs similarity index 100% rename from crates/libsyntax2/src/parser_impl/event.rs rename to crates/ra_syntax/src/parser_impl/event.rs diff --git a/crates/libsyntax2/src/parser_impl/input.rs b/crates/ra_syntax/src/parser_impl/input.rs similarity index 100% rename from crates/libsyntax2/src/parser_impl/input.rs rename to crates/ra_syntax/src/parser_impl/input.rs diff --git a/crates/libsyntax2/src/parser_impl/mod.rs b/crates/ra_syntax/src/parser_impl/mod.rs similarity index 100% rename from crates/libsyntax2/src/parser_impl/mod.rs rename to crates/ra_syntax/src/parser_impl/mod.rs diff --git a/crates/libsyntax2/src/reparsing.rs b/crates/ra_syntax/src/reparsing.rs similarity index 100% rename from crates/libsyntax2/src/reparsing.rs rename to crates/ra_syntax/src/reparsing.rs diff --git a/crates/libsyntax2/src/syntax_kinds/generated.rs b/crates/ra_syntax/src/syntax_kinds/generated.rs similarity index 100% rename from crates/libsyntax2/src/syntax_kinds/generated.rs rename to crates/ra_syntax/src/syntax_kinds/generated.rs diff --git a/crates/libsyntax2/src/syntax_kinds/generated.rs.tera b/crates/ra_syntax/src/syntax_kinds/generated.rs.tera similarity index 100% rename from crates/libsyntax2/src/syntax_kinds/generated.rs.tera rename to crates/ra_syntax/src/syntax_kinds/generated.rs.tera diff --git a/crates/libsyntax2/src/syntax_kinds/mod.rs b/crates/ra_syntax/src/syntax_kinds/mod.rs similarity index 100% rename from crates/libsyntax2/src/syntax_kinds/mod.rs rename to crates/ra_syntax/src/syntax_kinds/mod.rs diff --git a/crates/libsyntax2/src/text_utils.rs b/crates/ra_syntax/src/text_utils.rs similarity index 100% rename from crates/libsyntax2/src/text_utils.rs rename to crates/ra_syntax/src/text_utils.rs diff --git a/crates/libsyntax2/src/token_set.rs b/crates/ra_syntax/src/token_set.rs similarity index 100% rename from crates/libsyntax2/src/token_set.rs rename to crates/ra_syntax/src/token_set.rs diff --git a/crates/libsyntax2/src/utils.rs b/crates/ra_syntax/src/utils.rs similarity index 100% rename from crates/libsyntax2/src/utils.rs rename to crates/ra_syntax/src/utils.rs diff --git a/crates/libsyntax2/src/yellow/builder.rs b/crates/ra_syntax/src/yellow/builder.rs similarity index 100% rename from crates/libsyntax2/src/yellow/builder.rs rename to crates/ra_syntax/src/yellow/builder.rs diff --git a/crates/libsyntax2/src/yellow/green.rs b/crates/ra_syntax/src/yellow/green.rs similarity index 100% rename from crates/libsyntax2/src/yellow/green.rs rename to crates/ra_syntax/src/yellow/green.rs diff --git a/crates/libsyntax2/src/yellow/mod.rs b/crates/ra_syntax/src/yellow/mod.rs similarity index 100% rename from crates/libsyntax2/src/yellow/mod.rs rename to crates/ra_syntax/src/yellow/mod.rs diff --git a/crates/libsyntax2/src/yellow/red.rs b/crates/ra_syntax/src/yellow/red.rs similarity index 100% rename from crates/libsyntax2/src/yellow/red.rs rename to crates/ra_syntax/src/yellow/red.rs diff --git a/crates/libsyntax2/src/yellow/syntax.rs b/crates/ra_syntax/src/yellow/syntax.rs similarity index 100% rename from crates/libsyntax2/src/yellow/syntax.rs rename to crates/ra_syntax/src/yellow/syntax.rs diff --git a/crates/libsyntax2/src/yellow/syntax_text.rs b/crates/ra_syntax/src/yellow/syntax_text.rs similarity index 100% rename from crates/libsyntax2/src/yellow/syntax_text.rs rename to crates/ra_syntax/src/yellow/syntax_text.rs diff --git a/crates/libsyntax2/tests/data/lexer/00012_block_comment.rs b/crates/ra_syntax/tests/data/lexer/00012_block_comment.rs similarity index 100% rename from crates/libsyntax2/tests/data/lexer/00012_block_comment.rs rename to crates/ra_syntax/tests/data/lexer/00012_block_comment.rs diff --git a/crates/libsyntax2/tests/data/lexer/00012_block_comment.txt b/crates/ra_syntax/tests/data/lexer/00012_block_comment.txt similarity index 100% rename from crates/libsyntax2/tests/data/lexer/00012_block_comment.txt rename to crates/ra_syntax/tests/data/lexer/00012_block_comment.txt diff --git a/crates/libsyntax2/tests/data/lexer/0001_hello.rs b/crates/ra_syntax/tests/data/lexer/0001_hello.rs similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0001_hello.rs rename to crates/ra_syntax/tests/data/lexer/0001_hello.rs diff --git a/crates/libsyntax2/tests/data/lexer/0001_hello.txt b/crates/ra_syntax/tests/data/lexer/0001_hello.txt similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0001_hello.txt rename to crates/ra_syntax/tests/data/lexer/0001_hello.txt diff --git a/crates/libsyntax2/tests/data/lexer/0002_whitespace.rs b/crates/ra_syntax/tests/data/lexer/0002_whitespace.rs similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0002_whitespace.rs rename to crates/ra_syntax/tests/data/lexer/0002_whitespace.rs diff --git a/crates/libsyntax2/tests/data/lexer/0002_whitespace.txt b/crates/ra_syntax/tests/data/lexer/0002_whitespace.txt similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0002_whitespace.txt rename to crates/ra_syntax/tests/data/lexer/0002_whitespace.txt diff --git a/crates/libsyntax2/tests/data/lexer/0003_ident.rs b/crates/ra_syntax/tests/data/lexer/0003_ident.rs similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0003_ident.rs rename to crates/ra_syntax/tests/data/lexer/0003_ident.rs diff --git a/crates/libsyntax2/tests/data/lexer/0003_ident.txt b/crates/ra_syntax/tests/data/lexer/0003_ident.txt similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0003_ident.txt rename to crates/ra_syntax/tests/data/lexer/0003_ident.txt diff --git a/crates/libsyntax2/tests/data/lexer/0004_numbers.rs b/crates/ra_syntax/tests/data/lexer/0004_numbers.rs similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0004_numbers.rs rename to crates/ra_syntax/tests/data/lexer/0004_numbers.rs diff --git a/crates/libsyntax2/tests/data/lexer/0004_numbers.txt b/crates/ra_syntax/tests/data/lexer/0004_numbers.txt similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0004_numbers.txt rename to crates/ra_syntax/tests/data/lexer/0004_numbers.txt diff --git a/crates/libsyntax2/tests/data/lexer/0005_symbols.rs b/crates/ra_syntax/tests/data/lexer/0005_symbols.rs similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0005_symbols.rs rename to crates/ra_syntax/tests/data/lexer/0005_symbols.rs diff --git a/crates/libsyntax2/tests/data/lexer/0005_symbols.txt b/crates/ra_syntax/tests/data/lexer/0005_symbols.txt similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0005_symbols.txt rename to crates/ra_syntax/tests/data/lexer/0005_symbols.txt diff --git a/crates/libsyntax2/tests/data/lexer/0006_chars.rs b/crates/ra_syntax/tests/data/lexer/0006_chars.rs similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0006_chars.rs rename to crates/ra_syntax/tests/data/lexer/0006_chars.rs diff --git a/crates/libsyntax2/tests/data/lexer/0006_chars.txt b/crates/ra_syntax/tests/data/lexer/0006_chars.txt similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0006_chars.txt rename to crates/ra_syntax/tests/data/lexer/0006_chars.txt diff --git a/crates/libsyntax2/tests/data/lexer/0007_lifetimes.rs b/crates/ra_syntax/tests/data/lexer/0007_lifetimes.rs similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0007_lifetimes.rs rename to crates/ra_syntax/tests/data/lexer/0007_lifetimes.rs diff --git a/crates/libsyntax2/tests/data/lexer/0007_lifetimes.txt b/crates/ra_syntax/tests/data/lexer/0007_lifetimes.txt similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0007_lifetimes.txt rename to crates/ra_syntax/tests/data/lexer/0007_lifetimes.txt diff --git a/crates/libsyntax2/tests/data/lexer/0008_byte_strings.rs b/crates/ra_syntax/tests/data/lexer/0008_byte_strings.rs similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0008_byte_strings.rs rename to crates/ra_syntax/tests/data/lexer/0008_byte_strings.rs diff --git a/crates/libsyntax2/tests/data/lexer/0008_byte_strings.txt b/crates/ra_syntax/tests/data/lexer/0008_byte_strings.txt similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0008_byte_strings.txt rename to crates/ra_syntax/tests/data/lexer/0008_byte_strings.txt diff --git a/crates/libsyntax2/tests/data/lexer/0009_strings.rs b/crates/ra_syntax/tests/data/lexer/0009_strings.rs similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0009_strings.rs rename to crates/ra_syntax/tests/data/lexer/0009_strings.rs diff --git a/crates/libsyntax2/tests/data/lexer/0009_strings.txt b/crates/ra_syntax/tests/data/lexer/0009_strings.txt similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0009_strings.txt rename to crates/ra_syntax/tests/data/lexer/0009_strings.txt diff --git a/crates/libsyntax2/tests/data/lexer/0010_comments.rs b/crates/ra_syntax/tests/data/lexer/0010_comments.rs similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0010_comments.rs rename to crates/ra_syntax/tests/data/lexer/0010_comments.rs diff --git a/crates/libsyntax2/tests/data/lexer/0010_comments.txt b/crates/ra_syntax/tests/data/lexer/0010_comments.txt similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0010_comments.txt rename to crates/ra_syntax/tests/data/lexer/0010_comments.txt diff --git a/crates/libsyntax2/tests/data/lexer/0011_keywords.rs b/crates/ra_syntax/tests/data/lexer/0011_keywords.rs similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0011_keywords.rs rename to crates/ra_syntax/tests/data/lexer/0011_keywords.rs diff --git a/crates/libsyntax2/tests/data/lexer/0011_keywords.txt b/crates/ra_syntax/tests/data/lexer/0011_keywords.txt similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0011_keywords.txt rename to crates/ra_syntax/tests/data/lexer/0011_keywords.txt diff --git a/crates/libsyntax2/tests/data/lexer/0013_raw_strings.rs b/crates/ra_syntax/tests/data/lexer/0013_raw_strings.rs similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0013_raw_strings.rs rename to crates/ra_syntax/tests/data/lexer/0013_raw_strings.rs diff --git a/crates/libsyntax2/tests/data/lexer/0013_raw_strings.txt b/crates/ra_syntax/tests/data/lexer/0013_raw_strings.txt similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0013_raw_strings.txt rename to crates/ra_syntax/tests/data/lexer/0013_raw_strings.txt diff --git a/crates/libsyntax2/tests/data/lexer/0014_unclosed_char.rs b/crates/ra_syntax/tests/data/lexer/0014_unclosed_char.rs similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0014_unclosed_char.rs rename to crates/ra_syntax/tests/data/lexer/0014_unclosed_char.rs diff --git a/crates/libsyntax2/tests/data/lexer/0014_unclosed_char.txt b/crates/ra_syntax/tests/data/lexer/0014_unclosed_char.txt similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0014_unclosed_char.txt rename to crates/ra_syntax/tests/data/lexer/0014_unclosed_char.txt diff --git a/crates/libsyntax2/tests/data/lexer/0015_unclosed_string.rs b/crates/ra_syntax/tests/data/lexer/0015_unclosed_string.rs similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0015_unclosed_string.rs rename to crates/ra_syntax/tests/data/lexer/0015_unclosed_string.rs diff --git a/crates/libsyntax2/tests/data/lexer/0015_unclosed_string.txt b/crates/ra_syntax/tests/data/lexer/0015_unclosed_string.txt similarity index 100% rename from crates/libsyntax2/tests/data/lexer/0015_unclosed_string.txt rename to crates/ra_syntax/tests/data/lexer/0015_unclosed_string.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0000_struct_field_missing_comma.rs b/crates/ra_syntax/tests/data/parser/err/0000_struct_field_missing_comma.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0000_struct_field_missing_comma.rs rename to crates/ra_syntax/tests/data/parser/err/0000_struct_field_missing_comma.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0000_struct_field_missing_comma.txt b/crates/ra_syntax/tests/data/parser/err/0000_struct_field_missing_comma.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0000_struct_field_missing_comma.txt rename to crates/ra_syntax/tests/data/parser/err/0000_struct_field_missing_comma.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0001_item_recovery_in_file.rs b/crates/ra_syntax/tests/data/parser/err/0001_item_recovery_in_file.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0001_item_recovery_in_file.rs rename to crates/ra_syntax/tests/data/parser/err/0001_item_recovery_in_file.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0001_item_recovery_in_file.txt b/crates/ra_syntax/tests/data/parser/err/0001_item_recovery_in_file.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0001_item_recovery_in_file.txt rename to crates/ra_syntax/tests/data/parser/err/0001_item_recovery_in_file.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0002_duplicate_shebang.rs b/crates/ra_syntax/tests/data/parser/err/0002_duplicate_shebang.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0002_duplicate_shebang.rs rename to crates/ra_syntax/tests/data/parser/err/0002_duplicate_shebang.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0002_duplicate_shebang.txt b/crates/ra_syntax/tests/data/parser/err/0002_duplicate_shebang.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0002_duplicate_shebang.txt rename to crates/ra_syntax/tests/data/parser/err/0002_duplicate_shebang.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0003_C++_semicolon.rs b/crates/ra_syntax/tests/data/parser/err/0003_C++_semicolon.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0003_C++_semicolon.rs rename to crates/ra_syntax/tests/data/parser/err/0003_C++_semicolon.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0003_C++_semicolon.txt b/crates/ra_syntax/tests/data/parser/err/0003_C++_semicolon.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0003_C++_semicolon.txt rename to crates/ra_syntax/tests/data/parser/err/0003_C++_semicolon.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0004_use_path_bad_segment.rs b/crates/ra_syntax/tests/data/parser/err/0004_use_path_bad_segment.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0004_use_path_bad_segment.rs rename to crates/ra_syntax/tests/data/parser/err/0004_use_path_bad_segment.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0004_use_path_bad_segment.txt b/crates/ra_syntax/tests/data/parser/err/0004_use_path_bad_segment.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0004_use_path_bad_segment.txt rename to crates/ra_syntax/tests/data/parser/err/0004_use_path_bad_segment.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0005_attribute_recover.rs b/crates/ra_syntax/tests/data/parser/err/0005_attribute_recover.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0005_attribute_recover.rs rename to crates/ra_syntax/tests/data/parser/err/0005_attribute_recover.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0005_attribute_recover.txt b/crates/ra_syntax/tests/data/parser/err/0005_attribute_recover.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0005_attribute_recover.txt rename to crates/ra_syntax/tests/data/parser/err/0005_attribute_recover.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0006_named_field_recovery.rs b/crates/ra_syntax/tests/data/parser/err/0006_named_field_recovery.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0006_named_field_recovery.rs rename to crates/ra_syntax/tests/data/parser/err/0006_named_field_recovery.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0006_named_field_recovery.txt b/crates/ra_syntax/tests/data/parser/err/0006_named_field_recovery.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0006_named_field_recovery.txt rename to crates/ra_syntax/tests/data/parser/err/0006_named_field_recovery.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0007_stray_curly_in_file.rs b/crates/ra_syntax/tests/data/parser/err/0007_stray_curly_in_file.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0007_stray_curly_in_file.rs rename to crates/ra_syntax/tests/data/parser/err/0007_stray_curly_in_file.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0007_stray_curly_in_file.txt b/crates/ra_syntax/tests/data/parser/err/0007_stray_curly_in_file.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0007_stray_curly_in_file.txt rename to crates/ra_syntax/tests/data/parser/err/0007_stray_curly_in_file.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0008_item_block_recovery.rs b/crates/ra_syntax/tests/data/parser/err/0008_item_block_recovery.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0008_item_block_recovery.rs rename to crates/ra_syntax/tests/data/parser/err/0008_item_block_recovery.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0008_item_block_recovery.txt b/crates/ra_syntax/tests/data/parser/err/0008_item_block_recovery.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0008_item_block_recovery.txt rename to crates/ra_syntax/tests/data/parser/err/0008_item_block_recovery.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0009_broken_struct_type_parameter.rs b/crates/ra_syntax/tests/data/parser/err/0009_broken_struct_type_parameter.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0009_broken_struct_type_parameter.rs rename to crates/ra_syntax/tests/data/parser/err/0009_broken_struct_type_parameter.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0009_broken_struct_type_parameter.txt b/crates/ra_syntax/tests/data/parser/err/0009_broken_struct_type_parameter.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0009_broken_struct_type_parameter.txt rename to crates/ra_syntax/tests/data/parser/err/0009_broken_struct_type_parameter.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0010_unsafe_lambda_block.rs b/crates/ra_syntax/tests/data/parser/err/0010_unsafe_lambda_block.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0010_unsafe_lambda_block.rs rename to crates/ra_syntax/tests/data/parser/err/0010_unsafe_lambda_block.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0010_unsafe_lambda_block.txt b/crates/ra_syntax/tests/data/parser/err/0010_unsafe_lambda_block.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0010_unsafe_lambda_block.txt rename to crates/ra_syntax/tests/data/parser/err/0010_unsafe_lambda_block.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0011_extern_struct.rs b/crates/ra_syntax/tests/data/parser/err/0011_extern_struct.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0011_extern_struct.rs rename to crates/ra_syntax/tests/data/parser/err/0011_extern_struct.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0011_extern_struct.txt b/crates/ra_syntax/tests/data/parser/err/0011_extern_struct.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0011_extern_struct.txt rename to crates/ra_syntax/tests/data/parser/err/0011_extern_struct.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0012_broken_lambda.txt b/crates/ra_syntax/tests/data/parser/err/0012_broken_lambda.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0012_broken_lambda.txt rename to crates/ra_syntax/tests/data/parser/err/0012_broken_lambda.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0013_invalid_type.rs b/crates/ra_syntax/tests/data/parser/err/0013_invalid_type.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0013_invalid_type.rs rename to crates/ra_syntax/tests/data/parser/err/0013_invalid_type.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0013_invalid_type.txt b/crates/ra_syntax/tests/data/parser/err/0013_invalid_type.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0013_invalid_type.txt rename to crates/ra_syntax/tests/data/parser/err/0013_invalid_type.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0014_where_no_bounds.rs b/crates/ra_syntax/tests/data/parser/err/0014_where_no_bounds.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0014_where_no_bounds.rs rename to crates/ra_syntax/tests/data/parser/err/0014_where_no_bounds.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0014_where_no_bounds.txt b/crates/ra_syntax/tests/data/parser/err/0014_where_no_bounds.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0014_where_no_bounds.txt rename to crates/ra_syntax/tests/data/parser/err/0014_where_no_bounds.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0015_curly_in_params.rs b/crates/ra_syntax/tests/data/parser/err/0015_curly_in_params.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0015_curly_in_params.rs rename to crates/ra_syntax/tests/data/parser/err/0015_curly_in_params.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0015_curly_in_params.txt b/crates/ra_syntax/tests/data/parser/err/0015_curly_in_params.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0015_curly_in_params.txt rename to crates/ra_syntax/tests/data/parser/err/0015_curly_in_params.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0016_missing_semi.rs b/crates/ra_syntax/tests/data/parser/err/0016_missing_semi.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0016_missing_semi.rs rename to crates/ra_syntax/tests/data/parser/err/0016_missing_semi.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0016_missing_semi.txt b/crates/ra_syntax/tests/data/parser/err/0016_missing_semi.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0016_missing_semi.txt rename to crates/ra_syntax/tests/data/parser/err/0016_missing_semi.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0017_incomplete_binexpr.rs b/crates/ra_syntax/tests/data/parser/err/0017_incomplete_binexpr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0017_incomplete_binexpr.rs rename to crates/ra_syntax/tests/data/parser/err/0017_incomplete_binexpr.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0017_incomplete_binexpr.txt b/crates/ra_syntax/tests/data/parser/err/0017_incomplete_binexpr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0017_incomplete_binexpr.txt rename to crates/ra_syntax/tests/data/parser/err/0017_incomplete_binexpr.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0018_incomplete_fn.rs b/crates/ra_syntax/tests/data/parser/err/0018_incomplete_fn.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0018_incomplete_fn.rs rename to crates/ra_syntax/tests/data/parser/err/0018_incomplete_fn.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0018_incomplete_fn.txt b/crates/ra_syntax/tests/data/parser/err/0018_incomplete_fn.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0018_incomplete_fn.txt rename to crates/ra_syntax/tests/data/parser/err/0018_incomplete_fn.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0019_let_recover.rs b/crates/ra_syntax/tests/data/parser/err/0019_let_recover.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0019_let_recover.rs rename to crates/ra_syntax/tests/data/parser/err/0019_let_recover.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0019_let_recover.txt b/crates/ra_syntax/tests/data/parser/err/0019_let_recover.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0019_let_recover.txt rename to crates/ra_syntax/tests/data/parser/err/0019_let_recover.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0020_fn_recover.rs b/crates/ra_syntax/tests/data/parser/err/0020_fn_recover.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0020_fn_recover.rs rename to crates/ra_syntax/tests/data/parser/err/0020_fn_recover.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0020_fn_recover.txt b/crates/ra_syntax/tests/data/parser/err/0020_fn_recover.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0020_fn_recover.txt rename to crates/ra_syntax/tests/data/parser/err/0020_fn_recover.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0021_incomplete_param.rs b/crates/ra_syntax/tests/data/parser/err/0021_incomplete_param.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0021_incomplete_param.rs rename to crates/ra_syntax/tests/data/parser/err/0021_incomplete_param.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0021_incomplete_param.txt b/crates/ra_syntax/tests/data/parser/err/0021_incomplete_param.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0021_incomplete_param.txt rename to crates/ra_syntax/tests/data/parser/err/0021_incomplete_param.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0022_bad_exprs.rs b/crates/ra_syntax/tests/data/parser/err/0022_bad_exprs.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0022_bad_exprs.rs rename to crates/ra_syntax/tests/data/parser/err/0022_bad_exprs.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0022_bad_exprs.txt b/crates/ra_syntax/tests/data/parser/err/0022_bad_exprs.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0022_bad_exprs.txt rename to crates/ra_syntax/tests/data/parser/err/0022_bad_exprs.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0023_mismatched_paren.rs b/crates/ra_syntax/tests/data/parser/err/0023_mismatched_paren.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0023_mismatched_paren.rs rename to crates/ra_syntax/tests/data/parser/err/0023_mismatched_paren.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0023_mismatched_paren.txt b/crates/ra_syntax/tests/data/parser/err/0023_mismatched_paren.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0023_mismatched_paren.txt rename to crates/ra_syntax/tests/data/parser/err/0023_mismatched_paren.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0024_many_type_parens.rs b/crates/ra_syntax/tests/data/parser/err/0024_many_type_parens.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0024_many_type_parens.rs rename to crates/ra_syntax/tests/data/parser/err/0024_many_type_parens.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0024_many_type_parens.txt b/crates/ra_syntax/tests/data/parser/err/0024_many_type_parens.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0024_many_type_parens.txt rename to crates/ra_syntax/tests/data/parser/err/0024_many_type_parens.txt diff --git a/crates/libsyntax2/tests/data/parser/err/0025_nope.rs b/crates/ra_syntax/tests/data/parser/err/0025_nope.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0025_nope.rs rename to crates/ra_syntax/tests/data/parser/err/0025_nope.rs diff --git a/crates/libsyntax2/tests/data/parser/err/0025_nope.txt b/crates/ra_syntax/tests/data/parser/err/0025_nope.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/err/0025_nope.txt rename to crates/ra_syntax/tests/data/parser/err/0025_nope.txt diff --git a/crates/libsyntax2/tests/data/parser/fuzz-failures/0000.rs b/crates/ra_syntax/tests/data/parser/fuzz-failures/0000.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/fuzz-failures/0000.rs rename to crates/ra_syntax/tests/data/parser/fuzz-failures/0000.rs diff --git a/crates/libsyntax2/tests/data/parser/fuzz-failures/0001.rs b/crates/ra_syntax/tests/data/parser/fuzz-failures/0001.rs similarity index 99% rename from crates/libsyntax2/tests/data/parser/fuzz-failures/0001.rs rename to crates/ra_syntax/tests/data/parser/fuzz-failures/0001.rs index cf98cf7a77..099cc5f84a 100644 --- a/crates/libsyntax2/tests/data/parser/fuzz-failures/0001.rs +++ b/crates/ra_syntax/tests/data/parser/fuzz-failures/0001.rs @@ -1,4 +1,4 @@ -use libsyntax2::{ +use ra_syntax::{ File, TextRange, SyntaxNodeRef, TextUnit, SyntaxKind::*, algo::{find_leaf_at_offset, LeafAtOffset, find_covering_node, ancestors, Direction, siblings}, diff --git a/crates/libsyntax2/tests/data/parser/inline/0001_const_unsafe_fn.rs b/crates/ra_syntax/tests/data/parser/inline/0001_const_unsafe_fn.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0001_const_unsafe_fn.rs rename to crates/ra_syntax/tests/data/parser/inline/0001_const_unsafe_fn.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0001_const_unsafe_fn.txt b/crates/ra_syntax/tests/data/parser/inline/0001_const_unsafe_fn.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0001_const_unsafe_fn.txt rename to crates/ra_syntax/tests/data/parser/inline/0001_const_unsafe_fn.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0002_const_fn.rs b/crates/ra_syntax/tests/data/parser/inline/0002_const_fn.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0002_const_fn.rs rename to crates/ra_syntax/tests/data/parser/inline/0002_const_fn.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0002_const_fn.txt b/crates/ra_syntax/tests/data/parser/inline/0002_const_fn.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0002_const_fn.txt rename to crates/ra_syntax/tests/data/parser/inline/0002_const_fn.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0003_extern_block.rs b/crates/ra_syntax/tests/data/parser/inline/0003_extern_block.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0003_extern_block.rs rename to crates/ra_syntax/tests/data/parser/inline/0003_extern_block.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0003_extern_block.txt b/crates/ra_syntax/tests/data/parser/inline/0003_extern_block.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0003_extern_block.txt rename to crates/ra_syntax/tests/data/parser/inline/0003_extern_block.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0004_extern_fn.rs b/crates/ra_syntax/tests/data/parser/inline/0004_extern_fn.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0004_extern_fn.rs rename to crates/ra_syntax/tests/data/parser/inline/0004_extern_fn.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0004_extern_fn.txt b/crates/ra_syntax/tests/data/parser/inline/0004_extern_fn.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0004_extern_fn.txt rename to crates/ra_syntax/tests/data/parser/inline/0004_extern_fn.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0005_extern_crate.rs b/crates/ra_syntax/tests/data/parser/inline/0005_extern_crate.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0005_extern_crate.rs rename to crates/ra_syntax/tests/data/parser/inline/0005_extern_crate.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0005_extern_crate.txt b/crates/ra_syntax/tests/data/parser/inline/0005_extern_crate.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0005_extern_crate.txt rename to crates/ra_syntax/tests/data/parser/inline/0005_extern_crate.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0007_unsafe_trait.rs b/crates/ra_syntax/tests/data/parser/inline/0007_unsafe_trait.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0007_unsafe_trait.rs rename to crates/ra_syntax/tests/data/parser/inline/0007_unsafe_trait.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0007_unsafe_trait.txt b/crates/ra_syntax/tests/data/parser/inline/0007_unsafe_trait.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0007_unsafe_trait.txt rename to crates/ra_syntax/tests/data/parser/inline/0007_unsafe_trait.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0008_unsafe_impl.rs b/crates/ra_syntax/tests/data/parser/inline/0008_unsafe_impl.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0008_unsafe_impl.rs rename to crates/ra_syntax/tests/data/parser/inline/0008_unsafe_impl.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0008_unsafe_impl.txt b/crates/ra_syntax/tests/data/parser/inline/0008_unsafe_impl.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0008_unsafe_impl.txt rename to crates/ra_syntax/tests/data/parser/inline/0008_unsafe_impl.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0009_unsafe_auto_trait.rs b/crates/ra_syntax/tests/data/parser/inline/0009_unsafe_auto_trait.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0009_unsafe_auto_trait.rs rename to crates/ra_syntax/tests/data/parser/inline/0009_unsafe_auto_trait.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0009_unsafe_auto_trait.txt b/crates/ra_syntax/tests/data/parser/inline/0009_unsafe_auto_trait.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0009_unsafe_auto_trait.txt rename to crates/ra_syntax/tests/data/parser/inline/0009_unsafe_auto_trait.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0010_unsafe_default_impl.rs b/crates/ra_syntax/tests/data/parser/inline/0010_unsafe_default_impl.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0010_unsafe_default_impl.rs rename to crates/ra_syntax/tests/data/parser/inline/0010_unsafe_default_impl.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0010_unsafe_default_impl.txt b/crates/ra_syntax/tests/data/parser/inline/0010_unsafe_default_impl.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0010_unsafe_default_impl.txt rename to crates/ra_syntax/tests/data/parser/inline/0010_unsafe_default_impl.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0011_unsafe_fn.rs b/crates/ra_syntax/tests/data/parser/inline/0011_unsafe_fn.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0011_unsafe_fn.rs rename to crates/ra_syntax/tests/data/parser/inline/0011_unsafe_fn.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0011_unsafe_fn.txt b/crates/ra_syntax/tests/data/parser/inline/0011_unsafe_fn.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0011_unsafe_fn.txt rename to crates/ra_syntax/tests/data/parser/inline/0011_unsafe_fn.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0012_unsafe_extern_fn.rs b/crates/ra_syntax/tests/data/parser/inline/0012_unsafe_extern_fn.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0012_unsafe_extern_fn.rs rename to crates/ra_syntax/tests/data/parser/inline/0012_unsafe_extern_fn.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0012_unsafe_extern_fn.txt b/crates/ra_syntax/tests/data/parser/inline/0012_unsafe_extern_fn.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0012_unsafe_extern_fn.txt rename to crates/ra_syntax/tests/data/parser/inline/0012_unsafe_extern_fn.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0013_unsafe_block_in_mod.rs b/crates/ra_syntax/tests/data/parser/inline/0013_unsafe_block_in_mod.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0013_unsafe_block_in_mod.rs rename to crates/ra_syntax/tests/data/parser/inline/0013_unsafe_block_in_mod.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0013_unsafe_block_in_mod.txt b/crates/ra_syntax/tests/data/parser/inline/0013_unsafe_block_in_mod.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0013_unsafe_block_in_mod.txt rename to crates/ra_syntax/tests/data/parser/inline/0013_unsafe_block_in_mod.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0014_type_item_type_params.rs b/crates/ra_syntax/tests/data/parser/inline/0014_type_item_type_params.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0014_type_item_type_params.rs rename to crates/ra_syntax/tests/data/parser/inline/0014_type_item_type_params.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0014_type_item_type_params.txt b/crates/ra_syntax/tests/data/parser/inline/0014_type_item_type_params.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0014_type_item_type_params.txt rename to crates/ra_syntax/tests/data/parser/inline/0014_type_item_type_params.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0015_type_item.rs b/crates/ra_syntax/tests/data/parser/inline/0015_type_item.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0015_type_item.rs rename to crates/ra_syntax/tests/data/parser/inline/0015_type_item.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0015_type_item.txt b/crates/ra_syntax/tests/data/parser/inline/0015_type_item.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0015_type_item.txt rename to crates/ra_syntax/tests/data/parser/inline/0015_type_item.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0016_type_item_where_clause.rs b/crates/ra_syntax/tests/data/parser/inline/0016_type_item_where_clause.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0016_type_item_where_clause.rs rename to crates/ra_syntax/tests/data/parser/inline/0016_type_item_where_clause.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0016_type_item_where_clause.txt b/crates/ra_syntax/tests/data/parser/inline/0016_type_item_where_clause.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0016_type_item_where_clause.txt rename to crates/ra_syntax/tests/data/parser/inline/0016_type_item_where_clause.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0017_paren_type.rs b/crates/ra_syntax/tests/data/parser/inline/0017_paren_type.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0017_paren_type.rs rename to crates/ra_syntax/tests/data/parser/inline/0017_paren_type.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0017_paren_type.txt b/crates/ra_syntax/tests/data/parser/inline/0017_paren_type.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0017_paren_type.txt rename to crates/ra_syntax/tests/data/parser/inline/0017_paren_type.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0018_unit_type.rs b/crates/ra_syntax/tests/data/parser/inline/0018_unit_type.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0018_unit_type.rs rename to crates/ra_syntax/tests/data/parser/inline/0018_unit_type.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0018_unit_type.txt b/crates/ra_syntax/tests/data/parser/inline/0018_unit_type.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0018_unit_type.txt rename to crates/ra_syntax/tests/data/parser/inline/0018_unit_type.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0019_singleton_tuple_type.rs b/crates/ra_syntax/tests/data/parser/inline/0019_singleton_tuple_type.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0019_singleton_tuple_type.rs rename to crates/ra_syntax/tests/data/parser/inline/0019_singleton_tuple_type.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0019_singleton_tuple_type.txt b/crates/ra_syntax/tests/data/parser/inline/0019_singleton_tuple_type.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0019_singleton_tuple_type.txt rename to crates/ra_syntax/tests/data/parser/inline/0019_singleton_tuple_type.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0020_never_type.rs b/crates/ra_syntax/tests/data/parser/inline/0020_never_type.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0020_never_type.rs rename to crates/ra_syntax/tests/data/parser/inline/0020_never_type.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0020_never_type.txt b/crates/ra_syntax/tests/data/parser/inline/0020_never_type.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0020_never_type.txt rename to crates/ra_syntax/tests/data/parser/inline/0020_never_type.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0021_pointer_type_no_mutability.rs b/crates/ra_syntax/tests/data/parser/inline/0021_pointer_type_no_mutability.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0021_pointer_type_no_mutability.rs rename to crates/ra_syntax/tests/data/parser/inline/0021_pointer_type_no_mutability.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0021_pointer_type_no_mutability.txt b/crates/ra_syntax/tests/data/parser/inline/0021_pointer_type_no_mutability.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0021_pointer_type_no_mutability.txt rename to crates/ra_syntax/tests/data/parser/inline/0021_pointer_type_no_mutability.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0022_pointer_type_mut.rs b/crates/ra_syntax/tests/data/parser/inline/0022_pointer_type_mut.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0022_pointer_type_mut.rs rename to crates/ra_syntax/tests/data/parser/inline/0022_pointer_type_mut.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0022_pointer_type_mut.txt b/crates/ra_syntax/tests/data/parser/inline/0022_pointer_type_mut.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0022_pointer_type_mut.txt rename to crates/ra_syntax/tests/data/parser/inline/0022_pointer_type_mut.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0023_array_type_missing_semi.rs b/crates/ra_syntax/tests/data/parser/inline/0023_array_type_missing_semi.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0023_array_type_missing_semi.rs rename to crates/ra_syntax/tests/data/parser/inline/0023_array_type_missing_semi.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0023_array_type_missing_semi.txt b/crates/ra_syntax/tests/data/parser/inline/0023_array_type_missing_semi.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0023_array_type_missing_semi.txt rename to crates/ra_syntax/tests/data/parser/inline/0023_array_type_missing_semi.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0024_array_type.rs b/crates/ra_syntax/tests/data/parser/inline/0024_array_type.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0024_array_type.rs rename to crates/ra_syntax/tests/data/parser/inline/0024_array_type.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0024_array_type.txt b/crates/ra_syntax/tests/data/parser/inline/0024_array_type.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0024_array_type.txt rename to crates/ra_syntax/tests/data/parser/inline/0024_array_type.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0025_slice_type.rs b/crates/ra_syntax/tests/data/parser/inline/0025_slice_type.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0025_slice_type.rs rename to crates/ra_syntax/tests/data/parser/inline/0025_slice_type.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0025_slice_type.txt b/crates/ra_syntax/tests/data/parser/inline/0025_slice_type.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0025_slice_type.txt rename to crates/ra_syntax/tests/data/parser/inline/0025_slice_type.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0026_reference_type;.rs b/crates/ra_syntax/tests/data/parser/inline/0026_reference_type;.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0026_reference_type;.rs rename to crates/ra_syntax/tests/data/parser/inline/0026_reference_type;.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0026_reference_type;.txt b/crates/ra_syntax/tests/data/parser/inline/0026_reference_type;.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0026_reference_type;.txt rename to crates/ra_syntax/tests/data/parser/inline/0026_reference_type;.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0027_placeholder_type.rs b/crates/ra_syntax/tests/data/parser/inline/0027_placeholder_type.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0027_placeholder_type.rs rename to crates/ra_syntax/tests/data/parser/inline/0027_placeholder_type.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0027_placeholder_type.txt b/crates/ra_syntax/tests/data/parser/inline/0027_placeholder_type.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0027_placeholder_type.txt rename to crates/ra_syntax/tests/data/parser/inline/0027_placeholder_type.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0028_fn_pointer_type.rs b/crates/ra_syntax/tests/data/parser/inline/0028_fn_pointer_type.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0028_fn_pointer_type.rs rename to crates/ra_syntax/tests/data/parser/inline/0028_fn_pointer_type.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0028_fn_pointer_type.txt b/crates/ra_syntax/tests/data/parser/inline/0028_fn_pointer_type.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0028_fn_pointer_type.txt rename to crates/ra_syntax/tests/data/parser/inline/0028_fn_pointer_type.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0029_fn_pointer_type_missing_fn.rs b/crates/ra_syntax/tests/data/parser/inline/0029_fn_pointer_type_missing_fn.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0029_fn_pointer_type_missing_fn.rs rename to crates/ra_syntax/tests/data/parser/inline/0029_fn_pointer_type_missing_fn.rs diff --git a/crates/libsyntax2/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 similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0029_fn_pointer_type_missing_fn.txt rename to crates/ra_syntax/tests/data/parser/inline/0029_fn_pointer_type_missing_fn.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0030_fn_pointer_type_with_ret.rs b/crates/ra_syntax/tests/data/parser/inline/0030_fn_pointer_type_with_ret.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0030_fn_pointer_type_with_ret.rs rename to crates/ra_syntax/tests/data/parser/inline/0030_fn_pointer_type_with_ret.rs diff --git a/crates/libsyntax2/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 similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0030_fn_pointer_type_with_ret.txt rename to crates/ra_syntax/tests/data/parser/inline/0030_fn_pointer_type_with_ret.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0031_for_type.rs b/crates/ra_syntax/tests/data/parser/inline/0031_for_type.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0031_for_type.rs rename to crates/ra_syntax/tests/data/parser/inline/0031_for_type.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0031_for_type.txt b/crates/ra_syntax/tests/data/parser/inline/0031_for_type.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0031_for_type.txt rename to crates/ra_syntax/tests/data/parser/inline/0031_for_type.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0032_path_type.rs b/crates/ra_syntax/tests/data/parser/inline/0032_path_type.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0032_path_type.rs rename to crates/ra_syntax/tests/data/parser/inline/0032_path_type.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0032_path_type.txt b/crates/ra_syntax/tests/data/parser/inline/0032_path_type.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0032_path_type.txt rename to crates/ra_syntax/tests/data/parser/inline/0032_path_type.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0034_bind_pat.rs b/crates/ra_syntax/tests/data/parser/inline/0034_bind_pat.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0034_bind_pat.rs rename to crates/ra_syntax/tests/data/parser/inline/0034_bind_pat.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0034_bind_pat.txt b/crates/ra_syntax/tests/data/parser/inline/0034_bind_pat.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0034_bind_pat.txt rename to crates/ra_syntax/tests/data/parser/inline/0034_bind_pat.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0035_ref_pat.rs b/crates/ra_syntax/tests/data/parser/inline/0035_ref_pat.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0035_ref_pat.rs rename to crates/ra_syntax/tests/data/parser/inline/0035_ref_pat.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0035_ref_pat.txt b/crates/ra_syntax/tests/data/parser/inline/0035_ref_pat.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0035_ref_pat.txt rename to crates/ra_syntax/tests/data/parser/inline/0035_ref_pat.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0036_placeholder_pat.rs b/crates/ra_syntax/tests/data/parser/inline/0036_placeholder_pat.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0036_placeholder_pat.rs rename to crates/ra_syntax/tests/data/parser/inline/0036_placeholder_pat.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0036_placeholder_pat.txt b/crates/ra_syntax/tests/data/parser/inline/0036_placeholder_pat.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0036_placeholder_pat.txt rename to crates/ra_syntax/tests/data/parser/inline/0036_placeholder_pat.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0037_crate_visibility.rs b/crates/ra_syntax/tests/data/parser/inline/0037_crate_visibility.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0037_crate_visibility.rs rename to crates/ra_syntax/tests/data/parser/inline/0037_crate_visibility.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0037_crate_visibility.txt b/crates/ra_syntax/tests/data/parser/inline/0037_crate_visibility.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0037_crate_visibility.txt rename to crates/ra_syntax/tests/data/parser/inline/0037_crate_visibility.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0038_function_ret_type.rs b/crates/ra_syntax/tests/data/parser/inline/0038_function_ret_type.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0038_function_ret_type.rs rename to crates/ra_syntax/tests/data/parser/inline/0038_function_ret_type.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0038_function_ret_type.txt b/crates/ra_syntax/tests/data/parser/inline/0038_function_ret_type.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0038_function_ret_type.txt rename to crates/ra_syntax/tests/data/parser/inline/0038_function_ret_type.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0039_path_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0039_path_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0039_path_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0039_path_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0039_path_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0039_path_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0039_path_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0039_path_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0040_expr_literals.rs b/crates/ra_syntax/tests/data/parser/inline/0040_expr_literals.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0040_expr_literals.rs rename to crates/ra_syntax/tests/data/parser/inline/0040_expr_literals.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0040_expr_literals.txt b/crates/ra_syntax/tests/data/parser/inline/0040_expr_literals.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0040_expr_literals.txt rename to crates/ra_syntax/tests/data/parser/inline/0040_expr_literals.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0041_type_param_bounds.rs b/crates/ra_syntax/tests/data/parser/inline/0041_type_param_bounds.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0041_type_param_bounds.rs rename to crates/ra_syntax/tests/data/parser/inline/0041_type_param_bounds.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0041_type_param_bounds.txt b/crates/ra_syntax/tests/data/parser/inline/0041_type_param_bounds.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0041_type_param_bounds.txt rename to crates/ra_syntax/tests/data/parser/inline/0041_type_param_bounds.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0042_type_param_default.rs b/crates/ra_syntax/tests/data/parser/inline/0042_type_param_default.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0042_type_param_default.rs rename to crates/ra_syntax/tests/data/parser/inline/0042_type_param_default.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0042_type_param_default.txt b/crates/ra_syntax/tests/data/parser/inline/0042_type_param_default.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0042_type_param_default.txt rename to crates/ra_syntax/tests/data/parser/inline/0042_type_param_default.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0043_call_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0043_call_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0043_call_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0043_call_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0043_call_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0043_call_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0043_call_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0043_call_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0044_ref_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0044_ref_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0044_ref_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0044_ref_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0044_ref_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0044_ref_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0044_ref_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0044_ref_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0045_block.rs b/crates/ra_syntax/tests/data/parser/inline/0045_block.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0045_block.rs rename to crates/ra_syntax/tests/data/parser/inline/0045_block.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0045_block.txt b/crates/ra_syntax/tests/data/parser/inline/0045_block.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0045_block.txt rename to crates/ra_syntax/tests/data/parser/inline/0045_block.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0046_default_impl.rs b/crates/ra_syntax/tests/data/parser/inline/0046_default_impl.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0046_default_impl.rs rename to crates/ra_syntax/tests/data/parser/inline/0046_default_impl.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0046_default_impl.txt b/crates/ra_syntax/tests/data/parser/inline/0046_default_impl.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0046_default_impl.txt rename to crates/ra_syntax/tests/data/parser/inline/0046_default_impl.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0047_impl_item.rs b/crates/ra_syntax/tests/data/parser/inline/0047_impl_item.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0047_impl_item.rs rename to crates/ra_syntax/tests/data/parser/inline/0047_impl_item.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0047_impl_item.txt b/crates/ra_syntax/tests/data/parser/inline/0047_impl_item.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0047_impl_item.txt rename to crates/ra_syntax/tests/data/parser/inline/0047_impl_item.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0048_impl_item_neg.rs b/crates/ra_syntax/tests/data/parser/inline/0048_impl_item_neg.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0048_impl_item_neg.rs rename to crates/ra_syntax/tests/data/parser/inline/0048_impl_item_neg.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0048_impl_item_neg.txt b/crates/ra_syntax/tests/data/parser/inline/0048_impl_item_neg.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0048_impl_item_neg.txt rename to crates/ra_syntax/tests/data/parser/inline/0048_impl_item_neg.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0049_trait_item_list.rs b/crates/ra_syntax/tests/data/parser/inline/0049_trait_item_list.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0049_trait_item_list.rs rename to crates/ra_syntax/tests/data/parser/inline/0049_trait_item_list.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0049_trait_item_list.txt b/crates/ra_syntax/tests/data/parser/inline/0049_trait_item_list.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0049_trait_item_list.txt rename to crates/ra_syntax/tests/data/parser/inline/0049_trait_item_list.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0050_let_stmt;.rs b/crates/ra_syntax/tests/data/parser/inline/0050_let_stmt;.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0050_let_stmt;.rs rename to crates/ra_syntax/tests/data/parser/inline/0050_let_stmt;.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0050_let_stmt;.txt b/crates/ra_syntax/tests/data/parser/inline/0050_let_stmt;.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0050_let_stmt;.txt rename to crates/ra_syntax/tests/data/parser/inline/0050_let_stmt;.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0051_method_call_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0051_method_call_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0051_method_call_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0051_method_call_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0051_method_call_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0051_method_call_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0051_method_call_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0051_method_call_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0052_field_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0052_field_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0052_field_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0052_field_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0052_field_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0052_field_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0052_field_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0052_field_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0053_block_items.rs b/crates/ra_syntax/tests/data/parser/inline/0053_block_items.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0053_block_items.rs rename to crates/ra_syntax/tests/data/parser/inline/0053_block_items.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0053_block_items.txt b/crates/ra_syntax/tests/data/parser/inline/0053_block_items.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0053_block_items.txt rename to crates/ra_syntax/tests/data/parser/inline/0053_block_items.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0054_field_pat_list.rs b/crates/ra_syntax/tests/data/parser/inline/0054_field_pat_list.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0054_field_pat_list.rs rename to crates/ra_syntax/tests/data/parser/inline/0054_field_pat_list.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0054_field_pat_list.txt b/crates/ra_syntax/tests/data/parser/inline/0054_field_pat_list.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0054_field_pat_list.txt rename to crates/ra_syntax/tests/data/parser/inline/0054_field_pat_list.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0055_self_param.rs b/crates/ra_syntax/tests/data/parser/inline/0055_self_param.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0055_self_param.rs rename to crates/ra_syntax/tests/data/parser/inline/0055_self_param.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0055_self_param.txt b/crates/ra_syntax/tests/data/parser/inline/0055_self_param.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0055_self_param.txt rename to crates/ra_syntax/tests/data/parser/inline/0055_self_param.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0056_trait_item.rs b/crates/ra_syntax/tests/data/parser/inline/0056_trait_item.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0056_trait_item.rs rename to crates/ra_syntax/tests/data/parser/inline/0056_trait_item.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0056_trait_item.txt b/crates/ra_syntax/tests/data/parser/inline/0056_trait_item.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0056_trait_item.txt rename to crates/ra_syntax/tests/data/parser/inline/0056_trait_item.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0057_auto_trait.rs b/crates/ra_syntax/tests/data/parser/inline/0057_auto_trait.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0057_auto_trait.rs rename to crates/ra_syntax/tests/data/parser/inline/0057_auto_trait.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0057_auto_trait.txt b/crates/ra_syntax/tests/data/parser/inline/0057_auto_trait.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0057_auto_trait.txt rename to crates/ra_syntax/tests/data/parser/inline/0057_auto_trait.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0058_type_arg.rs b/crates/ra_syntax/tests/data/parser/inline/0058_type_arg.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0058_type_arg.rs rename to crates/ra_syntax/tests/data/parser/inline/0058_type_arg.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0058_type_arg.txt b/crates/ra_syntax/tests/data/parser/inline/0058_type_arg.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0058_type_arg.txt rename to crates/ra_syntax/tests/data/parser/inline/0058_type_arg.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0059_function_where_clause.rs b/crates/ra_syntax/tests/data/parser/inline/0059_function_where_clause.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0059_function_where_clause.rs rename to crates/ra_syntax/tests/data/parser/inline/0059_function_where_clause.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0059_function_where_clause.txt b/crates/ra_syntax/tests/data/parser/inline/0059_function_where_clause.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0059_function_where_clause.txt rename to crates/ra_syntax/tests/data/parser/inline/0059_function_where_clause.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0060_function_type_params.rs b/crates/ra_syntax/tests/data/parser/inline/0060_function_type_params.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0060_function_type_params.rs rename to crates/ra_syntax/tests/data/parser/inline/0060_function_type_params.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0060_function_type_params.txt b/crates/ra_syntax/tests/data/parser/inline/0060_function_type_params.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0060_function_type_params.txt rename to crates/ra_syntax/tests/data/parser/inline/0060_function_type_params.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0061_struct_lit.rs b/crates/ra_syntax/tests/data/parser/inline/0061_struct_lit.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0061_struct_lit.rs rename to crates/ra_syntax/tests/data/parser/inline/0061_struct_lit.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0061_struct_lit.txt b/crates/ra_syntax/tests/data/parser/inline/0061_struct_lit.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0061_struct_lit.txt rename to crates/ra_syntax/tests/data/parser/inline/0061_struct_lit.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0063_impl_trait_type.rs b/crates/ra_syntax/tests/data/parser/inline/0063_impl_trait_type.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0063_impl_trait_type.rs rename to crates/ra_syntax/tests/data/parser/inline/0063_impl_trait_type.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0063_impl_trait_type.txt b/crates/ra_syntax/tests/data/parser/inline/0063_impl_trait_type.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0063_impl_trait_type.txt rename to crates/ra_syntax/tests/data/parser/inline/0063_impl_trait_type.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0063_lambda_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0063_lambda_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0063_lambda_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0063_lambda_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0064_param_list.rs b/crates/ra_syntax/tests/data/parser/inline/0064_param_list.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0064_param_list.rs rename to crates/ra_syntax/tests/data/parser/inline/0064_param_list.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0064_param_list.txt b/crates/ra_syntax/tests/data/parser/inline/0064_param_list.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0064_param_list.txt rename to crates/ra_syntax/tests/data/parser/inline/0064_param_list.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0065_if_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0065_if_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0065_if_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0065_if_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0065_if_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0065_if_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0065_if_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0065_if_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0066_lambda_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0066_lambda_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0066_lambda_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0066_lambda_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0066_lambda_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0066_lambda_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0066_lambda_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0066_lambda_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0067_block_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0067_block_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0067_block_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0067_block_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0067_block_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0067_block_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0067_block_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0067_block_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0068_pub_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0068_pub_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0068_pub_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0068_pub_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0068_pub_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0068_pub_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0068_pub_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0068_pub_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0068_return_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0068_return_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0068_return_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0068_return_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0068_return_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0068_return_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0068_return_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0068_return_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0069_match_arm.rs b/crates/ra_syntax/tests/data/parser/inline/0069_match_arm.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0069_match_arm.rs rename to crates/ra_syntax/tests/data/parser/inline/0069_match_arm.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0069_match_arm.txt b/crates/ra_syntax/tests/data/parser/inline/0069_match_arm.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0069_match_arm.txt rename to crates/ra_syntax/tests/data/parser/inline/0069_match_arm.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0070_match_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0070_match_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0070_match_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0070_match_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0070_match_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0070_match_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0070_match_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0070_match_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0071_tuple_pat_fields.rs b/crates/ra_syntax/tests/data/parser/inline/0071_tuple_pat_fields.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0071_tuple_pat_fields.rs rename to crates/ra_syntax/tests/data/parser/inline/0071_tuple_pat_fields.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0071_tuple_pat_fields.txt b/crates/ra_syntax/tests/data/parser/inline/0071_tuple_pat_fields.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0071_tuple_pat_fields.txt rename to crates/ra_syntax/tests/data/parser/inline/0071_tuple_pat_fields.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0072_path_part.rs b/crates/ra_syntax/tests/data/parser/inline/0072_path_part.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0072_path_part.rs rename to crates/ra_syntax/tests/data/parser/inline/0072_path_part.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0072_path_part.txt b/crates/ra_syntax/tests/data/parser/inline/0072_path_part.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0072_path_part.txt rename to crates/ra_syntax/tests/data/parser/inline/0072_path_part.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0073_impl_item_list.rs b/crates/ra_syntax/tests/data/parser/inline/0073_impl_item_list.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0073_impl_item_list.rs rename to crates/ra_syntax/tests/data/parser/inline/0073_impl_item_list.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0073_impl_item_list.txt b/crates/ra_syntax/tests/data/parser/inline/0073_impl_item_list.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0073_impl_item_list.txt rename to crates/ra_syntax/tests/data/parser/inline/0073_impl_item_list.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0074_unary_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0074_unary_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0074_unary_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0074_unary_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0074_unary_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0074_unary_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0074_unary_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0074_unary_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0075_try_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0075_try_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0075_try_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0075_try_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0075_try_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0075_try_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0075_try_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0075_try_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0076_cond.rs b/crates/ra_syntax/tests/data/parser/inline/0076_cond.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0076_cond.rs rename to crates/ra_syntax/tests/data/parser/inline/0076_cond.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0076_cond.txt b/crates/ra_syntax/tests/data/parser/inline/0076_cond.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0076_cond.txt rename to crates/ra_syntax/tests/data/parser/inline/0076_cond.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0077_while_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0077_while_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0077_while_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0077_while_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0077_while_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0077_while_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0077_while_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0077_while_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0078_mod_contents.rs b/crates/ra_syntax/tests/data/parser/inline/0078_mod_contents.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0078_mod_contents.rs rename to crates/ra_syntax/tests/data/parser/inline/0078_mod_contents.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0078_mod_contents.txt b/crates/ra_syntax/tests/data/parser/inline/0078_mod_contents.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0078_mod_contents.txt rename to crates/ra_syntax/tests/data/parser/inline/0078_mod_contents.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0079_cast_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0079_cast_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0079_cast_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0079_cast_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0079_cast_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0079_cast_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0079_cast_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0079_cast_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0080_tuple_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0080_tuple_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0080_tuple_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0080_tuple_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0080_tuple_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0080_tuple_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0080_tuple_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0080_tuple_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0081_index_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0081_index_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0081_index_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0081_index_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0081_index_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0081_index_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0081_index_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0081_index_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0082_tuple_pat.rs b/crates/ra_syntax/tests/data/parser/inline/0082_tuple_pat.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0082_tuple_pat.rs rename to crates/ra_syntax/tests/data/parser/inline/0082_tuple_pat.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0082_tuple_pat.txt b/crates/ra_syntax/tests/data/parser/inline/0082_tuple_pat.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0082_tuple_pat.txt rename to crates/ra_syntax/tests/data/parser/inline/0082_tuple_pat.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0083_postfix_range.rs b/crates/ra_syntax/tests/data/parser/inline/0083_postfix_range.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0083_postfix_range.rs rename to crates/ra_syntax/tests/data/parser/inline/0083_postfix_range.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0083_postfix_range.txt b/crates/ra_syntax/tests/data/parser/inline/0083_postfix_range.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0083_postfix_range.txt rename to crates/ra_syntax/tests/data/parser/inline/0083_postfix_range.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0084_loop_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0084_loop_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0084_loop_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0084_loop_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0084_loop_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0084_loop_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0084_loop_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0084_loop_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0085_for_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0085_for_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0085_for_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0085_for_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0085_for_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0085_for_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0085_for_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0085_for_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0085_match_arms_commas.rs b/crates/ra_syntax/tests/data/parser/inline/0085_match_arms_commas.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0085_match_arms_commas.rs rename to crates/ra_syntax/tests/data/parser/inline/0085_match_arms_commas.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0085_match_arms_commas.txt b/crates/ra_syntax/tests/data/parser/inline/0085_match_arms_commas.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0085_match_arms_commas.txt rename to crates/ra_syntax/tests/data/parser/inline/0085_match_arms_commas.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0086_array_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0086_array_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0086_array_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0086_array_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0086_array_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0086_array_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0086_array_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0086_array_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0086_no_semi_after_block.rs b/crates/ra_syntax/tests/data/parser/inline/0086_no_semi_after_block.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0086_no_semi_after_block.rs rename to crates/ra_syntax/tests/data/parser/inline/0086_no_semi_after_block.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0086_no_semi_after_block.txt b/crates/ra_syntax/tests/data/parser/inline/0086_no_semi_after_block.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0086_no_semi_after_block.txt rename to crates/ra_syntax/tests/data/parser/inline/0086_no_semi_after_block.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0087_stmt_postfix_expr_ambiguity.rs b/crates/ra_syntax/tests/data/parser/inline/0087_stmt_postfix_expr_ambiguity.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0087_stmt_postfix_expr_ambiguity.rs rename to crates/ra_syntax/tests/data/parser/inline/0087_stmt_postfix_expr_ambiguity.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0087_stmt_postfix_expr_ambiguity.txt b/crates/ra_syntax/tests/data/parser/inline/0087_stmt_postfix_expr_ambiguity.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0087_stmt_postfix_expr_ambiguity.txt rename to crates/ra_syntax/tests/data/parser/inline/0087_stmt_postfix_expr_ambiguity.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0088_stmt_bin_expr_ambiguity.rs b/crates/ra_syntax/tests/data/parser/inline/0088_stmt_bin_expr_ambiguity.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0088_stmt_bin_expr_ambiguity.rs rename to crates/ra_syntax/tests/data/parser/inline/0088_stmt_bin_expr_ambiguity.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0088_stmt_bin_expr_ambiguity.txt b/crates/ra_syntax/tests/data/parser/inline/0088_stmt_bin_expr_ambiguity.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0088_stmt_bin_expr_ambiguity.txt rename to crates/ra_syntax/tests/data/parser/inline/0088_stmt_bin_expr_ambiguity.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0089_slice_pat.rs b/crates/ra_syntax/tests/data/parser/inline/0089_slice_pat.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0089_slice_pat.rs rename to crates/ra_syntax/tests/data/parser/inline/0089_slice_pat.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0089_slice_pat.txt b/crates/ra_syntax/tests/data/parser/inline/0089_slice_pat.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0089_slice_pat.txt rename to crates/ra_syntax/tests/data/parser/inline/0089_slice_pat.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0091_fn_decl.rs b/crates/ra_syntax/tests/data/parser/inline/0091_fn_decl.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0091_fn_decl.rs rename to crates/ra_syntax/tests/data/parser/inline/0091_fn_decl.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0091_fn_decl.txt b/crates/ra_syntax/tests/data/parser/inline/0091_fn_decl.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0091_fn_decl.txt rename to crates/ra_syntax/tests/data/parser/inline/0091_fn_decl.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0092_literal_pattern.rs b/crates/ra_syntax/tests/data/parser/inline/0092_literal_pattern.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0092_literal_pattern.rs rename to crates/ra_syntax/tests/data/parser/inline/0092_literal_pattern.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0092_literal_pattern.txt b/crates/ra_syntax/tests/data/parser/inline/0092_literal_pattern.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0092_literal_pattern.txt rename to crates/ra_syntax/tests/data/parser/inline/0092_literal_pattern.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0093_path_fn_trait_args.rs b/crates/ra_syntax/tests/data/parser/inline/0093_path_fn_trait_args.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0093_path_fn_trait_args.rs rename to crates/ra_syntax/tests/data/parser/inline/0093_path_fn_trait_args.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0093_path_fn_trait_args.txt b/crates/ra_syntax/tests/data/parser/inline/0093_path_fn_trait_args.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0093_path_fn_trait_args.txt rename to crates/ra_syntax/tests/data/parser/inline/0093_path_fn_trait_args.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0094_range_pat.rs b/crates/ra_syntax/tests/data/parser/inline/0094_range_pat.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0094_range_pat.rs rename to crates/ra_syntax/tests/data/parser/inline/0094_range_pat.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0094_range_pat.txt b/crates/ra_syntax/tests/data/parser/inline/0094_range_pat.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0094_range_pat.txt rename to crates/ra_syntax/tests/data/parser/inline/0094_range_pat.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0095_path_type_with_bounds.rs b/crates/ra_syntax/tests/data/parser/inline/0095_path_type_with_bounds.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0095_path_type_with_bounds.rs rename to crates/ra_syntax/tests/data/parser/inline/0095_path_type_with_bounds.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0095_path_type_with_bounds.txt b/crates/ra_syntax/tests/data/parser/inline/0095_path_type_with_bounds.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0095_path_type_with_bounds.txt rename to crates/ra_syntax/tests/data/parser/inline/0095_path_type_with_bounds.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0096_value_parameters_no_patterns.rs b/crates/ra_syntax/tests/data/parser/inline/0096_value_parameters_no_patterns.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0096_value_parameters_no_patterns.rs rename to crates/ra_syntax/tests/data/parser/inline/0096_value_parameters_no_patterns.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0096_value_parameters_no_patterns.txt b/crates/ra_syntax/tests/data/parser/inline/0096_value_parameters_no_patterns.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0096_value_parameters_no_patterns.txt rename to crates/ra_syntax/tests/data/parser/inline/0096_value_parameters_no_patterns.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0097_param_list_opt_patterns.rs b/crates/ra_syntax/tests/data/parser/inline/0097_param_list_opt_patterns.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0097_param_list_opt_patterns.rs rename to crates/ra_syntax/tests/data/parser/inline/0097_param_list_opt_patterns.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0097_param_list_opt_patterns.txt b/crates/ra_syntax/tests/data/parser/inline/0097_param_list_opt_patterns.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0097_param_list_opt_patterns.txt rename to crates/ra_syntax/tests/data/parser/inline/0097_param_list_opt_patterns.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0098_where_clause.rs b/crates/ra_syntax/tests/data/parser/inline/0098_where_clause.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0098_where_clause.rs rename to crates/ra_syntax/tests/data/parser/inline/0098_where_clause.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0098_where_clause.txt b/crates/ra_syntax/tests/data/parser/inline/0098_where_clause.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0098_where_clause.txt rename to crates/ra_syntax/tests/data/parser/inline/0098_where_clause.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0099_crate_keyword_vis.rs b/crates/ra_syntax/tests/data/parser/inline/0099_crate_keyword_vis.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0099_crate_keyword_vis.rs rename to crates/ra_syntax/tests/data/parser/inline/0099_crate_keyword_vis.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0099_crate_keyword_vis.txt b/crates/ra_syntax/tests/data/parser/inline/0099_crate_keyword_vis.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0099_crate_keyword_vis.txt rename to crates/ra_syntax/tests/data/parser/inline/0099_crate_keyword_vis.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0100_dyn_trait_type.rs b/crates/ra_syntax/tests/data/parser/inline/0100_dyn_trait_type.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0100_dyn_trait_type.rs rename to crates/ra_syntax/tests/data/parser/inline/0100_dyn_trait_type.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0100_dyn_trait_type.txt b/crates/ra_syntax/tests/data/parser/inline/0100_dyn_trait_type.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0100_dyn_trait_type.txt rename to crates/ra_syntax/tests/data/parser/inline/0100_dyn_trait_type.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0101_qual_paths.rs b/crates/ra_syntax/tests/data/parser/inline/0101_qual_paths.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0101_qual_paths.rs rename to crates/ra_syntax/tests/data/parser/inline/0101_qual_paths.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0101_qual_paths.txt b/crates/ra_syntax/tests/data/parser/inline/0101_qual_paths.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0101_qual_paths.txt rename to crates/ra_syntax/tests/data/parser/inline/0101_qual_paths.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0102_full_range_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0102_full_range_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0102_full_range_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0102_full_range_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0102_full_range_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0102_full_range_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0102_full_range_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0102_full_range_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0103_field_attrs.rs b/crates/ra_syntax/tests/data/parser/inline/0103_field_attrs.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0103_field_attrs.rs rename to crates/ra_syntax/tests/data/parser/inline/0103_field_attrs.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0103_field_attrs.txt b/crates/ra_syntax/tests/data/parser/inline/0103_field_attrs.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0103_field_attrs.txt rename to crates/ra_syntax/tests/data/parser/inline/0103_field_attrs.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0104_arb_self_types.rs b/crates/ra_syntax/tests/data/parser/inline/0104_arb_self_types.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0104_arb_self_types.rs rename to crates/ra_syntax/tests/data/parser/inline/0104_arb_self_types.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0104_arb_self_types.txt b/crates/ra_syntax/tests/data/parser/inline/0104_arb_self_types.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0104_arb_self_types.txt rename to crates/ra_syntax/tests/data/parser/inline/0104_arb_self_types.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0105_continue_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0105_continue_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0105_continue_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0105_continue_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0105_continue_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0105_continue_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0105_continue_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0105_continue_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0106_break_expr.rs b/crates/ra_syntax/tests/data/parser/inline/0106_break_expr.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0106_break_expr.rs rename to crates/ra_syntax/tests/data/parser/inline/0106_break_expr.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0106_break_expr.txt b/crates/ra_syntax/tests/data/parser/inline/0106_break_expr.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0106_break_expr.txt rename to crates/ra_syntax/tests/data/parser/inline/0106_break_expr.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0107_label.rs b/crates/ra_syntax/tests/data/parser/inline/0107_label.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0107_label.rs rename to crates/ra_syntax/tests/data/parser/inline/0107_label.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0107_label.txt b/crates/ra_syntax/tests/data/parser/inline/0107_label.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0107_label.txt rename to crates/ra_syntax/tests/data/parser/inline/0107_label.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0108_misplaced_label_err.rs b/crates/ra_syntax/tests/data/parser/inline/0108_misplaced_label_err.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0108_misplaced_label_err.rs rename to crates/ra_syntax/tests/data/parser/inline/0108_misplaced_label_err.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0108_misplaced_label_err.txt b/crates/ra_syntax/tests/data/parser/inline/0108_misplaced_label_err.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0108_misplaced_label_err.txt rename to crates/ra_syntax/tests/data/parser/inline/0108_misplaced_label_err.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0109_struct_items.rs b/crates/ra_syntax/tests/data/parser/inline/0109_struct_items.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0109_struct_items.rs rename to crates/ra_syntax/tests/data/parser/inline/0109_struct_items.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0109_struct_items.txt b/crates/ra_syntax/tests/data/parser/inline/0109_struct_items.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0109_struct_items.txt rename to crates/ra_syntax/tests/data/parser/inline/0109_struct_items.txt diff --git a/crates/libsyntax2/tests/data/parser/inline/0110_union_items.rs b/crates/ra_syntax/tests/data/parser/inline/0110_union_items.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0110_union_items.rs rename to crates/ra_syntax/tests/data/parser/inline/0110_union_items.rs diff --git a/crates/libsyntax2/tests/data/parser/inline/0110_union_items.txt b/crates/ra_syntax/tests/data/parser/inline/0110_union_items.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/inline/0110_union_items.txt rename to crates/ra_syntax/tests/data/parser/inline/0110_union_items.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0000_empty.rs b/crates/ra_syntax/tests/data/parser/ok/0000_empty.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0000_empty.rs rename to crates/ra_syntax/tests/data/parser/ok/0000_empty.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0000_empty.txt b/crates/ra_syntax/tests/data/parser/ok/0000_empty.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0000_empty.txt rename to crates/ra_syntax/tests/data/parser/ok/0000_empty.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0001_struct_item.rs b/crates/ra_syntax/tests/data/parser/ok/0001_struct_item.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0001_struct_item.rs rename to crates/ra_syntax/tests/data/parser/ok/0001_struct_item.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0001_struct_item.txt b/crates/ra_syntax/tests/data/parser/ok/0001_struct_item.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0001_struct_item.txt rename to crates/ra_syntax/tests/data/parser/ok/0001_struct_item.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0002_struct_item_field.rs b/crates/ra_syntax/tests/data/parser/ok/0002_struct_item_field.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0002_struct_item_field.rs rename to crates/ra_syntax/tests/data/parser/ok/0002_struct_item_field.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0002_struct_item_field.txt b/crates/ra_syntax/tests/data/parser/ok/0002_struct_item_field.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0002_struct_item_field.txt rename to crates/ra_syntax/tests/data/parser/ok/0002_struct_item_field.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0004_file_shebang.rs b/crates/ra_syntax/tests/data/parser/ok/0004_file_shebang.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0004_file_shebang.rs rename to crates/ra_syntax/tests/data/parser/ok/0004_file_shebang.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0004_file_shebang.txt b/crates/ra_syntax/tests/data/parser/ok/0004_file_shebang.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0004_file_shebang.txt rename to crates/ra_syntax/tests/data/parser/ok/0004_file_shebang.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0005_fn_item.rs b/crates/ra_syntax/tests/data/parser/ok/0005_fn_item.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0005_fn_item.rs rename to crates/ra_syntax/tests/data/parser/ok/0005_fn_item.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0005_fn_item.txt b/crates/ra_syntax/tests/data/parser/ok/0005_fn_item.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0005_fn_item.txt rename to crates/ra_syntax/tests/data/parser/ok/0005_fn_item.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0006_inner_attributes.rs b/crates/ra_syntax/tests/data/parser/ok/0006_inner_attributes.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0006_inner_attributes.rs rename to crates/ra_syntax/tests/data/parser/ok/0006_inner_attributes.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0006_inner_attributes.txt b/crates/ra_syntax/tests/data/parser/ok/0006_inner_attributes.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0006_inner_attributes.txt rename to crates/ra_syntax/tests/data/parser/ok/0006_inner_attributes.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0007_extern_crate.rs b/crates/ra_syntax/tests/data/parser/ok/0007_extern_crate.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0007_extern_crate.rs rename to crates/ra_syntax/tests/data/parser/ok/0007_extern_crate.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0007_extern_crate.txt b/crates/ra_syntax/tests/data/parser/ok/0007_extern_crate.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0007_extern_crate.txt rename to crates/ra_syntax/tests/data/parser/ok/0007_extern_crate.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0008_mod_item.rs b/crates/ra_syntax/tests/data/parser/ok/0008_mod_item.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0008_mod_item.rs rename to crates/ra_syntax/tests/data/parser/ok/0008_mod_item.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0008_mod_item.txt b/crates/ra_syntax/tests/data/parser/ok/0008_mod_item.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0008_mod_item.txt rename to crates/ra_syntax/tests/data/parser/ok/0008_mod_item.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0009_use_item.rs b/crates/ra_syntax/tests/data/parser/ok/0009_use_item.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0009_use_item.rs rename to crates/ra_syntax/tests/data/parser/ok/0009_use_item.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0009_use_item.txt b/crates/ra_syntax/tests/data/parser/ok/0009_use_item.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0009_use_item.txt rename to crates/ra_syntax/tests/data/parser/ok/0009_use_item.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0010_use_path_segments.rs b/crates/ra_syntax/tests/data/parser/ok/0010_use_path_segments.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0010_use_path_segments.rs rename to crates/ra_syntax/tests/data/parser/ok/0010_use_path_segments.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0010_use_path_segments.txt b/crates/ra_syntax/tests/data/parser/ok/0010_use_path_segments.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0010_use_path_segments.txt rename to crates/ra_syntax/tests/data/parser/ok/0010_use_path_segments.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0011_outer_attribute.rs b/crates/ra_syntax/tests/data/parser/ok/0011_outer_attribute.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0011_outer_attribute.rs rename to crates/ra_syntax/tests/data/parser/ok/0011_outer_attribute.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0011_outer_attribute.txt b/crates/ra_syntax/tests/data/parser/ok/0011_outer_attribute.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0011_outer_attribute.txt rename to crates/ra_syntax/tests/data/parser/ok/0011_outer_attribute.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0012_visibility.rs b/crates/ra_syntax/tests/data/parser/ok/0012_visibility.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0012_visibility.rs rename to crates/ra_syntax/tests/data/parser/ok/0012_visibility.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0012_visibility.txt b/crates/ra_syntax/tests/data/parser/ok/0012_visibility.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0012_visibility.txt rename to crates/ra_syntax/tests/data/parser/ok/0012_visibility.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0013_use_path_self_super.rs b/crates/ra_syntax/tests/data/parser/ok/0013_use_path_self_super.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0013_use_path_self_super.rs rename to crates/ra_syntax/tests/data/parser/ok/0013_use_path_self_super.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0013_use_path_self_super.txt b/crates/ra_syntax/tests/data/parser/ok/0013_use_path_self_super.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0013_use_path_self_super.txt rename to crates/ra_syntax/tests/data/parser/ok/0013_use_path_self_super.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0014_use_tree.rs b/crates/ra_syntax/tests/data/parser/ok/0014_use_tree.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0014_use_tree.rs rename to crates/ra_syntax/tests/data/parser/ok/0014_use_tree.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0014_use_tree.txt b/crates/ra_syntax/tests/data/parser/ok/0014_use_tree.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0014_use_tree.txt rename to crates/ra_syntax/tests/data/parser/ok/0014_use_tree.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0015_use_tree.rs b/crates/ra_syntax/tests/data/parser/ok/0015_use_tree.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0015_use_tree.rs rename to crates/ra_syntax/tests/data/parser/ok/0015_use_tree.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0015_use_tree.txt b/crates/ra_syntax/tests/data/parser/ok/0015_use_tree.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0015_use_tree.txt rename to crates/ra_syntax/tests/data/parser/ok/0015_use_tree.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0016_struct_flavors.rs b/crates/ra_syntax/tests/data/parser/ok/0016_struct_flavors.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0016_struct_flavors.rs rename to crates/ra_syntax/tests/data/parser/ok/0016_struct_flavors.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0016_struct_flavors.txt b/crates/ra_syntax/tests/data/parser/ok/0016_struct_flavors.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0016_struct_flavors.txt rename to crates/ra_syntax/tests/data/parser/ok/0016_struct_flavors.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0017_attr_trailing_comma.rs b/crates/ra_syntax/tests/data/parser/ok/0017_attr_trailing_comma.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0017_attr_trailing_comma.rs rename to crates/ra_syntax/tests/data/parser/ok/0017_attr_trailing_comma.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0017_attr_trailing_comma.txt b/crates/ra_syntax/tests/data/parser/ok/0017_attr_trailing_comma.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0017_attr_trailing_comma.txt rename to crates/ra_syntax/tests/data/parser/ok/0017_attr_trailing_comma.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0018_struct_type_params.rs b/crates/ra_syntax/tests/data/parser/ok/0018_struct_type_params.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0018_struct_type_params.rs rename to crates/ra_syntax/tests/data/parser/ok/0018_struct_type_params.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0018_struct_type_params.txt b/crates/ra_syntax/tests/data/parser/ok/0018_struct_type_params.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0018_struct_type_params.txt rename to crates/ra_syntax/tests/data/parser/ok/0018_struct_type_params.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0019_enums.rs b/crates/ra_syntax/tests/data/parser/ok/0019_enums.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0019_enums.rs rename to crates/ra_syntax/tests/data/parser/ok/0019_enums.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0019_enums.txt b/crates/ra_syntax/tests/data/parser/ok/0019_enums.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0019_enums.txt rename to crates/ra_syntax/tests/data/parser/ok/0019_enums.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0020_type_param_bounds.rs b/crates/ra_syntax/tests/data/parser/ok/0020_type_param_bounds.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0020_type_param_bounds.rs rename to crates/ra_syntax/tests/data/parser/ok/0020_type_param_bounds.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0020_type_param_bounds.txt b/crates/ra_syntax/tests/data/parser/ok/0020_type_param_bounds.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0020_type_param_bounds.txt rename to crates/ra_syntax/tests/data/parser/ok/0020_type_param_bounds.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0021_extern_fn.rs b/crates/ra_syntax/tests/data/parser/ok/0021_extern_fn.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0021_extern_fn.rs rename to crates/ra_syntax/tests/data/parser/ok/0021_extern_fn.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0021_extern_fn.txt b/crates/ra_syntax/tests/data/parser/ok/0021_extern_fn.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0021_extern_fn.txt rename to crates/ra_syntax/tests/data/parser/ok/0021_extern_fn.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0022_empty_extern_block.rs b/crates/ra_syntax/tests/data/parser/ok/0022_empty_extern_block.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0022_empty_extern_block.rs rename to crates/ra_syntax/tests/data/parser/ok/0022_empty_extern_block.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0022_empty_extern_block.txt b/crates/ra_syntax/tests/data/parser/ok/0022_empty_extern_block.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0022_empty_extern_block.txt rename to crates/ra_syntax/tests/data/parser/ok/0022_empty_extern_block.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0023_static_items.rs b/crates/ra_syntax/tests/data/parser/ok/0023_static_items.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0023_static_items.rs rename to crates/ra_syntax/tests/data/parser/ok/0023_static_items.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0023_static_items.txt b/crates/ra_syntax/tests/data/parser/ok/0023_static_items.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0023_static_items.txt rename to crates/ra_syntax/tests/data/parser/ok/0023_static_items.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0024_const_item.rs b/crates/ra_syntax/tests/data/parser/ok/0024_const_item.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0024_const_item.rs rename to crates/ra_syntax/tests/data/parser/ok/0024_const_item.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0024_const_item.txt b/crates/ra_syntax/tests/data/parser/ok/0024_const_item.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0024_const_item.txt rename to crates/ra_syntax/tests/data/parser/ok/0024_const_item.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0025_extern_fn_in_block.rs b/crates/ra_syntax/tests/data/parser/ok/0025_extern_fn_in_block.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0025_extern_fn_in_block.rs rename to crates/ra_syntax/tests/data/parser/ok/0025_extern_fn_in_block.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0025_extern_fn_in_block.txt b/crates/ra_syntax/tests/data/parser/ok/0025_extern_fn_in_block.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0025_extern_fn_in_block.txt rename to crates/ra_syntax/tests/data/parser/ok/0025_extern_fn_in_block.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0026_const_fn_in_block.rs b/crates/ra_syntax/tests/data/parser/ok/0026_const_fn_in_block.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0026_const_fn_in_block.rs rename to crates/ra_syntax/tests/data/parser/ok/0026_const_fn_in_block.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0026_const_fn_in_block.txt b/crates/ra_syntax/tests/data/parser/ok/0026_const_fn_in_block.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0026_const_fn_in_block.txt rename to crates/ra_syntax/tests/data/parser/ok/0026_const_fn_in_block.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0027_unsafe_fn_in_block.rs b/crates/ra_syntax/tests/data/parser/ok/0027_unsafe_fn_in_block.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0027_unsafe_fn_in_block.rs rename to crates/ra_syntax/tests/data/parser/ok/0027_unsafe_fn_in_block.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0027_unsafe_fn_in_block.txt b/crates/ra_syntax/tests/data/parser/ok/0027_unsafe_fn_in_block.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0027_unsafe_fn_in_block.txt rename to crates/ra_syntax/tests/data/parser/ok/0027_unsafe_fn_in_block.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0028_operator_binding_power.rs b/crates/ra_syntax/tests/data/parser/ok/0028_operator_binding_power.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0028_operator_binding_power.rs rename to crates/ra_syntax/tests/data/parser/ok/0028_operator_binding_power.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0028_operator_binding_power.txt b/crates/ra_syntax/tests/data/parser/ok/0028_operator_binding_power.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0028_operator_binding_power.txt rename to crates/ra_syntax/tests/data/parser/ok/0028_operator_binding_power.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0029_range_forms.rs b/crates/ra_syntax/tests/data/parser/ok/0029_range_forms.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0029_range_forms.rs rename to crates/ra_syntax/tests/data/parser/ok/0029_range_forms.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0029_range_forms.txt b/crates/ra_syntax/tests/data/parser/ok/0029_range_forms.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0029_range_forms.txt rename to crates/ra_syntax/tests/data/parser/ok/0029_range_forms.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0030_traits.rs b/crates/ra_syntax/tests/data/parser/ok/0030_traits.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0030_traits.rs rename to crates/ra_syntax/tests/data/parser/ok/0030_traits.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0030_traits.txt b/crates/ra_syntax/tests/data/parser/ok/0030_traits.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0030_traits.txt rename to crates/ra_syntax/tests/data/parser/ok/0030_traits.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0031_extern.rs b/crates/ra_syntax/tests/data/parser/ok/0031_extern.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0031_extern.rs rename to crates/ra_syntax/tests/data/parser/ok/0031_extern.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0031_extern.txt b/crates/ra_syntax/tests/data/parser/ok/0031_extern.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0031_extern.txt rename to crates/ra_syntax/tests/data/parser/ok/0031_extern.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0032_where_for.rs b/crates/ra_syntax/tests/data/parser/ok/0032_where_for.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0032_where_for.rs rename to crates/ra_syntax/tests/data/parser/ok/0032_where_for.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0032_where_for.txt b/crates/ra_syntax/tests/data/parser/ok/0032_where_for.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0032_where_for.txt rename to crates/ra_syntax/tests/data/parser/ok/0032_where_for.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0033_label_break.rs b/crates/ra_syntax/tests/data/parser/ok/0033_label_break.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0033_label_break.rs rename to crates/ra_syntax/tests/data/parser/ok/0033_label_break.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0033_label_break.txt b/crates/ra_syntax/tests/data/parser/ok/0033_label_break.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0033_label_break.txt rename to crates/ra_syntax/tests/data/parser/ok/0033_label_break.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0034_macro_2.0.rs b/crates/ra_syntax/tests/data/parser/ok/0034_macro_2.0.rs similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0034_macro_2.0.rs rename to crates/ra_syntax/tests/data/parser/ok/0034_macro_2.0.rs diff --git a/crates/libsyntax2/tests/data/parser/ok/0034_macro_2.0.txt b/crates/ra_syntax/tests/data/parser/ok/0034_macro_2.0.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0034_macro_2.0.txt rename to crates/ra_syntax/tests/data/parser/ok/0034_macro_2.0.txt diff --git a/crates/libsyntax2/tests/data/parser/ok/0034_macro_stuck.txt b/crates/ra_syntax/tests/data/parser/ok/0034_macro_stuck.txt similarity index 100% rename from crates/libsyntax2/tests/data/parser/ok/0034_macro_stuck.txt rename to crates/ra_syntax/tests/data/parser/ok/0034_macro_stuck.txt diff --git a/crates/libsyntax2/tests/test/main.rs b/crates/ra_syntax/tests/test.rs similarity index 94% rename from crates/libsyntax2/tests/test/main.rs rename to crates/ra_syntax/tests/test.rs index 5a8879fced..27380efefd 100644 --- a/crates/libsyntax2/tests/test/main.rs +++ b/crates/ra_syntax/tests/test.rs @@ -1,4 +1,4 @@ -extern crate libsyntax2; +extern crate ra_syntax; #[macro_use] extern crate test_utils; extern crate walkdir; @@ -9,7 +9,7 @@ use std::{ fmt::Write, }; -use libsyntax2::{ +use ra_syntax::{ File, utils::{dump_tree, check_fuzz_invariants}, }; @@ -17,7 +17,7 @@ use libsyntax2::{ #[test] fn lexer_tests() { dir_tests(&["lexer"], |text| { - let tokens = libsyntax2::tokenize(text); + let tokens = ra_syntax::tokenize(text); dump_tokens(&tokens, text) }) } @@ -134,10 +134,10 @@ fn project_dir() -> PathBuf { } fn test_data_dir() -> PathBuf { - project_dir().join("crates/libsyntax2/tests/data") + project_dir().join("crates/ra_syntax/tests/data") } -fn dump_tokens(tokens: &[libsyntax2::Token], text: &str) -> String { +fn dump_tokens(tokens: &[ra_syntax::Token], text: &str) -> String { let mut acc = String::new(); let mut offset = 0; for token in tokens { diff --git a/crates/tools/src/main.rs b/crates/tools/src/main.rs index f8b8407188..ee900553c2 100644 --- a/crates/tools/src/main.rs +++ b/crates/tools/src/main.rs @@ -19,13 +19,13 @@ use tools::{collect_tests, Test}; type Result = ::std::result::Result; -const GRAMMAR_DIR: &str = "./crates/libsyntax2/src/grammar"; -const INLINE_TESTS_DIR: &str = "./crates/libsyntax2/tests/data/parser/inline"; -const GRAMMAR: &str = "./crates/libsyntax2/src/grammar.ron"; -const SYNTAX_KINDS: &str = "./crates/libsyntax2/src/syntax_kinds/generated.rs"; -const SYNTAX_KINDS_TEMPLATE: &str = "./crates/libsyntax2/src/syntax_kinds/generated.rs.tera"; -const AST: &str = "./crates/libsyntax2/src/ast/generated.rs"; -const AST_TEMPLATE: &str = "./crates/libsyntax2/src/ast/generated.rs.tera"; +const GRAMMAR_DIR: &str = "./crates/ra_syntax/src/grammar"; +const INLINE_TESTS_DIR: &str = "./crates/ra_syntax/tests/data/parser/inline"; +const GRAMMAR: &str = "./crates/ra_syntax/src/grammar.ron"; +const SYNTAX_KINDS: &str = "./crates/ra_syntax/src/syntax_kinds/generated.rs"; +const SYNTAX_KINDS_TEMPLATE: &str = "./crates/ra_syntax/src/syntax_kinds/generated.rs.tera"; +const AST: &str = "./crates/ra_syntax/src/ast/generated.rs"; +const AST_TEMPLATE: &str = "./crates/ra_syntax/src/ast/generated.rs.tera"; fn main() -> Result<()> { let matches = App::new("tasks") @@ -190,17 +190,17 @@ fn existing_tests(dir: &Path) -> Result> { } fn install_code_extension() -> Result<()> { - run("cargo install --path crates/server --force", ".")?; + run("cargo install --path crates/ra_lsp_server --force", ".")?; if cfg!(windows) { - run(r"cmd.exe /c npm.cmd install", "./code")?; + run(r"cmd.exe /c npm.cmd install", "./editors/code")?; } else { - run(r"npm install", "./code")?; + run(r"npm install", "./editors/code")?; } - run(r"node ./node_modules/vsce/out/vsce package", "./code")?; + run(r"node ./node_modules/vsce/out/vsce package", "./editors/code")?; if cfg!(windows) { - run(r"cmd.exe /c code.cmd --install-extension ./rcf-lsp-0.0.1.vsix", "./code")?; + run(r"cmd.exe /c code.cmd --install-extension ./ra-lsp-0.0.1.vsix", "./editors/code")?; } else { - run(r"code --install-extension ./rcf-lsp-0.0.1.vsix", "./code")?; + run(r"code --install-extension ./ra-lsp-0.0.1.vsix", "./editors/code")?; } Ok(()) } diff --git a/code/.gitignore b/editors/code/.gitignore similarity index 100% rename from code/.gitignore rename to editors/code/.gitignore diff --git a/code/.vscode/launch.json b/editors/code/.vscode/launch.json similarity index 100% rename from code/.vscode/launch.json rename to editors/code/.vscode/launch.json diff --git a/code/.vscode/settings.json b/editors/code/.vscode/settings.json similarity index 100% rename from code/.vscode/settings.json rename to editors/code/.vscode/settings.json diff --git a/code/.vscode/tasks.json b/editors/code/.vscode/tasks.json similarity index 100% rename from code/.vscode/tasks.json rename to editors/code/.vscode/tasks.json diff --git a/code/.vscodeignore b/editors/code/.vscodeignore similarity index 100% rename from code/.vscodeignore rename to editors/code/.vscodeignore diff --git a/code/package-lock.json b/editors/code/package-lock.json similarity index 95% rename from code/package-lock.json rename to editors/code/package-lock.json index d9084b1b36..594a10b513 100644 --- a/code/package-lock.json +++ b/editors/code/package-lock.json @@ -1,5 +1,5 @@ { - "name": "rcf-lsp", + "name": "ra-lsp", "version": "0.0.1", "lockfileVersion": 1, "requires": true, @@ -11,9 +11,9 @@ "dev": true }, "@types/node": { - "version": "8.10.28", - "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.28.tgz", - "integrity": "sha512-iHsAzDg3OLH7JP+wipniUULHoDSWLgEDYOvsar6/mpAkTJd9/n23Ap8ikruMlvRTqMv/LXrflH9v/AfiEqaBGg==", + "version": "8.10.29", + "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.29.tgz", + "integrity": "sha512-zbteaWZ2mdduacm0byELwtRyhYE40aK+pAanQk415gr1eRuu67x7QGOLmn8jz5zI8LDK7d0WI/oT6r5Trz4rzQ==", "dev": true }, "ajv": { @@ -241,7 +241,7 @@ "dom-serializer": "0.1.0", "entities": "1.1.1", "htmlparser2": "3.9.2", - "lodash": "4.17.10", + "lodash": "4.17.11", "parse5": "3.0.3" } }, @@ -290,9 +290,9 @@ } }, "commander": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.11.0.tgz", - "integrity": "sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ==", + "version": "2.18.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.18.0.tgz", + "integrity": "sha512-6CYPa+JP2ftfRU2qkDK+UTVeQYosOg/2GbcjIcKPHfinyOLPVGXu/ovN86RP49Re5ndJK1N0kuiidFFuepc4ZQ==", "dev": true }, "concat-map": { @@ -302,10 +302,13 @@ "dev": true }, "convert-source-map": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.1.tgz", - "integrity": "sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU=", - "dev": true + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.6.0.tgz", + "integrity": "sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==", + "dev": true, + "requires": { + "safe-buffer": "5.1.2" + } }, "core-util-is": { "version": "1.0.2", @@ -421,7 +424,7 @@ }, "duplexer": { "version": "0.1.1", - "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", + "resolved": "http://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=", "dev": true }, @@ -470,17 +473,18 @@ "dev": true }, "event-stream": { - "version": "3.3.4", - "resolved": "http://registry.npmjs.org/event-stream/-/event-stream-3.3.4.tgz", - "integrity": "sha1-SrTJoPWlTbkzi0w02Gv86PSzVXE=", + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-3.3.6.tgz", + "integrity": "sha512-dGXNg4F/FgVzlApjzItL+7naHutA3fDqbV/zAZqDDlXTjiMnQmZKu+prImWKszeBM5UQeGvAl3u1wBiKeDh61g==", "dev": true, "requires": { "duplexer": "0.1.1", + "flatmap-stream": "0.1.0", "from": "0.1.7", - "map-stream": "0.1.0", + "map-stream": "0.0.7", "pause-stream": "0.0.11", - "split": "0.3.3", - "stream-combiner": "0.0.4", + "split": "1.0.1", + "stream-combiner": "0.2.2", "through": "2.3.8" } }, @@ -586,6 +590,12 @@ "integrity": "sha1-Wb+1DNkF9g18OUzT2ayqtOatk04=", "dev": true }, + "flatmap-stream": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/flatmap-stream/-/flatmap-stream-0.1.0.tgz", + "integrity": "sha512-Nlic4ZRYxikqnK5rj3YoxDVKGGtUjcNDUtvQ7XsdGLZmMwdUYnXf10o1zcXtzEZTBgc6GxeRpQxV/Wu3WPIIHA==", + "dev": true + }, "for-in": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", @@ -748,7 +758,7 @@ }, "readable-stream": { "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { @@ -828,7 +838,7 @@ }, "readable-stream": { "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { @@ -862,7 +872,7 @@ "integrity": "sha512-/9vtSk9eI9DEWCqzGieglPqmx0WUQ9pwPHyHFpKmfxqdgqGJC2l0vFMdYs54hLdDsMDEZFLDL2J4ikjc4hQ5HQ==", "dev": true, "requires": { - "event-stream": "3.3.4", + "event-stream": "3.3.6", "node.extend": "1.1.6", "request": "2.88.0", "through2": "2.0.3", @@ -903,7 +913,7 @@ "integrity": "sha1-uG/zSdgBzrVuHZ59x7vLS33uYAw=", "dev": true, "requires": { - "convert-source-map": "1.5.1", + "convert-source-map": "1.6.0", "graceful-fs": "4.1.11", "strip-bom": "2.0.0", "through2": "2.0.3", @@ -941,7 +951,7 @@ "integrity": "sha1-wWUyBzLRks5W/ZQnH/oSMjS/KuA=", "dev": true, "requires": { - "event-stream": "3.3.4", + "event-stream": "3.3.6", "mkdirp": "0.5.1", "queue": "3.1.0", "vinyl-fs": "2.4.4" @@ -953,7 +963,7 @@ "integrity": "sha512-0QfbCH2a1k2qkTLWPqTX+QO4qNsHn3kC546YhAP3/n0h+nvtyGITDuDrYBMDZeW4WnFijmkOvBWa5HshTic1tw==", "dev": true, "requires": { - "event-stream": "3.3.4", + "event-stream": "3.3.6", "streamifier": "0.1.1", "tar": "2.2.1", "through2": "2.0.3", @@ -991,7 +1001,7 @@ "integrity": "sha1-JOQGhdwFtxSZlSRQmeBZAmO+ja0=", "dev": true, "requires": { - "event-stream": "3.3.4", + "event-stream": "3.3.6", "queue": "4.5.0", "through2": "2.0.3", "vinyl": "2.2.0", @@ -1176,7 +1186,7 @@ }, "is-obj": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", + "resolved": "http://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", "dev": true }, @@ -1314,9 +1324,9 @@ } }, "lodash": { - "version": "4.17.10", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", - "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==", + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", "dev": true }, "lodash.isequal": { @@ -1326,9 +1336,9 @@ "dev": true }, "map-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz", - "integrity": "sha1-5WqpTEyAVaFkBKBnS3jyFffI4ZQ=", + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.0.7.tgz", + "integrity": "sha1-ih8HiW2CsQkmvTdEokIACfiJdKg=", "dev": true }, "markdown-it": { @@ -1453,13 +1463,13 @@ }, "minimist": { "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", "dev": true }, "mkdirp": { "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "resolved": "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "dev": true, "requires": { @@ -1484,6 +1494,12 @@ "supports-color": "4.4.0" }, "dependencies": { + "commander": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.11.0.tgz", + "integrity": "sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ==", + "dev": true + }, "glob": { "version": "7.1.2", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", @@ -1658,7 +1674,7 @@ "integrity": "sha512-rgO9Zg5LLLkfJF9E6CCmXlSE4UVceloys8JrFqCcHloC3usd/kJCyPDwH2SOlzix2j3xaP9sUX3e8+kvkuleAA==", "dev": true, "requires": { - "@types/node": "8.10.28" + "@types/node": "8.10.29" } }, "path-dirname": { @@ -1675,7 +1691,7 @@ }, "pause-stream": { "version": "0.0.11", - "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", + "resolved": "http://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", "integrity": "sha1-/lo0sMvOErWqaitAPuLnO2AvFEU=", "dev": true, "requires": { @@ -1794,7 +1810,7 @@ }, "readable-stream": { "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "dev": true, "requires": { @@ -1918,9 +1934,9 @@ } }, "split": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz", - "integrity": "sha1-zQ7qXmOiEd//frDwkcQTPi0N0o8=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz", + "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==", "dev": true, "requires": { "through": "2.3.8" @@ -1956,12 +1972,13 @@ "dev": true }, "stream-combiner": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz", - "integrity": "sha1-TV5DPBhSYd3mI8o/RMWGvPXErRQ=", + "version": "0.2.2", + "resolved": "http://registry.npmjs.org/stream-combiner/-/stream-combiner-0.2.2.tgz", + "integrity": "sha1-rsjLrBd7Vrb0+kec7YwZEs7lKFg=", "dev": true, "requires": { - "duplexer": "0.1.1" + "duplexer": "0.1.1", + "through": "2.3.8" } }, "stream-shift": { @@ -2035,7 +2052,7 @@ }, "through": { "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "resolved": "http://registry.npmjs.org/through/-/through-2.3.8.tgz", "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", "dev": true }, @@ -2100,7 +2117,7 @@ }, "tunnel": { "version": "0.0.4", - "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.4.tgz", + "resolved": "http://registry.npmjs.org/tunnel/-/tunnel-0.0.4.tgz", "integrity": "sha1-LTeFoVjBdMmhbcLARuxfxfF0IhM=", "dev": true }, @@ -2282,16 +2299,16 @@ } }, "vsce": { - "version": "1.46.0", - "resolved": "https://registry.npmjs.org/vsce/-/vsce-1.46.0.tgz", - "integrity": "sha512-cNQru5mXBPUtMDgwRNoespaR0gjdL09hV1KWktT5wkmTZfv0dSaAqqGAfr+2UI0aJTGttCcO3xKFQqtIcJpczA==", + "version": "1.48.0", + "resolved": "https://registry.npmjs.org/vsce/-/vsce-1.48.0.tgz", + "integrity": "sha512-1qJn6QLRTu26FIvvMbK/gzHLLdxJVTg9CUTSnCjJHObCCF5CQ0F3FUv7t+5cT7i0J5v5YljrsRY09u7dPBcEnA==", "dev": true, "requires": { "cheerio": "1.0.0-rc.2", - "commander": "2.11.0", + "commander": "2.18.0", "denodeify": "1.2.1", "glob": "7.1.3", - "lodash": "4.17.10", + "lodash": "4.17.11", "markdown-it": "8.4.2", "mime": "1.6.0", "minimatch": "3.0.4", @@ -2329,31 +2346,31 @@ } }, "vscode-jsonrpc": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-3.6.2.tgz", - "integrity": "sha512-T24Jb5V48e4VgYliUXMnZ379ItbrXgOimweKaJshD84z+8q7ZOZjJan0MeDe+Ugb+uqERDVV8SBmemaGMSMugA==" + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-4.0.0.tgz", + "integrity": "sha512-perEnXQdQOJMTDFNv+UF3h1Y0z4iSiaN9jIlb0OqIYgosPCZGYh/MCUlkFtV2668PL69lRDO32hmvL2yiidUYg==" }, "vscode-languageclient": { "version": "4.4.2", "resolved": "https://registry.npmjs.org/vscode-languageclient/-/vscode-languageclient-4.4.2.tgz", "integrity": "sha512-9TUzsg1UM6n1UEyPlWbDf7tK1wJAK7UGFRmGDN8sz4KmbbDiVRh6YicaB/5oRSVTpuV47PdJpYlOl3SJ0RiK1Q==", "requires": { - "vscode-languageserver-protocol": "3.12.0" + "vscode-languageserver-protocol": "3.13.0" } }, "vscode-languageserver-protocol": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.12.0.tgz", - "integrity": "sha512-evY6hmyzLnwQrqlQWPrNBq1z8wrSNjLesmgPzeS6Zv11mVS5UJRel26hbM/DH5tHdn45huNzRW0eFHRmIm8LpA==", + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.13.0.tgz", + "integrity": "sha512-2ZGKwI+P2ovQll2PGAp+2UfJH+FK9eait86VBUdkPd9HRlm8e58aYT9pV/NYanHOcp3pL6x2yTLVCFMcTer0mg==", "requires": { - "vscode-jsonrpc": "3.6.2", - "vscode-languageserver-types": "3.12.0" + "vscode-jsonrpc": "4.0.0", + "vscode-languageserver-types": "3.13.0" } }, "vscode-languageserver-types": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.12.0.tgz", - "integrity": "sha512-UxqnpzBToPO7Mi2tr/s5JeyPOSKSJtLB8lIdxCg9ZNdvP2cU8wS7iTDtwQKz91Ne4CUmTdf85ddR5SIZKXmMjQ==" + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.13.0.tgz", + "integrity": "sha512-BnJIxS+5+8UWiNKCP7W3g9FlE7fErFw0ofP5BXJe7c2tl0VeWh+nNHFbwAS2vmVC4a5kYxHBjRy0UeOtziemVA==" }, "vso-node-api": { "version": "6.1.2-preview", diff --git a/code/package.json b/editors/code/package.json similarity index 82% rename from code/package.json rename to editors/code/package.json index 87e715c44b..cc8fb93f58 100644 --- a/code/package.json +++ b/editors/code/package.json @@ -1,11 +1,11 @@ { - "name": "rcf-lsp", - "displayName": "rcf-lsp", + "name": "ra-lsp", + "displayName": "ra-lsp", "description": "", "version": "0.0.1", "publisher": "matklad", "repository": { - "url": "https://github.com/matklad/libsyntax2/" + "url": "https://github.com/matklad/rust-analyzer/" }, "categories": [ "Other" @@ -58,57 +58,57 @@ ], "commands": [ { - "command": "libsyntax-rust.createFile", + "command": "ra-lsp.createFile", "title": "Show Rust syntax tree" }, { - "command": "libsyntax-rust.syntaxTree", + "command": "ra-lsp.syntaxTree", "title": "Show Rust syntax tree" }, { - "command": "libsyntax-rust.extendSelection", + "command": "ra-lsp.extendSelection", "title": "Rust Extend Selection" }, { - "command": "libsyntax-rust.matchingBrace", + "command": "ra-lsp.matchingBrace", "title": "Rust Matching Brace" }, { - "command": "libsyntax-rust.parentModule", + "command": "ra-lsp.parentModule", "title": "Rust Parent Module" }, { - "command": "libsyntax-rust.joinLines", + "command": "ra-lsp.joinLines", "title": "Rust Join Lines" }, { - "command": "libsyntax-rust.run", + "command": "ra-lsp.run", "title": "Rust Run" } ], "keybindings": [ { - "command": "libsyntax-rust.parentModule", + "command": "ra-lsp.parentModule", "key": "ctrl+u", "when": "editorTextFocus && editorLangId == rust" }, { - "command": "libsyntax-rust.matchingBrace", + "command": "ra-lsp.matchingBrace", "key": "ctrl+shift+m", "when": "editorTextFocus && editorLangId == rust" }, { - "command": "libsyntax-rust.extendSelection", + "command": "ra-lsp.extendSelection", "key": "ctrl+w", "when": "editorTextFocus && editorLangId == rust" }, { - "command": "libsyntax-rust.joinLines", + "command": "ra-lsp.joinLines", "key": "ctrl+shift+j", "when": "editorTextFocus && editorLangId == rust" }, { - "command": "libsyntax-rust.run", + "command": "ra-lsp.run", "key": "ctrl+r", "when": "editorTextFocus && editorLangId == rust" } diff --git a/code/src/extension.ts b/editors/code/src/extension.ts similarity index 94% rename from code/src/extension.ts rename to editors/code/src/extension.ts index 53ef83aab7..2c42c07fe0 100644 --- a/code/src/extension.ts +++ b/editors/code/src/extension.ts @@ -7,7 +7,7 @@ import { DH_UNABLE_TO_CHECK_GENERATOR } from 'constants'; let client: lc.LanguageClient; let uris = { - syntaxTree: vscode.Uri.parse('libsyntax-rust://syntaxtree') + syntaxTree: vscode.Uri.parse('ra-lsp://syntaxtree') } @@ -20,8 +20,8 @@ export function activate(context: vscode.ExtensionContext) { dispose(vscode.commands.registerCommand(name, f)) } - registerCommand('libsyntax-rust.syntaxTree', () => openDoc(uris.syntaxTree)) - registerCommand('libsyntax-rust.extendSelection', async () => { + registerCommand('ra-lsp.syntaxTree', () => openDoc(uris.syntaxTree)) + registerCommand('ra-lsp.extendSelection', async () => { let editor = vscode.window.activeTextEditor if (editor == null || editor.document.languageId != "rust") return let request: ExtendSelectionParams = { @@ -36,7 +36,7 @@ export function activate(context: vscode.ExtensionContext) { return new vscode.Selection(r.start, r.end) }) }) - registerCommand('libsyntax-rust.matchingBrace', async () => { + registerCommand('ra-lsp.matchingBrace', async () => { let editor = vscode.window.activeTextEditor if (editor == null || editor.document.languageId != "rust") return let request: FindMatchingBraceParams = { @@ -53,7 +53,7 @@ export function activate(context: vscode.ExtensionContext) { }) editor.revealRange(editor.selection) }) - registerCommand('libsyntax-rust.joinLines', async () => { + registerCommand('ra-lsp.joinLines', async () => { let editor = vscode.window.activeTextEditor if (editor == null || editor.document.languageId != "rust") return let request: JoinLinesParams = { @@ -63,7 +63,7 @@ export function activate(context: vscode.ExtensionContext) { let change = await client.sendRequest("m/joinLines", request) await applySourceChange(change) }) - registerCommand('libsyntax-rust.parentModule', async () => { + registerCommand('ra-lsp.parentModule', async () => { let editor = vscode.window.activeTextEditor if (editor == null || editor.document.languageId != "rust") return let request: lc.TextDocumentIdentifier = { @@ -81,7 +81,7 @@ export function activate(context: vscode.ExtensionContext) { }) let prevRunnable: RunnableQuickPick | undefined = undefined - registerCommand('libsyntax-rust.run', async () => { + registerCommand('ra-lsp.run', async () => { let editor = vscode.window.activeTextEditor if (editor == null || editor.document.languageId != "rust") return let textDocument: lc.TextDocumentIdentifier = { @@ -110,10 +110,10 @@ export function activate(context: vscode.ExtensionContext) { return await vscode.tasks.executeTask(task) } }) - registerCommand('libsyntax-rust.applySourceChange', applySourceChange) + registerCommand('ra-lsp.applySourceChange', applySourceChange) dispose(vscode.workspace.registerTextDocumentContentProvider( - 'libsyntax-rust', + 'ra-lsp', textDocumentContentProvider )) startServer() @@ -149,9 +149,7 @@ export function deactivate(): Thenable { function startServer() { let run: lc.Executable = { - // command: "cargo", - // args: ["run", "--package", "m"], - command: "m", + command: "ra_lsp_server", options: { cwd: "." } } let serverOptions: lc.ServerOptions = { @@ -164,8 +162,8 @@ function startServer() { }; client = new lc.LanguageClient( - 'm', - 'm languge server', + 'ra-lsp', + 'rust-analyzer languge server', serverOptions, clientOptions, ); diff --git a/code/tsconfig.json b/editors/code/tsconfig.json similarity index 100% rename from code/tsconfig.json rename to editors/code/tsconfig.json