Skip to content

Commit d8070a7

Browse files
committed
refactor
1 parent e02ca98 commit d8070a7

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

analysis/src/SharedTypes.ml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ type exported = {
4848
modules : namedStampMap;
4949
}
5050

51+
let initExported () =
52+
{
53+
types = Hashtbl.create 10;
54+
values = Hashtbl.create 10;
55+
modules = Hashtbl.create 10;
56+
}
57+
5158
type moduleItem =
5259
| MValue of Types.type_expr
5360
| MType of Type.t * Types.rec_status
@@ -71,15 +78,6 @@ type stamps = {
7178
constructors : constructor declared stampMap;
7279
}
7380

74-
type env = {stamps : stamps; modulePath : visibilityPath; scope : Location.t}
75-
76-
type file = {
77-
uri : Uri2.t;
78-
stamps : stamps;
79-
moduleName : string;
80-
contents : moduleContents;
81-
}
82-
8381
let initStamps () =
8482
{
8583
types = Hashtbl.create 10;
@@ -88,12 +86,14 @@ let initStamps () =
8886
constructors = Hashtbl.create 10;
8987
}
9088

91-
let initExported () =
92-
{
93-
types = Hashtbl.create 10;
94-
values = Hashtbl.create 10;
95-
modules = Hashtbl.create 10 (* constructors: Hashtbl.create(10), *);
96-
}
89+
type env = {stamps : stamps; modulePath : visibilityPath; scope : Location.t}
90+
91+
type file = {
92+
uri : Uri2.t;
93+
stamps : stamps;
94+
moduleName : string;
95+
contents : moduleContents;
96+
}
9797

9898
let emptyFile moduleName uri =
9999
{

0 commit comments

Comments
 (0)