mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-28 17:03:44 +00:00
Rename has_derived to has_abilities
This commit is contained in:
parent
a9243720da
commit
0946a7816a
2 changed files with 3 additions and 3 deletions
|
@ -966,7 +966,7 @@ fn opaque_signature_with_space_before<'a>(
|
|||
optional(specialize(
|
||||
EExpr::Type,
|
||||
space0_before_e(
|
||||
type_annotation::has_derived(min_indent),
|
||||
type_annotation::has_abilities(min_indent),
|
||||
min_indent,
|
||||
EType::TIndentStart,
|
||||
),
|
||||
|
|
|
@ -478,8 +478,8 @@ fn has_clause_chain<'a>(
|
|||
}
|
||||
}
|
||||
|
||||
/// Parse a has-derived clause, e.g. `has [Eq, Hash]`.
|
||||
pub fn has_derived<'a>(min_indent: u32) -> impl Parser<'a, Loc<Derived<'a>>, EType<'a>> {
|
||||
/// Parse a has-abilities clause, e.g. `has [Eq, Hash]`.
|
||||
pub fn has_abilities<'a>(min_indent: u32) -> impl Parser<'a, Loc<Derived<'a>>, EType<'a>> {
|
||||
skip_first!(
|
||||
// Parse "has"; we don't care about this keyword
|
||||
word3(b'h', b'a', b's', EType::THasClause),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue