diff options
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r-- | crates/ra_syntax/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/ra_syntax/src/lib.rs | 13 | ||||
-rw-r--r-- | crates/ra_syntax/src/parser_api.rs | 3 | ||||
-rw-r--r-- | crates/ra_syntax/src/reparsing.rs | 8 |
4 files changed, 8 insertions, 18 deletions
diff --git a/crates/ra_syntax/Cargo.toml b/crates/ra_syntax/Cargo.toml index 54ee72386..8ad8ed196 100644 --- a/crates/ra_syntax/Cargo.toml +++ b/crates/ra_syntax/Cargo.toml | |||
@@ -1,5 +1,5 @@ | |||
1 | [package] | 1 | [package] |
2 | edition = "2015" | 2 | edition = "2018" |
3 | name = "ra_syntax" | 3 | name = "ra_syntax" |
4 | version = "0.1.0" | 4 | version = "0.1.0" |
5 | authors = ["Aleksey Kladov <[email protected]>"] | 5 | authors = ["Aleksey Kladov <[email protected]>"] |
diff --git a/crates/ra_syntax/src/lib.rs b/crates/ra_syntax/src/lib.rs index 330f68053..0e5c9baad 100644 --- a/crates/ra_syntax/src/lib.rs +++ b/crates/ra_syntax/src/lib.rs | |||
@@ -20,17 +20,6 @@ | |||
20 | #![allow(missing_docs)] | 20 | #![allow(missing_docs)] |
21 | //#![warn(unreachable_pub)] // rust-lang/rust#47816 | 21 | //#![warn(unreachable_pub)] // rust-lang/rust#47816 |
22 | 22 | ||
23 | extern crate arrayvec; | ||
24 | extern crate drop_bomb; | ||
25 | extern crate itertools; | ||
26 | extern crate parking_lot; | ||
27 | extern crate rowan; | ||
28 | extern crate unicode_xid; | ||
29 | |||
30 | #[cfg(test)] | ||
31 | #[macro_use] | ||
32 | extern crate test_utils; | ||
33 | |||
34 | pub mod algo; | 23 | pub mod algo; |
35 | pub mod ast; | 24 | pub mod ast; |
36 | mod lexer; | 25 | mod lexer; |
@@ -48,11 +37,11 @@ pub mod utils; | |||
48 | mod validation; | 37 | mod validation; |
49 | mod yellow; | 38 | mod yellow; |
50 | 39 | ||
40 | pub use rowan::{SmolStr, TextRange, TextUnit}; | ||
51 | pub use crate::{ | 41 | pub use crate::{ |
52 | ast::AstNode, | 42 | ast::AstNode, |
53 | lexer::{tokenize, Token}, | 43 | lexer::{tokenize, Token}, |
54 | reparsing::AtomEdit, | 44 | reparsing::AtomEdit, |
55 | rowan::{SmolStr, TextRange, TextUnit}, | ||
56 | syntax_kinds::SyntaxKind, | 45 | syntax_kinds::SyntaxKind, |
57 | yellow::{ | 46 | yellow::{ |
58 | Direction, OwnedRoot, RefRoot, SyntaxError, SyntaxNode, SyntaxNodeRef, TreeRoot, WalkEvent, Location, | 47 | Direction, OwnedRoot, RefRoot, SyntaxError, SyntaxNode, SyntaxNodeRef, TreeRoot, WalkEvent, Location, |
diff --git a/crates/ra_syntax/src/parser_api.rs b/crates/ra_syntax/src/parser_api.rs index 42046d36f..c37c30e34 100644 --- a/crates/ra_syntax/src/parser_api.rs +++ b/crates/ra_syntax/src/parser_api.rs | |||
@@ -1,5 +1,6 @@ | |||
1 | use drop_bomb::DropBomb; | ||
2 | |||
1 | use crate::{ | 3 | use crate::{ |
2 | drop_bomb::DropBomb, | ||
3 | parser_impl::ParserImpl, | 4 | parser_impl::ParserImpl, |
4 | token_set::TokenSet, | 5 | token_set::TokenSet, |
5 | SyntaxKind::{self, ERROR}, | 6 | SyntaxKind::{self, ERROR}, |
diff --git a/crates/ra_syntax/src/reparsing.rs b/crates/ra_syntax/src/reparsing.rs index ddcb8f6f6..732fb0e4a 100644 --- a/crates/ra_syntax/src/reparsing.rs +++ b/crates/ra_syntax/src/reparsing.rs | |||
@@ -179,10 +179,10 @@ fn merge_errors( | |||
179 | 179 | ||
180 | #[cfg(test)] | 180 | #[cfg(test)] |
181 | mod tests { | 181 | mod tests { |
182 | use super::{ | 182 | use test_utils::{extract_range, assert_eq_text}; |
183 | super::{test_utils::extract_range, text_utils::replace_range, utils::dump_tree, SourceFileNode}, | 183 | |
184 | reparse_block, reparse_leaf, AtomEdit, GreenNode, SyntaxError, SyntaxNodeRef, | 184 | use crate::{SourceFileNode, text_utils::replace_range, utils::dump_tree }; |
185 | }; | 185 | use super::*; |
186 | 186 | ||
187 | fn do_check<F>(before: &str, replace_with: &str, reparser: F) | 187 | fn do_check<F>(before: &str, replace_with: &str, reparser: F) |
188 | where | 188 | where |