introduce ForeignSymbol wrapper

This commit is contained in:
Folkert 2020-11-05 23:43:32 +01:00
parent 3cd132dd51
commit eae797a47a
4 changed files with 31 additions and 4 deletions

View file

@ -11,7 +11,7 @@ use crate::procedure::References;
use crate::scope::Scope;
use inlinable_string::InlinableString;
use roc_collections::all::{ImSet, MutMap, MutSet, SendMap};
use roc_module::ident::{Lowercase, TagName};
use roc_module::ident::{ForeignSymbol, Lowercase, TagName};
use roc_module::low_level::LowLevel;
use roc_module::operator::CalledVia;
use roc_module::symbol::Symbol;
@ -99,7 +99,7 @@ pub enum Expr {
ret_var: Variable,
},
ForeignCall {
foreign_symbol: InlinableString,
foreign_symbol: ForeignSymbol,
args: Vec<(Variable, Expr)>,
ret_var: Variable,
},