mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Merge pull request #3052 from rtfeldman/build-encode
Encode/JSON in standard library typechecks
This commit is contained in:
commit
e5eb9c9f1c
27 changed files with 847 additions and 298 deletions
|
@ -1,3 +1,5 @@
|
|||
use crate::abilities::AbilityMemberData;
|
||||
use crate::abilities::MemberTypeInfo;
|
||||
use crate::abilities::MemberVariables;
|
||||
use crate::annotation::canonicalize_annotation;
|
||||
use crate::annotation::find_type_def_symbols;
|
||||
|
@ -646,10 +648,15 @@ fn resolve_abilities<'a>(
|
|||
|
||||
can_members.push((
|
||||
member_sym,
|
||||
name_region,
|
||||
var_store.fresh(),
|
||||
member_annot.typ,
|
||||
variables,
|
||||
AbilityMemberData {
|
||||
parent_ability: loc_ability_name.value,
|
||||
region: name_region,
|
||||
typ: MemberTypeInfo::Local {
|
||||
variables,
|
||||
signature: member_annot.typ,
|
||||
signature_var: var_store.fresh(),
|
||||
},
|
||||
},
|
||||
));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue