mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Rename has
variable to implements
This commit is contained in:
parent
74b9175a29
commit
88042c2578
1 changed files with 5 additions and 5 deletions
|
@ -1640,7 +1640,7 @@ fn parse_expr_end<'a>(
|
|||
Err((MadeProgress, f)) => Err((MadeProgress, f)),
|
||||
Ok((
|
||||
_,
|
||||
has @ Loc {
|
||||
implements @ Loc {
|
||||
value:
|
||||
Expr::Var {
|
||||
module_name: "",
|
||||
|
@ -1672,17 +1672,17 @@ fn parse_expr_end<'a>(
|
|||
}
|
||||
|
||||
// Attach any spaces to the `implements` keyword
|
||||
let has = if !expr_state.spaces_after.is_empty() {
|
||||
let implements = if !expr_state.spaces_after.is_empty() {
|
||||
arena
|
||||
.alloc(Implements::Implements)
|
||||
.with_spaces_before(expr_state.spaces_after, has.region)
|
||||
.with_spaces_before(expr_state.spaces_after, implements.region)
|
||||
} else {
|
||||
Loc::at(has.region, Implements::Implements)
|
||||
Loc::at(implements.region, Implements::Implements)
|
||||
};
|
||||
|
||||
let args = arguments.into_bump_slice();
|
||||
let (_, (type_def, def_region), state) =
|
||||
finish_parsing_ability_def_help(min_indent, name, args, has, arena, state)?;
|
||||
finish_parsing_ability_def_help(min_indent, name, args, implements, arena, state)?;
|
||||
|
||||
let mut defs = Defs::default();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue