diff options
Diffstat (limited to 'src/syntax/mod.rs')
| -rw-r--r-- | src/syntax/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/syntax/mod.rs b/src/syntax/mod.rs index c2b06efe..89937f2c 100644 --- a/src/syntax/mod.rs +++ b/src/syntax/mod.rs @@ -13,7 +13,7 @@ pub use highlight::*; pub use span::*; use self::ast::{MathNode, RawNode, TypedNode, Unit}; -use crate::diag::Error; +use crate::diag::SourceError; use crate::source::SourceId; use crate::util::EcoString; @@ -67,14 +67,14 @@ impl SyntaxNode { } /// The error messages for this node and its descendants. - pub fn errors(&self) -> Vec<Error> { + pub fn errors(&self) -> Vec<SourceError> { if !self.erroneous() { return vec![]; } match self.kind() { &NodeKind::Error(pos, ref message) => { - vec![Error::new(self.span().with_pos(pos), message)] + vec![SourceError::new(self.span().with_pos(pos), message)] } _ => self .children() |
