From 415c891d641fa305e7ddbbbcc78db990dd5d3564 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 29 Jul 2018 15:16:07 +0300 Subject: Reorganize --- src/parser/grammar/mod.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/parser/grammar') diff --git a/src/parser/grammar/mod.rs b/src/parser/grammar/mod.rs index 23216452f..085e62d56 100644 --- a/src/parser/grammar/mod.rs +++ b/src/parser/grammar/mod.rs @@ -21,11 +21,6 @@ //! After adding a new inline-test, run `cargo collect-tests` to extract //! it as a standalone text-fixture into `tests/data/parser/inline`, and //! run `cargo test` once to create the "gold" value. -use parser::parser::Parser; -use parser::token_set::TokenSet; -use SyntaxKind; -use syntax_kinds::*; - mod items; mod attributes; mod expressions; @@ -34,6 +29,14 @@ mod patterns; mod paths; mod type_params; +use { + SyntaxKind::{self, *}, + parser::{ + parser::Parser, + token_set::TokenSet + } +}; + pub(crate) fn file(p: &mut Parser) { let file = p.start(); p.eat(SHEBANG); -- cgit v1.2.3