diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-10-05 13:15:02 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-10-05 13:15:02 +0200 |
| commit | fd8160f3749135400b3d2c59bf6bfb729c081f16 (patch) | |
| tree | fcd9eee0af33ae71b4b5b5d38453a5af4a974403 /src/syntax/kind.rs | |
| parent | ec884ec1d85f6e1d7868db3e82d572579cc5d345 (diff) | |
Remove `SpanPos` in favor of `ErrorPos`
Diffstat (limited to 'src/syntax/kind.rs')
| -rw-r--r-- | src/syntax/kind.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax/kind.rs b/src/syntax/kind.rs index e76c93aa..77d4cd99 100644 --- a/src/syntax/kind.rs +++ b/src/syntax/kind.rs @@ -2,7 +2,7 @@ use std::hash::{Hash, Hasher}; use std::sync::Arc; use super::ast::{RawNode, Unit}; -use super::SpanPos; +use crate::diag::ErrorPos; use crate::util::EcoString; /// All syntactical building blocks that can be part of a Typst document. @@ -271,7 +271,7 @@ pub enum NodeKind { ReturnExpr, /// An invalid sequence of characters. - Error(SpanPos, EcoString), + Error(ErrorPos, EcoString), } impl NodeKind { |
