From bbcdeb128cce04cd95714b7bc7af5a23a7e38bd2 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 29 Jul 2020 18:09:51 +0200 Subject: =?UTF-8?q?Move,=20rename=20and=20switch=20some=20things=20(boring?= =?UTF-8?q?)=20=F0=9F=9A=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Problems -> Diagnostics - Position -> Pos - offset_spans -> Offset trait - Size -> Length (and some more size types renamed) - Paper into its own module - scope::Parser -> parsing::CallParser - Create `Decorations` alias - Remove lots of double newlines - Switch from f32 to f64 --- src/syntax/test.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/syntax/test.rs') diff --git a/src/syntax/test.rs b/src/syntax/test.rs index 7b1e0830..639fbb61 100644 --- a/src/syntax/test.rs +++ b/src/syntax/test.rs @@ -39,11 +39,11 @@ macro_rules! span_vec { macro_rules! span_item { (($sl:tt:$sc:tt, $el:tt:$ec:tt, $v:expr)) => ({ - use $crate::syntax::span::{Position, Span, Spanned}; + use $crate::syntax::span::{Pos, Span, Spanned}; Spanned { span: Span::new( - Position::new($sl, $sc), - Position::new($el, $ec) + Pos::new($sl, $sc), + Pos::new($el, $ec) ), v: $v } -- cgit v1.2.3