@@ -5329,11 +5329,6 @@ and parseExceptionDef ~attrs p =
5329
5329
let loc = mkLoc startPos p.prevEndPos in
5330
5330
Ast_helper.Te. constructor ~loc ~attrs name kind
5331
5331
5332
- (* module structure on the file level *)
5333
- and parseImplementation p : Parsetree.structure =
5334
- parseRegion p ~grammar: Grammar. Implementation ~f: parseStructureItemRegion
5335
- [@@ progress (Parser. next, Parser. expect, Parser. checkProgress)]
5336
-
5337
5332
and parseNewlineOrSemicolonStructure p =
5338
5333
match p.Parser. token with
5339
5334
| Semicolon ->
@@ -6070,11 +6065,6 @@ and parseModuleTypeOf p =
6070
6065
let moduleExpr = parseModuleExpr p in
6071
6066
Ast_helper.Mty. typeof_ ~loc: (mkLoc startPos p.prevEndPos) moduleExpr
6072
6067
6073
- (* module signature on the file level *)
6074
- and parseSpecification p =
6075
- parseRegion ~grammar: Grammar. Specification ~f: parseSignatureItemRegion p
6076
- [@@ progress (Parser. next, Parser. expect, Parser. checkProgress)]
6077
-
6078
6068
and parseNewlineOrSemicolonSignature p =
6079
6069
match p.Parser. token with
6080
6070
| Semicolon ->
@@ -6452,3 +6442,13 @@ and parseExtension ?(moduleLanguage=false) p =
6452
6442
let attrId = parseAttributeId ~start Pos p in
6453
6443
let payload = parsePayload p in
6454
6444
(attrId, payload)
6445
+
6446
+ (* module signature on the file level *)
6447
+ let parseSpecification p : Parsetree.signature =
6448
+ parseRegion p ~grammar: Grammar. Specification ~f: parseSignatureItemRegion
6449
+ [@@ progress (Parser. next, Parser. expect, Parser. checkProgress)]
6450
+
6451
+ (* module structure on the file level *)
6452
+ let parseImplementation p : Parsetree.structure =
6453
+ parseRegion p ~grammar: Grammar. Implementation ~f: parseStructureItemRegion
6454
+ [@@ progress (Parser. next, Parser. expect, Parser. checkProgress)]
0 commit comments