diff options
author | Zac Pullar-Strecker <[email protected]> | 2020-06-30 10:37:42 +0100 |
---|---|---|
committer | Zac Pullar-Strecker <[email protected]> | 2020-06-30 10:42:44 +0100 |
commit | d6f9e8806a26c5998a691974ba8e3655a2186766 (patch) | |
tree | b25b2a853e08a52c443dc25ddbe1aa55e146a6a5 /crates/ra_syntax | |
parent | dc32f756e0958368648ac151aab1bde40102a506 (diff) |
Remove unintentional changes
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r-- | crates/ra_syntax/src/lib.rs | 2 | ||||
-rw-r--r-- | crates/ra_syntax/src/parsing.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/lib.rs b/crates/ra_syntax/src/lib.rs index bd83eb2d2..9b7664576 100644 --- a/crates/ra_syntax/src/lib.rs +++ b/crates/ra_syntax/src/lib.rs | |||
@@ -47,7 +47,7 @@ use crate::syntax_node::GreenNode; | |||
47 | pub use crate::{ | 47 | pub use crate::{ |
48 | algo::InsertPosition, | 48 | algo::InsertPosition, |
49 | ast::{AstNode, AstToken}, | 49 | ast::{AstNode, AstToken}, |
50 | parsing::{lex_single_syntax_kind, lex_single_valid_syntax_kind, parse_text, tokenize, Token}, | 50 | parsing::{lex_single_syntax_kind, lex_single_valid_syntax_kind, tokenize, Token}, |
51 | ptr::{AstPtr, SyntaxNodePtr}, | 51 | ptr::{AstPtr, SyntaxNodePtr}, |
52 | syntax_error::SyntaxError, | 52 | syntax_error::SyntaxError, |
53 | syntax_node::{ | 53 | syntax_node::{ |
diff --git a/crates/ra_syntax/src/parsing.rs b/crates/ra_syntax/src/parsing.rs index 4ec0b8d59..0ed3c20ef 100644 --- a/crates/ra_syntax/src/parsing.rs +++ b/crates/ra_syntax/src/parsing.rs | |||
@@ -15,7 +15,7 @@ pub use lexer::*; | |||
15 | pub(crate) use self::reparsing::incremental_reparse; | 15 | pub(crate) use self::reparsing::incremental_reparse; |
16 | use ra_parser::SyntaxKind; | 16 | use ra_parser::SyntaxKind; |
17 | 17 | ||
18 | pub fn parse_text(text: &str) -> (GreenNode, Vec<SyntaxError>) { | 18 | pub(crate) fn parse_text(text: &str) -> (GreenNode, Vec<SyntaxError>) { |
19 | let (tokens, lexer_errors) = tokenize(&text); | 19 | let (tokens, lexer_errors) = tokenize(&text); |
20 | 20 | ||
21 | let mut token_source = TextTokenSource::new(text, &tokens); | 21 | let mut token_source = TextTokenSource::new(text, &tokens); |