summaryrefslogtreecommitdiff
path: root/src/diag.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-10-17 16:47:07 +0200
committerLaurenz <laurmaedje@gmail.com>2022-10-17 17:11:01 +0200
commit4fd031a256b2ecfe524859d5599fafb386395572 (patch)
tree14787137b5188666a2133525d10ac0b72357551c /src/diag.rs
parent54b38c479060ac06213cb311f22b84bccdf88932 (diff)
More spans in AST
Diffstat (limited to 'src/diag.rs')
-rw-r--r--src/diag.rs13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/diag.rs b/src/diag.rs
index ed4d4756..f4725f00 100644
--- a/src/diag.rs
+++ b/src/diag.rs
@@ -9,7 +9,7 @@ use std::string::FromUtf8Error;
use comemo::Tracked;
-use crate::syntax::{Span, Spanned};
+use crate::syntax::{ErrorPos, Span, Spanned};
use crate::util::EcoString;
use crate::World;
@@ -83,17 +83,6 @@ impl SourceError {
}
}
-/// Where in a node an error should be annotated,
-#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
-pub enum ErrorPos {
- /// Over the full width of the node.
- Full,
- /// At the start of the node.
- Start,
- /// At the end of the node.
- End,
-}
-
/// A part of an error's [trace](SourceError::trace).
#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
pub enum Tracepoint {