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/parse/mod.rs | |
| parent | ec884ec1d85f6e1d7868db3e82d572579cc5d345 (diff) | |
Remove `SpanPos` in favor of `ErrorPos`
Diffstat (limited to 'src/parse/mod.rs')
| -rw-r--r-- | src/parse/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/parse/mod.rs b/src/parse/mod.rs index 832c297e..4f42442f 100644 --- a/src/parse/mod.rs +++ b/src/parse/mod.rs @@ -11,8 +11,9 @@ pub use tokens::*; use std::collections::HashSet; +use crate::diag::ErrorPos; use crate::syntax::ast::{Assoc, BinOp, UnOp}; -use crate::syntax::{NodeKind, SpanPos, SyntaxNode}; +use crate::syntax::{NodeKind, SyntaxNode}; use crate::util::EcoString; /// Parse a source file. @@ -811,7 +812,7 @@ fn item(p: &mut Parser, keyed: bool) -> ParseResult<NodeKind> { msg.push_str(", found "); msg.push_str(kind.name()); } - let error = NodeKind::Error(SpanPos::Full, msg); + let error = NodeKind::Error(ErrorPos::Full, msg); marker.end(p, error); p.eat(); marker.perform(p, NodeKind::Named, expr).ok(); |
