diff options
Diffstat (limited to 'crates/ra_syntax/src/parsing')
-rw-r--r-- | crates/ra_syntax/src/parsing/builder.rs | 5 | ||||
-rw-r--r-- | crates/ra_syntax/src/parsing/parser_impl.rs | 15 | ||||
-rw-r--r-- | crates/ra_syntax/src/parsing/parser_impl/event.rs | 2 | ||||
-rw-r--r-- | crates/ra_syntax/src/parsing/reparsing.rs | 3 |
4 files changed, 14 insertions, 11 deletions
diff --git a/crates/ra_syntax/src/parsing/builder.rs b/crates/ra_syntax/src/parsing/builder.rs index 9d7ad06fe..9090c60c2 100644 --- a/crates/ra_syntax/src/parsing/builder.rs +++ b/crates/ra_syntax/src/parsing/builder.rs | |||
@@ -1,8 +1,9 @@ | |||
1 | use crate::{ | 1 | use crate::{ |
2 | parsing::parser_impl::Sink, | 2 | parsing::parser_impl::Sink, |
3 | syntax_node::{GreenNode, RaTypes, SyntaxError}, | 3 | syntax_node::{GreenNode, RaTypes}, |
4 | SmolStr, SyntaxKind, | 4 | SmolStr, SyntaxKind, SyntaxError, |
5 | }; | 5 | }; |
6 | |||
6 | use rowan::GreenNodeBuilder; | 7 | use rowan::GreenNodeBuilder; |
7 | 8 | ||
8 | pub(crate) struct GreenBuilder { | 9 | pub(crate) struct GreenBuilder { |
diff --git a/crates/ra_syntax/src/parsing/parser_impl.rs b/crates/ra_syntax/src/parsing/parser_impl.rs index b710e9d5d..8cce1ab01 100644 --- a/crates/ra_syntax/src/parsing/parser_impl.rs +++ b/crates/ra_syntax/src/parsing/parser_impl.rs | |||
@@ -5,15 +5,16 @@ use std::cell::Cell; | |||
5 | 5 | ||
6 | use crate::{ | 6 | use crate::{ |
7 | SmolStr, | 7 | SmolStr, |
8 | syntax_node::syntax_error::{ParseError, SyntaxError}, | 8 | syntax_error::{ParseError, SyntaxError}, |
9 | parsing::{ | 9 | parsing::{ |
10 | lexer::Token, | 10 | lexer::Token, |
11 | parser_api::Parser, | 11 | parser_api::Parser, |
12 | parser_impl::{ | 12 | parser_impl::{ |
13 | event::{Event, EventProcessor}, | 13 | event::{Event, EventProcessor}, |
14 | input::{InputPosition, ParserInput}, | 14 | input::{InputPosition, ParserInput}, |
15 | }, | ||
15 | }, | 16 | }, |
16 | }}; | 17 | }; |
17 | 18 | ||
18 | use crate::SyntaxKind::{self, EOF, TOMBSTONE}; | 19 | use crate::SyntaxKind::{self, EOF, TOMBSTONE}; |
19 | 20 | ||
diff --git a/crates/ra_syntax/src/parsing/parser_impl/event.rs b/crates/ra_syntax/src/parsing/parser_impl/event.rs index fb43e19cc..2ddbdd34d 100644 --- a/crates/ra_syntax/src/parsing/parser_impl/event.rs +++ b/crates/ra_syntax/src/parsing/parser_impl/event.rs | |||
@@ -13,7 +13,7 @@ use crate::{ | |||
13 | SmolStr, | 13 | SmolStr, |
14 | SyntaxKind::{self, *}, | 14 | SyntaxKind::{self, *}, |
15 | TextRange, TextUnit, | 15 | TextRange, TextUnit, |
16 | syntax_node::syntax_error::{ | 16 | syntax_error::{ |
17 | ParseError, | 17 | ParseError, |
18 | SyntaxError, | 18 | SyntaxError, |
19 | SyntaxErrorKind, | 19 | SyntaxErrorKind, |
diff --git a/crates/ra_syntax/src/parsing/reparsing.rs b/crates/ra_syntax/src/parsing/reparsing.rs index 0a24dae0e..a88f53dae 100644 --- a/crates/ra_syntax/src/parsing/reparsing.rs +++ b/crates/ra_syntax/src/parsing/reparsing.rs | |||
@@ -1,7 +1,8 @@ | |||
1 | use crate::{ | 1 | use crate::{ |
2 | SyntaxKind::*, TextRange, TextUnit, | 2 | SyntaxKind::*, TextRange, TextUnit, |
3 | algo, | 3 | algo, |
4 | syntax_node::{GreenNode, SyntaxError, SyntaxNode}, | 4 | syntax_node::{GreenNode, SyntaxNode}, |
5 | syntax_error::SyntaxError, | ||
5 | parsing::{ | 6 | parsing::{ |
6 | grammar, | 7 | grammar, |
7 | parser_impl, | 8 | parser_impl, |