mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-22 22:15:02 +00:00
loc_has -> loc_implements
This commit is contained in:
parent
d700a6a6e6
commit
46cb45f717
5 changed files with 7 additions and 7 deletions
|
@ -402,7 +402,7 @@ pub enum TypeDef<'a> {
|
|||
/// hash : a -> U64 | a implements Hash
|
||||
Ability {
|
||||
header: TypeHeader<'a>,
|
||||
loc_has: Loc<Implements<'a>>,
|
||||
loc_implements: Loc<Implements<'a>>,
|
||||
members: &'a [AbilityMember<'a>],
|
||||
},
|
||||
}
|
||||
|
@ -1681,7 +1681,7 @@ impl<'a> Malformed for TypeDef<'a> {
|
|||
} => header.is_malformed() || typ.is_malformed() || derived.is_malformed(),
|
||||
TypeDef::Ability {
|
||||
header,
|
||||
loc_has,
|
||||
loc_implements: loc_has,
|
||||
members,
|
||||
} => {
|
||||
header.is_malformed()
|
||||
|
|
|
@ -1408,7 +1408,7 @@ fn finish_parsing_ability_def_help<'a>(
|
|||
let def_region = Region::span_across(&name.region, &demands.last().unwrap().typ.region);
|
||||
let type_def = TypeDef::Ability {
|
||||
header: TypeHeader { name, vars: args },
|
||||
loc_has,
|
||||
loc_implements: loc_has,
|
||||
members: demands.into_bump_slice(),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue