mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
remove def_symbol field
This commit is contained in:
parent
6a51ba70c2
commit
2acbfa91f1
4 changed files with 1 additions and 8 deletions
|
@ -14,6 +14,7 @@ pub struct Annotation {
|
||||||
pub introduced_variables: IntroducedVariables,
|
pub introduced_variables: IntroducedVariables,
|
||||||
pub references: MutSet<Symbol>,
|
pub references: MutSet<Symbol>,
|
||||||
pub aliases: SendMap<Symbol, Alias>,
|
pub aliases: SendMap<Symbol, Alias>,
|
||||||
|
// pub host_exposed_aliases: SendMap<Symbol, Variable>,
|
||||||
pub variably_sized_types: VariablySizedTypes,
|
pub variably_sized_types: VariablySizedTypes,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2115,7 +2115,6 @@ fn annotation_to_attr_type(
|
||||||
}
|
}
|
||||||
HostExposedAlias {
|
HostExposedAlias {
|
||||||
name: symbol,
|
name: symbol,
|
||||||
def_name,
|
|
||||||
arguments: fields,
|
arguments: fields,
|
||||||
actual_var,
|
actual_var,
|
||||||
actual,
|
actual,
|
||||||
|
@ -2141,7 +2140,6 @@ fn annotation_to_attr_type(
|
||||||
|
|
||||||
let alias = Type::HostExposedAlias {
|
let alias = Type::HostExposedAlias {
|
||||||
name: *symbol,
|
name: *symbol,
|
||||||
def_name: *def_name,
|
|
||||||
arguments: new_fields,
|
arguments: new_fields,
|
||||||
actual_var: *actual_var,
|
actual_var: *actual_var,
|
||||||
actual: Box::new(actual_type),
|
actual: Box::new(actual_type),
|
||||||
|
|
|
@ -55,7 +55,6 @@ pub enum SolvedType {
|
||||||
|
|
||||||
HostExposedAlias {
|
HostExposedAlias {
|
||||||
name: Symbol,
|
name: Symbol,
|
||||||
def_name: Symbol,
|
|
||||||
arguments: Vec<(Lowercase, SolvedType)>,
|
arguments: Vec<(Lowercase, SolvedType)>,
|
||||||
actual_var: VarId,
|
actual_var: VarId,
|
||||||
actual: Box<SolvedType>,
|
actual: Box<SolvedType>,
|
||||||
|
@ -204,7 +203,6 @@ impl SolvedType {
|
||||||
}
|
}
|
||||||
HostExposedAlias {
|
HostExposedAlias {
|
||||||
name,
|
name,
|
||||||
def_name,
|
|
||||||
arguments,
|
arguments,
|
||||||
actual_var,
|
actual_var,
|
||||||
actual,
|
actual,
|
||||||
|
@ -218,7 +216,6 @@ impl SolvedType {
|
||||||
|
|
||||||
SolvedType::HostExposedAlias {
|
SolvedType::HostExposedAlias {
|
||||||
name: *name,
|
name: *name,
|
||||||
def_name: *def_name,
|
|
||||||
arguments: solved_args,
|
arguments: solved_args,
|
||||||
actual_var: VarId::from_var(*actual_var, solved_subs.inner()),
|
actual_var: VarId::from_var(*actual_var, solved_subs.inner()),
|
||||||
actual: Box::new(solved_type),
|
actual: Box::new(solved_type),
|
||||||
|
@ -518,7 +515,6 @@ pub fn to_type(
|
||||||
}
|
}
|
||||||
HostExposedAlias {
|
HostExposedAlias {
|
||||||
name,
|
name,
|
||||||
def_name,
|
|
||||||
arguments: solved_type_variables,
|
arguments: solved_type_variables,
|
||||||
actual_var,
|
actual_var,
|
||||||
actual: solved_actual,
|
actual: solved_actual,
|
||||||
|
@ -533,7 +529,6 @@ pub fn to_type(
|
||||||
|
|
||||||
Type::HostExposedAlias {
|
Type::HostExposedAlias {
|
||||||
name: *name,
|
name: *name,
|
||||||
def_name: *def_name,
|
|
||||||
arguments: type_variables,
|
arguments: type_variables,
|
||||||
actual_var: var_id_to_flex_var(*actual_var, free_vars, var_store),
|
actual_var: var_id_to_flex_var(*actual_var, free_vars, var_store),
|
||||||
actual: Box::new(actual),
|
actual: Box::new(actual),
|
||||||
|
|
|
@ -145,7 +145,6 @@ pub enum Type {
|
||||||
Alias(Symbol, Vec<(Lowercase, Type)>, Box<Type>),
|
Alias(Symbol, Vec<(Lowercase, Type)>, Box<Type>),
|
||||||
HostExposedAlias {
|
HostExposedAlias {
|
||||||
name: Symbol,
|
name: Symbol,
|
||||||
def_name: Symbol,
|
|
||||||
arguments: Vec<(Lowercase, Type)>,
|
arguments: Vec<(Lowercase, Type)>,
|
||||||
actual_var: Variable,
|
actual_var: Variable,
|
||||||
actual: Box<Type>,
|
actual: Box<Type>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue