From 45fc91cc470fa91d5b8905fea2cab4d42bbe72b3 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 20 Feb 2019 16:24:39 +0300 Subject: rearrange modules in a suggestd reading order --- crates/ra_syntax/src/lib.rs | 17 +++++++++-------- crates/ra_syntax/src/parsing.rs | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) (limited to 'crates') diff --git a/crates/ra_syntax/src/lib.rs b/crates/ra_syntax/src/lib.rs index edd5b4a28..b12282b39 100644 --- a/crates/ra_syntax/src/lib.rs +++ b/crates/ra_syntax/src/lib.rs @@ -16,18 +16,19 @@ #![allow(missing_docs)] //#![warn(unreachable_pub)] // rust-lang/rust#47816 -pub mod algo; -pub mod ast; +mod syntax_kinds; +mod syntax_node; +mod syntax_text; +mod syntax_error; mod parsing; mod string_lexing; -mod syntax_kinds; -/// Utilities for simple uses of the parser. -pub mod utils; mod validation; -mod syntax_node; mod ptr; -mod syntax_error; -mod syntax_text; + +pub mod algo; +pub mod ast; +/// Utilities for simple uses of the parser. +pub mod utils; pub use rowan::{SmolStr, TextRange, TextUnit}; pub use crate::{ diff --git a/crates/ra_syntax/src/parsing.rs b/crates/ra_syntax/src/parsing.rs index 023e1031c..761accd7b 100644 --- a/crates/ra_syntax/src/parsing.rs +++ b/crates/ra_syntax/src/parsing.rs @@ -4,8 +4,8 @@ mod builder; mod lexer; mod parser_impl; mod parser_api; -mod reparsing; mod grammar; +mod reparsing; use crate::{ SyntaxError, -- cgit v1.2.3