add ingest file to can ir and start pipelining it through the compiler

This commit is contained in:
Brendan Hansknecht 2023-04-03 17:40:54 -07:00
parent 7c77f7c2a2
commit d42aa43b41
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
7 changed files with 59 additions and 44 deletions

View file

@ -375,6 +375,12 @@ pub fn constrain_expr(
let expected_index = expected;
constraints.equal_types(str_index, expected_index, Category::Str, region)
}
IngestedFile(_, _) => {
// This is probably where real type checking happens?
let str_index = constraints.push_type(types, Types::STR);
let expected_index = expected;
constraints.equal_types(str_index, expected_index, Category::Str, region)
}
SingleQuote(num_var, precision_var, _, bound) => single_quote_literal(
types,
constraints,
@ -3943,6 +3949,7 @@ fn is_generalizable_expr(mut expr: &Expr) -> bool {
}
OpaqueRef { argument, .. } => expr = &argument.1.value,
Str(_)
| IngestedFile(_, _)
| List { .. }
| SingleQuote(_, _, _, _)
| When { .. }