From d91a98ec843ec8562c58ccb01a1e29d00cc744dc Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 7 Jan 2019 16:15:47 +0300 Subject: switch ra_syntax to new rowan API --- crates/ra_syntax/tests/test.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/ra_syntax/tests') diff --git a/crates/ra_syntax/tests/test.rs b/crates/ra_syntax/tests/test.rs index 2235dc401..3243b27ae 100644 --- a/crates/ra_syntax/tests/test.rs +++ b/crates/ra_syntax/tests/test.rs @@ -9,8 +9,8 @@ use std::{ use test_utils::{project_dir, dir_tests, read_text, collect_tests}; use ra_syntax::{ + SourceFile, AstNode, utils::{check_fuzz_invariants, dump_tree}, - SourceFileNode, }; #[test] @@ -27,7 +27,7 @@ fn parser_tests() { &test_data_dir(), &["parser/inline/ok", "parser/ok"], |text, path| { - let file = SourceFileNode::parse(text); + let file = SourceFile::parse(text); let errors = file.errors(); assert_eq!( &*errors, @@ -42,7 +42,7 @@ fn parser_tests() { &test_data_dir(), &["parser/err", "parser/inline/err"], |text, path| { - let file = SourceFileNode::parse(text); + let file = SourceFile::parse(text); let errors = file.errors(); assert_ne!( &*errors, @@ -85,7 +85,7 @@ fn self_hosting_parsing() { { count += 1; let text = read_text(entry.path()); - let node = SourceFileNode::parse(&text); + let node = SourceFile::parse(&text); let errors = node.errors(); assert_eq!( &*errors, -- cgit v1.2.3