diff options
author | Matej Košík <matej.kosik@inria.fr> | 2017-04-28 14:31:14 +0200 |
---|---|---|
committer | Emilio Jesus Gallego Arias <e+git@x80.org> | 2017-05-24 17:41:35 +0200 |
commit | 209956322367e5a4a4c8c78c053ea9352a9a16c8 (patch) | |
tree | cba5cbe9d65d51a2c351bea8c1b2f9714d561d71 /lib | |
parent | 6f2c19a1054ce58927dfa5b33131c3665fd5fdf8 (diff) |
[location] Renaming "CAst.ast" to "CAst.t"
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cAst.ml | 2 | ||||
-rw-r--r-- | lib/cAst.mli | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/cAst.ml b/lib/cAst.ml index f0a405776..301a6bac8 100644 --- a/lib/cAst.ml +++ b/lib/cAst.ml @@ -7,7 +7,7 @@ (************************************************************************) (** The ast type contains generic metadata for AST nodes. *) -type 'a ast = { +type 'a t = { v : 'a; loc : Loc.t option; } diff --git a/lib/cAst.mli b/lib/cAst.mli index 291536d12..700a06ce8 100644 --- a/lib/cAst.mli +++ b/lib/cAst.mli @@ -7,16 +7,16 @@ (************************************************************************) (** The ast type contains generic metadata for AST nodes *) -type 'a ast = private { +type 'a t = private { v : 'a; loc : Loc.t option; } -val make : ?loc:Loc.t -> 'a -> 'a ast +val make : ?loc:Loc.t -> 'a -> 'a t -val map : ('a -> 'b) -> 'a ast -> 'b ast -val map_with_loc : (?loc:Loc.t -> 'a -> 'b) -> 'a ast -> 'b ast -val map_from_loc : (?loc:Loc.t -> 'a -> 'b) -> 'a Loc.located -> 'b ast +val map : ('a -> 'b) -> 'a t -> 'b t +val map_with_loc : (?loc:Loc.t -> 'a -> 'b) -> 'a t -> 'b t +val map_from_loc : (?loc:Loc.t -> 'a -> 'b) -> 'a Loc.located -> 'b t -val with_val : ('a -> 'b) -> 'a ast -> 'b -val with_loc_val : (?loc:Loc.t -> 'a -> 'b) -> 'a ast -> 'b +val with_val : ('a -> 'b) -> 'a t -> 'b +val with_loc_val : (?loc:Loc.t -> 'a -> 'b) -> 'a t -> 'b |