add ingested file category for error messages

This commit is contained in:
Brendan Hansknecht 2023-04-03 18:04:43 -07:00
parent d42aa43b41
commit 7079361841
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
3 changed files with 8 additions and 13 deletions

View file

@ -302,19 +302,7 @@ impl Expr {
Self::Int(..) => Category::Int,
Self::Float(..) => Category::Frac,
Self::Str(..) => Category::Str,
Self::IngestedFile(_, anno) => {
dbg!(&anno);
todo!()
// if let Type::Apply(0, 1, 2) = anno.typ {
// Category::Str
// } else if let Type::Apply(_, _, _) = anno.typ {
// Category::List
// } else {
// todo!(
// "Not sure how we should handle other types here that are probably invalid"
// )
// }
}
Self::IngestedFile(..) => Category::IngestedFile,
Self::SingleQuote(..) => Category::Character,
Self::List { .. } => Category::List,
&Self::Var(sym, _) => Category::Lookup(sym),