File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,13 @@ type exported = {
48
48
modules : namedStampMap ;
49
49
}
50
50
51
+ let initExported () =
52
+ {
53
+ types = Hashtbl. create 10 ;
54
+ values = Hashtbl. create 10 ;
55
+ modules = Hashtbl. create 10 ;
56
+ }
57
+
51
58
type moduleItem =
52
59
| MValue of Types .type_expr
53
60
| MType of Type .t * Types .rec_status
@@ -71,15 +78,6 @@ type stamps = {
71
78
constructors : constructor declared stampMap ;
72
79
}
73
80
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
-
83
81
let initStamps () =
84
82
{
85
83
types = Hashtbl. create 10 ;
@@ -88,12 +86,14 @@ let initStamps () =
88
86
constructors = Hashtbl. create 10 ;
89
87
}
90
88
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
+ }
97
97
98
98
let emptyFile moduleName uri =
99
99
{
You can’t perform that action at this time.
0 commit comments