diff options
author | Aleksey Kladov <[email protected]> | 2018-11-07 15:32:33 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-11-07 15:42:36 +0000 |
commit | f8b36bbc3b968754b71844d942286e81415627b8 (patch) | |
tree | 72be8cc4bac951b00746291e4b357b86def7d4c7 /crates/ra_syntax/src/utils.rs | |
parent | 2119fe214303325e86174b139d7ad8193b2ce251 (diff) |
Rename File -> SourceFileNode
Diffstat (limited to 'crates/ra_syntax/src/utils.rs')
-rw-r--r-- | crates/ra_syntax/src/utils.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/utils.rs b/crates/ra_syntax/src/utils.rs index cad9544be..5bbdf80bb 100644 --- a/crates/ra_syntax/src/utils.rs +++ b/crates/ra_syntax/src/utils.rs | |||
@@ -1,4 +1,4 @@ | |||
1 | use crate::{File, SyntaxKind, SyntaxNodeRef, WalkEvent}; | 1 | use crate::{SourceFileNode, SyntaxKind, SyntaxNodeRef, WalkEvent}; |
2 | use std::fmt::Write; | 2 | use std::fmt::Write; |
3 | use std::str; | 3 | use std::str; |
4 | 4 | ||
@@ -45,7 +45,7 @@ pub fn dump_tree(syntax: SyntaxNodeRef) -> String { | |||
45 | } | 45 | } |
46 | 46 | ||
47 | pub fn check_fuzz_invariants(text: &str) { | 47 | pub fn check_fuzz_invariants(text: &str) { |
48 | let file = File::parse(text); | 48 | let file = SourceFileNode::parse(text); |
49 | let root = file.syntax(); | 49 | let root = file.syntax(); |
50 | validate_block_structure(root); | 50 | validate_block_structure(root); |
51 | let _ = file.ast(); | 51 | let _ = file.ast(); |