mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
add ingest file to can ir and start pipelining it through the compiler
This commit is contained in:
parent
7c77f7c2a2
commit
d42aa43b41
7 changed files with 59 additions and 44 deletions
|
@ -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 { .. }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue