Compare commits

..

No commits in common. "7956171411ab569b87e21ad261fb114fc6f33f0c" and "2d4bbaa174c5b64f68b8903ce4b70d767144555a" have entirely different histories.

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(Use { path, span: Span::new(&(start..end), self.file.clone()) }),
kind: ASTNodeKind::Use(path),
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(),
_ => todo!("Implement better error handling"),
_ => String::new(),
}),
span: node.span.clone(),
attributes: node.attributes.clone(),