mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
pass through correct path and type for ingested file
This commit is contained in:
parent
0c366949cb
commit
56ed985cc9
7 changed files with 25 additions and 19 deletions
|
@ -730,7 +730,10 @@ pub fn canonicalize_expr<'a>(
|
|||
ast::Expr::Str(literal) => flatten_str_literal(env, var_store, scope, literal),
|
||||
|
||||
// TODO: is this where we should finally load the file?
|
||||
ast::Expr::IngestedFile(literal) => flatten_str_literal(env, var_store, scope, literal),
|
||||
ast::Expr::IngestedFile(file_path, _) => (
|
||||
Expr::Str(file_path.to_str().unwrap().into()),
|
||||
Output::default(),
|
||||
),
|
||||
|
||||
ast::Expr::SingleQuote(string) => {
|
||||
let mut it = string.chars().peekable();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue