diff options
author | Emilio Jesus Gallego Arias <e+git@x80.org> | 2017-04-09 03:35:20 +0200 |
---|---|---|
committer | Emilio Jesus Gallego Arias <e+git@x80.org> | 2017-04-25 00:33:36 +0200 |
commit | ee2197096fe75a63b4d92cb3a1bb05122c5c625b (patch) | |
tree | 3b40c06375a463625a2675b90e009fcb0b64a7d2 /tactics/hipattern.ml | |
parent | 054d2736c1c1b55cb7708ff0444af521cd0fe2ba (diff) |
[location] [ast] Port module AST to CAst
Diffstat (limited to 'tactics/hipattern.ml')
-rw-r--r-- | tactics/hipattern.ml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tactics/hipattern.ml b/tactics/hipattern.ml index 2c331ba56..309691e39 100644 --- a/tactics/hipattern.ml +++ b/tactics/hipattern.ml @@ -253,16 +253,16 @@ open Decl_kinds open Evar_kinds let mkPattern c = snd (Patternops.pattern_of_glob_constr c) -let mkGApp f args = Loc.tag @@ GApp (f, args) -let mkGHole = Loc.tag @@ +let mkGApp f args = CAst.make @@ GApp (f, args) +let mkGHole = CAst.make @@ GHole (QuestionMark (Define false), Misctypes.IntroAnonymous, None) -let mkGProd id c1 c2 = Loc.tag @@ +let mkGProd id c1 c2 = CAst.make @@ GProd (Name (Id.of_string id), Explicit, c1, c2) -let mkGArrow c1 c2 = Loc.tag @@ +let mkGArrow c1 c2 = CAst.make @@ GProd (Anonymous, Explicit, c1, c2) -let mkGVar id = Loc.tag @@ GVar (Id.of_string id) -let mkGPatVar id = Loc.tag @@ GPatVar((false, Id.of_string id)) -let mkGRef r = Loc.tag @@ GRef (Lazy.force r, None) +let mkGVar id = CAst.make @@ GVar (Id.of_string id) +let mkGPatVar id = CAst.make @@ GPatVar((false, Id.of_string id)) +let mkGRef r = CAst.make @@ GRef (Lazy.force r, None) let mkGAppRef r args = mkGApp (mkGRef r) args (** forall x : _, _ x x *) |