Compare commits
2 commits
2d4bbaa174
...
7956171411
| Author | SHA1 | Date | |
|---|---|---|---|
| 7956171411 | |||
| d79a81672d |
2 changed files with 2 additions and 2 deletions
|
|
@ -134,7 +134,7 @@ impl Parser {
|
||||||
};
|
};
|
||||||
let end = self.peek_span().unwrap_or(start..start).end;
|
let end = self.peek_span().unwrap_or(start..start).end;
|
||||||
Ok(ASTNode {
|
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()),
|
span: Span::new(&(start..end), self.file.clone()),
|
||||||
attributes,
|
attributes,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -599,7 +599,7 @@ impl TypeChecker {
|
||||||
Ok(TypedASTNode {
|
Ok(TypedASTNode {
|
||||||
kind: TypedASTNodeKind::Use(match &node.kind {
|
kind: TypedASTNodeKind::Use(match &node.kind {
|
||||||
ASTNodeKind::Use(p) => p.clone(),
|
ASTNodeKind::Use(p) => p.clone(),
|
||||||
_ => String::new(),
|
_ => todo!("Implement better error handling"),
|
||||||
}),
|
}),
|
||||||
span: node.span.clone(),
|
span: node.span.clone(),
|
||||||
attributes: node.attributes.clone(),
|
attributes: node.attributes.clone(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue