Skip to content

Commit 4b1e518

Browse files
committed
add .resi file
1 parent 9483efe commit 4b1e518

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: analysis/src/SemanticTokens.ml

+9
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,14 @@ let command ~debug ~emitter ~path =
403403
Ast_iterator.default_iterator.structure_item iterator item
404404
in
405405

406+
let signature_item (iterator : Ast_iterator.iterator)
407+
(item : Parsetree.signature_item) =
408+
(match item.psig_desc with
409+
| Psig_value {pval_name = {txt = id; loc}} -> emitter |> emitVariable ~id ~debug ~loc;
410+
| _ -> ());
411+
Ast_iterator.default_iterator.signature_item iterator item
412+
in
413+
406414
let iterator =
407415
{
408416
Ast_iterator.default_iterator with
@@ -419,6 +427,7 @@ let command ~debug ~emitter ~path =
419427
typ;
420428
type_declaration;
421429
structure_item;
430+
signature_item;
422431
}
423432
in
424433

0 commit comments

Comments
 (0)