@@ -107,7 +107,7 @@ let rec forSignatureTypeItem = (env, exported: SharedTypes.Module.exported, item
107
107
let declared = addItem(
108
108
~name= Location . mknoloc(Ident . name(ident)),
109
109
~extent= loc,
110
- ~stamp= Current . ident_binding_time (ident),
110
+ ~stamp= Ident . binding_time (ident),
111
111
~env,
112
112
~contents,
113
113
val_attributes,
@@ -139,7 +139,7 @@ let rec forSignatureTypeItem = (env, exported: SharedTypes.Module.exported, item
139
139
| Type_variant (constructors ) => {
140
140
Variant (constructors |. Belt . List . map(({cd_loc, cd_id, cd_args, cd_res, cd_attributes}) => {
141
141
let name = Ident . name(cd_id);
142
- let stamp = Current . ident_binding_time (cd_id);
142
+ let stamp = Ident . binding_time (cd_id);
143
143
let contents = {
144
144
Type . Constructor . stamp,
145
145
name: Location . mknoloc(name),
@@ -169,13 +169,13 @@ let rec forSignatureTypeItem = (env, exported: SharedTypes.Module.exported, item
169
169
}
170
170
| Type_record (labels , _ ) => Record (labels |> List . map(
171
171
({ld_id, ld_type}) => {
172
- let astamp = Current . ident_binding_time (ld_id);
172
+ let astamp = Ident . binding_time (ld_id);
173
173
let name = Ident . name(ld_id);
174
174
{Type . Attribute . stamp: astamp, name: Location . mknoloc(name), typ: Shared . makeFlexible(ld_type), typLoc: Location . none}
175
175
}
176
176
))
177
177
}
178
- }, ~name= Location . mknoloc(Ident . name(ident)), ~stamp= Current . ident_binding_time (ident), ~env, type_attributes, exported. types, env. stamps. types);
178
+ }, ~name= Location . mknoloc(Ident . name(ident)), ~stamp= Ident . binding_time (ident), ~env, type_attributes, exported. types, env. stamps. types);
179
179
[ {... declared, contents: Module . Type (declared. contents)}]
180
180
}
181
181
/* | Sig_module({stamp, name}, {md_type: Mty_ident(path) | Mty_alias(path), md_attributes, md_loc}, _) =>
@@ -190,7 +190,7 @@ let rec forSignatureTypeItem = (env, exported: SharedTypes.Module.exported, item
190
190
~extent= md_loc,
191
191
~contents= forModuleType(env, md_type),
192
192
~name= Location . mknoloc(Ident . name(ident)),
193
- ~stamp= Current . ident_binding_time (ident),
193
+ ~stamp= Ident . binding_time (ident),
194
194
~env,
195
195
md_attributes,
196
196
exported. modules,
@@ -227,7 +227,7 @@ let getModuleTypePath = (mod_desc) => switch mod_desc {
227
227
};
228
228
229
229
let forTypeDeclaration = (~env, ~exported: Module . exported , {typ_id, typ_loc, typ_params, typ_name: name, typ_attributes, typ_type, typ_kind, typ_manifest}) => {
230
- let stamp = Current . ident_binding_time (typ_id);
230
+ let stamp = Ident . binding_time (typ_id);
231
231
let declared = addItem(~extent= typ_loc, ~contents= {
232
232
Type . params: typ_params |> List . map(((t, _)) => (Shared . makeFlexible(t. ctyp_type), t. ctyp_loc)),
233
233
typ: Shared . makeDeclaration(typ_type),
@@ -244,7 +244,7 @@ let forTypeDeclaration = (~env, ~exported: Module.exported, {typ_id, typ_loc, ty
244
244
}
245
245
| Ttype_open => Open
246
246
| Ttype_variant (constructors ) => Variant (constructors |> List . map(({cd_id, cd_name: name, cd_args, cd_res}) => {
247
- let stamp = Current . ident_binding_time (cd_id);
247
+ let stamp = Ident . binding_time (cd_id);
248
248
{
249
249
Type . Constructor . stamp,
250
250
name,
@@ -254,7 +254,7 @@ let forTypeDeclaration = (~env, ~exported: Module.exported, {typ_id, typ_loc, ty
254
254
}}))
255
255
| Ttype_record (labels ) => Record (labels |> List . map(
256
256
({ld_id, ld_name: name, ld_type: {ctyp_type, ctyp_loc}}) => {
257
- let astamp = Current . ident_binding_time (ld_id);
257
+ let astamp = Ident . binding_time (ld_id);
258
258
{Type . Attribute . stamp: astamp, name, typ: Shared . makeFlexible(ctyp_type), typLoc: ctyp_loc}
259
259
}))
260
260
}
@@ -267,7 +267,7 @@ let forSignatureItem = (~env, ~exported: Module.exported, item) => {
267
267
| Tsig_value ({val_id, val_loc, val_name: name , val_desc, val_attributes}) => {
268
268
let declared = addItem(
269
269
~name,
270
- ~stamp= Current . ident_binding_time (val_id),
270
+ ~stamp= Ident . binding_time (val_id),
271
271
~extent= val_loc,
272
272
~contents= {Value . typ: Shared . makeFlexible(val_desc. ctyp_type), recursive: false },
273
273
~env,
@@ -282,7 +282,7 @@ let forSignatureItem = (~env, ~exported: Module.exported, item) => {
282
282
}
283
283
| Tsig_module ({md_id, md_attributes, md_loc, md_name: name , md_type: {mty_type}}) => {
284
284
let contents = forModuleType(env, mty_type);
285
- let declared = addItem(~contents, ~name, ~extent= md_loc, ~stamp= Current . ident_binding_time (md_id), ~env, md_attributes, exported. modules, env. stamps. modules);
285
+ let declared = addItem(~contents, ~name, ~extent= md_loc, ~stamp= Ident . binding_time (md_id), ~env, md_attributes, exported. modules, env. stamps. modules);
286
286
[ {... declared, contents: Module . Module (declared. contents)}]
287
287
}
288
288
| Tsig_include ({incl_mod, incl_type}) =>
@@ -342,14 +342,14 @@ let rec forItem = (
342
342
Value . recursive: false ,
343
343
typ: Shared . makeFlexible(pat_type),
344
344
};
345
- let declared = addItem(~name, ~stamp= Current . ident_binding_time (ident), ~env, ~extent= vb_loc, ~contents, vb_attributes, exported. values, env. stamps. values);
345
+ let declared = addItem(~name, ~stamp= Ident . binding_time (ident), ~env, ~extent= vb_loc, ~contents, vb_attributes, exported. values, env. stamps. values);
346
346
Some ({... declared, contents: Module . Value (declared. contents)})
347
347
| _ => None
348
348
},
349
349
bindings)
350
350
| Tstr_module ({mb_id, mb_attributes, mb_loc, mb_name: name , mb_expr: {mod_desc}}) => {
351
351
let contents = forModule(env, mod_desc, name. txt);
352
- let declared = addItem(~contents, ~name, ~extent= mb_loc, ~stamp= Current . ident_binding_time (mb_id), ~env, mb_attributes, exported. modules, env. stamps. modules);
352
+ let declared = addItem(~contents, ~name, ~extent= mb_loc, ~stamp= Ident . binding_time (mb_id), ~env, mb_attributes, exported. modules, env. stamps. modules);
353
353
[ {... declared, contents: Module . Module (declared. contents)}]
354
354
}
355
355
| Tstr_include ({incl_mod, incl_type}) =>
@@ -367,7 +367,7 @@ let rec forItem = (
367
367
topLevel
368
368
369
369
| Tstr_primitive ({val_id, val_name: name , val_loc, val_attributes, val_val: {val_type}}) => {
370
- let declared = addItem(~extent= val_loc, ~contents= {Value . recursive: false , typ: Shared . makeFlexible(val_type)}, ~name, ~stamp= Current . ident_binding_time (val_id), ~env, val_attributes, exported. values, env. stamps. values);
370
+ let declared = addItem(~extent= val_loc, ~contents= {Value . recursive: false , typ: Shared . makeFlexible(val_type)}, ~name, ~stamp= Ident . binding_time (val_id), ~env, val_attributes, exported. values, env. stamps. values);
371
371
[ {... declared, contents: Module . Value (declared. contents)}]
372
372
}
373
373
| Tstr_type (decls ) =>
@@ -384,7 +384,7 @@ and forModule = (env, mod_desc, moduleName) => switch mod_desc {
384
384
}
385
385
| Tmod_functor (ident , argName , maybeType , resultExpr ) => {
386
386
maybeType |?< t => forTreeModuleType(~env, t) |?< kind => {
387
- let stamp = Current . ident_binding_time (ident);
387
+ let stamp = Ident . binding_time (ident);
388
388
let declared = newDeclared(
389
389
~contents= kind,
390
390
~name= argName,
0 commit comments