File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -387,9 +387,9 @@ provide_stmt:
387387 | attributes PROVIDE module_stmt { Toplevel. module_ ~loc: (to_loc $ loc) ~attributes: $ 1 Provided $ 3 }
388388
389389data_constructor:
390- | UIDENT { ConstructorDeclaration. singleton ~loc: (to_loc $ loc) (mkstr $ loc $ 1 ) }
391- | UIDENT lparen typs? rparen { ConstructorDeclaration. tuple ~loc: (to_loc $ loc) (mkstr $ loc $ 1 ) (Location. mkloc (Option. value ~default: [] $ 3 ) (to_loc $ loc($ 3 ))) }
392- | UIDENT data_labels { ConstructorDeclaration. record ~loc: (to_loc $ loc) (mkstr $ loc $ 1 ) (Location. mkloc $ 2 (to_loc $ loc($ 2 ))) }
390+ | UIDENT { ConstructorDeclaration. singleton ~loc: (to_loc $ loc) (mkstr $ loc( $ 1 ) $ 1 ) }
391+ | UIDENT lparen typs? rparen { ConstructorDeclaration. tuple ~loc: (to_loc $ loc) (mkstr $ loc( $ 1 ) $ 1 ) (Location. mkloc (Option. value ~default: [] $ 3 ) (to_loc $ loc($ 3 ))) }
392+ | UIDENT data_labels { ConstructorDeclaration. record ~loc: (to_loc $ loc) (mkstr $ loc( $ 1 ) $ 1 ) (Location. mkloc $ 2 (to_loc $ loc($ 2 ))) }
393393
394394data_constructors:
395395 | lbrace lseparated_nonempty_list(comma, data_constructor) comma? rbrace { $ 2 }
You can’t perform that action at this time.
0 commit comments