diff options
author | Aleksey Kladov <[email protected]> | 2018-08-25 09:40:17 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-25 09:40:17 +0100 |
commit | 9fae494a8da347a32cdcd3dcd714ba00aaff9664 (patch) | |
tree | 9fe4fb51c374d036e22d5a60ce50b63dbe287142 /crates/libanalysis/src | |
parent | f104458d45e30024f8a4a02c1ad4101ed74b08f9 (diff) |
Move ParsedFile to top
Diffstat (limited to 'crates/libanalysis/src')
-rw-r--r-- | crates/libanalysis/src/lib.rs | 3 | ||||
-rw-r--r-- | crates/libanalysis/src/module_map.rs | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/crates/libanalysis/src/lib.rs b/crates/libanalysis/src/lib.rs index fee0d10d6..a0f17a689 100644 --- a/crates/libanalysis/src/lib.rs +++ b/crates/libanalysis/src/lib.rs | |||
@@ -27,8 +27,9 @@ use std::{ | |||
27 | }; | 27 | }; |
28 | 28 | ||
29 | use libsyntax2::{ | 29 | use libsyntax2::{ |
30 | ParsedFile, | ||
30 | TextUnit, TextRange, SmolStr, | 31 | TextUnit, TextRange, SmolStr, |
31 | ast::{self, AstNode, NameOwner, ParsedFile}, | 32 | ast::{self, AstNode, NameOwner}, |
32 | SyntaxKind::*, | 33 | SyntaxKind::*, |
33 | }; | 34 | }; |
34 | use libeditor::{LineIndex, FileSymbol, find_node}; | 35 | use libeditor::{LineIndex, FileSymbol, find_node}; |
diff --git a/crates/libanalysis/src/module_map.rs b/crates/libanalysis/src/module_map.rs index 83e6e57f7..e8d32928a 100644 --- a/crates/libanalysis/src/module_map.rs +++ b/crates/libanalysis/src/module_map.rs | |||
@@ -4,7 +4,8 @@ use std::{ | |||
4 | 4 | ||
5 | use parking_lot::{RwLock, RwLockReadGuard, RwLockWriteGuard}; | 5 | use parking_lot::{RwLock, RwLockReadGuard, RwLockWriteGuard}; |
6 | use libsyntax2::{ | 6 | use libsyntax2::{ |
7 | ast::{self, AstNode, NameOwner, ParsedFile}, | 7 | ParsedFile, |
8 | ast::{self, AstNode, NameOwner}, | ||
8 | SyntaxNode, SmolStr, | 9 | SyntaxNode, SmolStr, |
9 | }; | 10 | }; |
10 | use {FileId, FileResolver}; | 11 | use {FileId, FileResolver}; |