Merge pull request #2231 from rtfeldman/joshuawarner32/record_func_type_decl

Allow function types in records
This commit is contained in:
Richard Feldman 2021-12-20 11:45:27 -05:00 committed by GitHub
commit 5aa67d4244
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 692 additions and 252 deletions

View file

@ -852,7 +852,7 @@ fn parse_defs_end<'a>(
let (_, ann_type, state) = specialize(
EExpr::Type,
space0_before_e(
type_annotation::located_help(min_indent + 1),
type_annotation::located_help(min_indent + 1, false),
min_indent + 1,
EType::TSpace,
EType::TIndentStart,
@ -1090,7 +1090,7 @@ fn parse_expr_operator<'a>(
let (_, ann_type, state) = specialize(
EExpr::Type,
space0_before_e(
type_annotation::located_help(indented_more),
type_annotation::located_help(indented_more, true),
min_indent,
EType::TSpace,
EType::TIndentStart,
@ -1117,7 +1117,7 @@ fn parse_expr_operator<'a>(
let parser = specialize(
EExpr::Type,
space0_before_e(
type_annotation::located_help(indented_more),
type_annotation::located_help(indented_more, false),
min_indent,
EType::TSpace,
EType::TIndentStart,