Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit f9fe2fc

Browse files
committed
Restore termination analysis.
Progress annotations need be on recursive functions.
1 parent e1b2598 commit f9fe2fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/res_core.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5433,6 +5433,7 @@ and parseStructureItemRegion p =
54335433
| _ ->
54345434
None
54355435
end
5436+
[@@progress (Parser.next, Parser.expect, Parser.checkProgress)]
54365437

54375438
and parseJsImport ~startPos ~attrs p =
54385439
Parser.expect Token.Import p;
@@ -6187,6 +6188,7 @@ and parseSignatureItemRegion p =
61876188
| _ ->
61886189
None
61896190
end
6191+
[@@progress (Parser.next, Parser.expect, Parser.checkProgress)]
61906192

61916193
(* module rec module-name : module-type { and module-name: module-type } *)
61926194
and parseRecModuleSpec ~attrs ~startPos p =
@@ -6446,9 +6448,7 @@ and parseExtension ?(moduleLanguage=false) p =
64466448
(* module signature on the file level *)
64476449
let parseSpecification p : Parsetree.signature =
64486450
parseRegion p ~grammar:Grammar.Specification ~f:parseSignatureItemRegion
6449-
[@@progress (Parser.next, Parser.expect, Parser.checkProgress)]
64506451

64516452
(* module structure on the file level *)
64526453
let parseImplementation p : Parsetree.structure =
64536454
parseRegion p ~grammar:Grammar.Implementation ~f:parseStructureItemRegion
6454-
[@@progress (Parser.next, Parser.expect, Parser.checkProgress)]

0 commit comments

Comments
 (0)