diff --git a/test/metaquot/test.ml b/test/metaquot/test.ml index 026e8dc2e..bf31f6449 100644 --- a/test/metaquot/test.ml +++ b/test/metaquot/test.ml @@ -2,9 +2,9 @@ let loc = Ppxlib.Location.none [%%expect{| val loc : Warnings.loc = {Ppxlib.Location.loc_start = - {Lexing.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; pos_cnum = -1}; + {Lexing.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Lexing.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; pos_cnum = -1}; + {Lexing.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true} |}] @@ -18,19 +18,19 @@ let _ = [%expr ()] ({Ppxlib_ast.Ast.txt = Ppxlib_ast.Ast.Lident "()"; loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}, None); pexp_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; pexp_loc_stack = []; pexp_attributes = []} @@ -44,19 +44,19 @@ let _ = [%pat? ()] ({Ppxlib_ast.Ast.txt = Ppxlib_ast.Ast.Lident "()"; loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}, None); ppat_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; ppat_loc_stack = []; ppat_attributes = []} @@ -70,19 +70,19 @@ let _ = [%type: unit] ({Ppxlib_ast.Ast.txt = Ppxlib_ast.Ast.Lident "unit"; loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}, []); ptyp_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; ptyp_loc_stack = []; ptyp_attributes = []} @@ -97,10 +97,10 @@ let _ = [%stri let _ = ()] {Ppxlib_ast.Ast.ppat_desc = Ppxlib_ast.Ast.Ppat_any; ppat_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; ppat_loc_stack = []; ppat_attributes = []}; @@ -110,37 +110,37 @@ let _ = [%stri let _ = ()] ({Ppxlib_ast.Ast.txt = Ppxlib_ast.Ast.Lident "()"; loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}, None); pexp_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; pexp_loc_stack = []; pexp_attributes = []}; pvb_attributes = []; pvb_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}]); pstr_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}} |}] @@ -156,36 +156,36 @@ let _ = [%sigi: include S] {Ppxlib_ast.Ast.txt = Ppxlib_ast.Ast.Lident "S"; loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; pmty_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; pmty_attributes = []}; pincl_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; pincl_attributes = []}; psig_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}} |}] @@ -199,10 +199,10 @@ let _ = [%str let _ = ()] {Ppxlib_ast.Ast.ppat_desc = Ppxlib_ast.Ast.Ppat_any; ppat_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; ppat_loc_stack = []; ppat_attributes = []}; @@ -212,37 +212,37 @@ let _ = [%str let _ = ()] ({Ppxlib_ast.Ast.txt = Ppxlib_ast.Ast.Lident "()"; loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}, None); pexp_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; pexp_loc_stack = []; pexp_attributes = []}; pvb_attributes = []; pvb_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}]); pstr_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}] |}] @@ -258,36 +258,36 @@ let _ = [%sig: include S] {Ppxlib_ast.Ast.txt = Ppxlib_ast.Ast.Lident "S"; loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; pmty_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; pmty_attributes = []}; pincl_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; pincl_attributes = []}; psig_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}] |}] @@ -303,38 +303,38 @@ let _ = {Ppxlib_ast.Ast.txt = "attr1"; loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; attr_payload = Ppxlib_ast.Ast.PStr []; attr_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; {Ppxlib_ast.Ast.attr_name = {Ppxlib_ast.Ast.txt = "attr2"; loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; attr_payload = Ppxlib_ast.Ast.PStr []; attr_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}] |}] @@ -348,38 +348,38 @@ let _ = {Ppxlib_ast.Ast.txt = "attr1"; loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; attr_payload = Ppxlib_ast.Ast.PStr []; attr_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; {Ppxlib_ast.Ast.attr_name = {Ppxlib_ast.Ast.txt = "attr2"; loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; attr_payload = Ppxlib_ast.Ast.PStr []; attr_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}] |}] @@ -393,38 +393,38 @@ let _ = {Ppxlib_ast.Ast.txt = "attr1"; loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; attr_payload = Ppxlib_ast.Ast.PStr []; attr_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; {Ppxlib_ast.Ast.attr_name = {Ppxlib_ast.Ast.txt = "attr2"; loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; attr_payload = Ppxlib_ast.Ast.PStr []; attr_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}] |}] @@ -443,38 +443,38 @@ let _ = {Ppxlib_ast.Ast.txt = "attr1"; loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; attr_payload = Ppxlib_ast.Ast.PStr []; attr_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; {Ppxlib_ast.Ast.attr_name = {Ppxlib_ast.Ast.txt = "attr2"; loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; attr_payload = Ppxlib_ast.Ast.PStr []; attr_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}] |}] @@ -493,38 +493,38 @@ let _ = {Ppxlib_ast.Ast.txt = "attr1"; loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; attr_payload = Ppxlib_ast.Ast.PStr []; attr_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; {Ppxlib_ast.Ast.attr_name = {Ppxlib_ast.Ast.txt = "attr2"; loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; attr_payload = Ppxlib_ast.Ast.PStr []; attr_loc = {Ppxlib_ast.Ast.loc_start = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib_ast.Ast.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}] |}] diff --git a/test/quoter/test.ml b/test/quoter/test.ml index d028a9c59..017515f54 100644 --- a/test/quoter/test.ml +++ b/test/quoter/test.ml @@ -21,18 +21,18 @@ val expr1 : expression = {Ppxlib__.Import.txt = Ppxlib__.Import.Lident "__0"; loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; pexp_loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; pexp_loc_stack = []; pexp_attributes = []} @@ -53,18 +53,18 @@ val expr2 : expression = {Ppxlib__.Import.txt = Ppxlib__.Import.Lident "__1"; loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; pexp_loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; pexp_loc_stack = []; pexp_attributes = []} @@ -82,18 +82,18 @@ val expr3 : expression = {Ppxlib__.Import.txt = Ppxlib__.Import.Lident "__2"; loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; pexp_loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; pexp_loc_stack = []; pexp_attributes = []}, @@ -103,28 +103,28 @@ val expr3 : expression = ({Ppxlib__.Import.txt = Ppxlib__.Import.Lident "()"; loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}, None); pexp_loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; pexp_loc_stack = []; pexp_attributes = []})]); pexp_loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; pexp_loc_stack = []; pexp_attributes = []} @@ -148,18 +148,18 @@ val quoted : expression = {Ppxlib__.Import.txt = "__2"; loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; ppat_loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; ppat_loc_stack = []; ppat_attributes = []}; @@ -171,19 +171,19 @@ val quoted : expression = ({Ppxlib__.Import.txt = Ppxlib__.Import.Lident "()"; loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}, None); ppat_loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; ppat_loc_stack = []; ppat_attributes = []}, @@ -194,18 +194,18 @@ val quoted : expression = {Ppxlib__.Import.txt = Ppxlib__.Import.Lident "foo"; loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; pexp_loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; pexp_loc_stack = []; pexp_attributes = []}, @@ -215,47 +215,47 @@ val quoted : expression = ({Ppxlib__.Import.txt = Ppxlib__.Import.Lident "()"; loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}, None); pexp_loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; pexp_loc_stack = []; pexp_attributes = []})]); pexp_loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; pexp_loc_stack = []; pexp_attributes = []}); pexp_loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; pexp_loc_stack = []; pexp_attributes = []}; pvb_attributes = []; pvb_loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; {Ppxlib__.Import.pvb_pat = @@ -264,18 +264,18 @@ val quoted : expression = {Ppxlib__.Import.txt = "__1"; loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; ppat_loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; ppat_loc_stack = []; ppat_attributes = []}; @@ -285,28 +285,28 @@ val quoted : expression = {Ppxlib__.Import.txt = Ppxlib__.Import.Lident "bar"; loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; pexp_loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}; pexp_loc_stack = []; pexp_attributes = []}; pvb_attributes = []; pvb_loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; {Ppxlib__.Import.pvb_pat = @@ -315,15 +315,15 @@ val quoted : expression = {Ppxlib__.Import.txt = "__0"; loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true}}; ppat_loc = {Ppxlib__.Import.loc_start = - {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; + {Ppxlib__.Import.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = ...; loc_ghost = ...}; ppat_loc_stack = ...; ppat_attributes = ...}; diff --git a/test/type_is_recursive/test.ml b/test/type_is_recursive/test.ml index 8f24b81f0..ae7a75e1f 100644 --- a/test/type_is_recursive/test.ml +++ b/test/type_is_recursive/test.ml @@ -14,9 +14,9 @@ let loc = Location.none [%%expect{| val loc : location = {Ppxlib.Location.loc_start = - {Lexing.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; pos_cnum = -1}; + {Lexing.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_end = - {Lexing.pos_fname = "_none_"; pos_lnum = 1; pos_bol = 0; pos_cnum = -1}; + {Lexing.pos_fname = "_none_"; pos_lnum = 0; pos_bol = 0; pos_cnum = -1}; loc_ghost = true} |}]