Compare commits

...

2 commits

Author SHA1 Message Date
7956171411 Correct logic 2025-12-16 13:05:50 +02:00
d79a81672d Replace with todo 2025-12-16 13:05:37 +02:00
2 changed files with 2 additions and 2 deletions

View file

@ -134,7 +134,7 @@ impl Parser {
};
let end = self.peek_span().unwrap_or(start..start).end;
Ok(ASTNode {
kind: ASTNodeKind::Use(path),
kind: ASTNodeKind::Use(Use { path, span: Span::new(&(start..end), self.file.clone()) }),
span: Span::new(&(start..end), self.file.clone()),
attributes,
})

View file

@ -599,7 +599,7 @@ impl TypeChecker {
Ok(TypedASTNode {
kind: TypedASTNodeKind::Use(match &node.kind {
ASTNodeKind::Use(p) => p.clone(),
_ => String::new(),
_ => todo!("Implement better error handling"),
}),
span: node.span.clone(),
attributes: node.attributes.clone(),