mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-15 00:05:02 +00:00
Merge remote-tracking branch 'origin/trunk' into outdent-infix
This commit is contained in:
commit
f575807834
116 changed files with 7901 additions and 5073 deletions
|
@ -1,6 +1,6 @@
|
|||
use crate::ast::{
|
||||
AssignedField, Collection, CommentOrNewline, Defs, Derived, Expr, ExtractSpaces, Has, Pattern,
|
||||
Spaceable, TypeAnnotation, TypeDef, TypeHeader, ValueDef,
|
||||
AssignedField, Collection, CommentOrNewline, Defs, Expr, ExtractSpaces, Has, HasAbilities,
|
||||
Pattern, Spaceable, TypeAnnotation, TypeDef, TypeHeader, ValueDef,
|
||||
};
|
||||
use crate::blankspace::{
|
||||
space0_after_e, space0_around_ee, space0_before_e, space0_before_optional_after, space0_e,
|
||||
|
@ -953,7 +953,7 @@ fn alias_signature_with_space_before<'a>(
|
|||
|
||||
fn opaque_signature_with_space_before<'a>(
|
||||
min_indent: u32,
|
||||
) -> impl Parser<'a, (Loc<TypeAnnotation<'a>>, Option<Loc<Derived<'a>>>), EExpr<'a>> {
|
||||
) -> impl Parser<'a, (Loc<TypeAnnotation<'a>>, Option<Loc<HasAbilities<'a>>>), EExpr<'a>> {
|
||||
and!(
|
||||
specialize(
|
||||
EExpr::Type,
|
||||
|
@ -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,
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue