We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e145f17 commit 0904b73Copy full SHA for 0904b73
analysis/src/SemanticTokens.ml
@@ -395,6 +395,14 @@ let command ~debug ~emitter ~path =
395
Ast_iterator.default_iterator.constructor_declaration iterator cd
396
in
397
398
+ let structure_item (iterator : Ast_iterator.iterator)
399
+ (item : Parsetree.structure_item) =
400
+ (match item.pstr_desc with
401
+ | Pstr_primitive {pval_name = {txt = id; loc}} -> emitter |> emitVariable ~id ~debug ~loc;
402
+ | _ -> ());
403
+ Ast_iterator.default_iterator.structure_item iterator item
404
+ in
405
+
406
let iterator =
407
{
408
Ast_iterator.default_iterator with
@@ -410,6 +418,7 @@ let command ~debug ~emitter ~path =
410
418
pat;
411
419
typ;
412
420
type_declaration;
421
+ structure_item;
413
422
}
414
423
415
424
0 commit comments