From ef8aa763faa59fd62c90c6d6245e8d2c5eece35e Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 4 Oct 2020 20:22:11 +0200 Subject: =?UTF-8?q?Shorten=20some=20names=20=E2=86=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/parse/parser.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/parse/parser.rs') diff --git a/src/parse/parser.rs b/src/parse/parser.rs index 041a61bc..83e9b096 100644 --- a/src/parse/parser.rs +++ b/src/parse/parser.rs @@ -1,8 +1,8 @@ use std::fmt::{self, Debug, Formatter}; use super::{Scanner, TokenMode, Tokens}; -use crate::diagnostic::Diagnostic; -use crate::syntax::{Decoration, Pos, Span, SpanWith, Spanned, Token}; +use crate::diag::Diag; +use crate::syntax::{Deco, Pos, Span, SpanWith, Spanned, Token}; use crate::Feedback; /// A convenient token-based parser. @@ -34,8 +34,8 @@ impl<'s> Parser<'s> { } /// Add a diagnostic to the feedback. - pub fn diag(&mut self, diag: Spanned) { - self.f.diagnostics.push(diag); + pub fn diag(&mut self, diag: Spanned) { + self.f.diags.push(diag); } /// Eat the next token and add a diagnostic that it was not the expected @@ -66,8 +66,8 @@ impl<'s> Parser<'s> { } /// Add a decoration to the feedback. - pub fn deco(&mut self, deco: Spanned) { - self.f.decorations.push(deco); + pub fn deco(&mut self, deco: Spanned) { + self.f.decos.push(deco); } /// Update the token mode and push the previous mode onto a stack. -- cgit v1.2.3