From 8c478a794c667357b0c9a82ffc5c3eb5ca1b1b0d Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 31 Dec 2017 23:34:29 +0300 Subject: Parser: initial --- tests/parser.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'tests/parser.rs') diff --git a/tests/parser.rs b/tests/parser.rs index f61b6830b..e71b48852 100644 --- a/tests/parser.rs +++ b/tests/parser.rs @@ -7,7 +7,7 @@ use std::path::{PathBuf, Path}; use std::fs::read_dir; use std::fmt::Write; -use libsyntax2::{tokenize, Token, Node, File, FileBuilder}; +use libsyntax2::{tokenize, parse, Token, Node, File, FileBuilder}; #[test] fn parser_tests() { @@ -67,10 +67,3 @@ fn dump_tree(file: &File) -> String { } } } - -fn parse(text: String, tokens: &[Token]) -> File { - let mut builder = FileBuilder::new(text); - builder.start_internal(libsyntax2::syntax_kinds::FILE); - builder.finish_internal(); - builder.finish() -} \ No newline at end of file -- cgit v1.2.3