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/func.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/func.rs') diff --git a/src/func.rs b/src/func.rs index e948d049..af3cd091 100644 --- a/src/func.rs +++ b/src/func.rs @@ -52,8 +52,8 @@ pub trait ParseFunc { /// /// parse(header, body, state, f) { /// let body = body!(opt: body, state, f); -/// let hidden = header.args.pos.get::(&mut f.problems) -/// .or_missing(&mut f.problems, header.name.span, "hidden") +/// let hidden = header.args.pos.get::(&mut f.diagnostics) +/// .or_missing(&mut f.diagnostics, header.name.span, "hidden") /// .unwrap_or(false); /// /// HiderFunc { body: if hidden { None } else { body } } -- cgit v1.2.3