summaryrefslogtreecommitdiff
path: root/src/parse/parser.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-10-04 20:22:11 +0200
committerLaurenz <laurmaedje@gmail.com>2020-10-04 20:22:11 +0200
commitef8aa763faa59fd62c90c6d6245e8d2c5eece35e (patch)
treed36192af0c770b076a5004ba8bcae3c2df728c75 /src/parse/parser.rs
parenta41d7ab47dda1e30465bdf91fd02bca0e634a38d (diff)
Shorten some names ↔
Diffstat (limited to 'src/parse/parser.rs')
-rw-r--r--src/parse/parser.rs12
1 files changed, 6 insertions, 6 deletions
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<Diagnostic>) {
- self.f.diagnostics.push(diag);
+ pub fn diag(&mut self, diag: Spanned<Diag>) {
+ 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<Decoration>) {
- self.f.decorations.push(deco);
+ pub fn deco(&mut self, deco: Spanned<Deco>) {
+ self.f.decos.push(deco);
}
/// Update the token mode and push the previous mode onto a stack.