Skip to content

Commit 1874101

Browse files
committed
change fn name
1 parent f3fe0d4 commit 1874101

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

analysis/src/Files.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ let rec collect ?(checkDir = fun _ -> true) path test =
9898
9999
type classifiedFile = Res | Resi | Other
100100
101-
let classifyFile path =
101+
let classifySourceFile path =
102102
if Filename.check_suffix path ".res" && exists path then Res
103103
else if Filename.check_suffix path ".resi" && exists path then Resi
104104
else Other

analysis/src/Hint.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ let inlay ~path ~pos ~maxLength ~debug =
8989
Ast_iterator.default_iterator.value_binding iterator vb
9090
in
9191
let iterator = {Ast_iterator.default_iterator with value_binding} in
92-
(if Files.classifyFile path = Res then
92+
(if Files.classifySourceFile path = Res then
9393
let parser =
9494
Res_driver.parsingEngine.parseImplementation ~forPrinter:false
9595
in
@@ -150,7 +150,7 @@ let codeLens ~path ~debug =
150150
let iterator = {Ast_iterator.default_iterator with value_binding} in
151151
(* We only print code lenses in implementation files. This is because they'd be redundant in interface files,
152152
where the definition itself will be the same thing as what would've been printed in the code lens. *)
153-
(if Files.classifyFile path = Res then
153+
(if Files.classifySourceFile path = Res then
154154
let parser =
155155
Res_driver.parsingEngine.parseImplementation ~forPrinter:false
156156
in

analysis/src/SemanticTokens.ml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,15 +398,17 @@ let command ~debug ~emitter ~path =
398398
let structure_item (iterator : Ast_iterator.iterator)
399399
(item : Parsetree.structure_item) =
400400
(match item.pstr_desc with
401-
| Pstr_primitive {pval_name = {txt = id; loc}} -> emitter |> emitVariable ~id ~debug ~loc;
401+
| Pstr_primitive {pval_name = {txt = id; loc}} ->
402+
emitter |> emitVariable ~id ~debug ~loc
402403
| _ -> ());
403404
Ast_iterator.default_iterator.structure_item iterator item
404405
in
405406

406407
let signature_item (iterator : Ast_iterator.iterator)
407408
(item : Parsetree.signature_item) =
408409
(match item.psig_desc with
409-
| Psig_value {pval_name = {txt = id; loc}} -> emitter |> emitVariable ~id ~debug ~loc;
410+
| Psig_value {pval_name = {txt = id; loc}} ->
411+
emitter |> emitVariable ~id ~debug ~loc
410412
| _ -> ());
411413
Ast_iterator.default_iterator.signature_item iterator item
412414
in
@@ -431,7 +433,7 @@ let command ~debug ~emitter ~path =
431433
}
432434
in
433435

434-
if Files.classifyFile path = Res then (
436+
if Files.classifySourceFile path = Res then (
435437
let parser =
436438
Res_driver.parsingEngine.parseImplementation ~forPrinter:false
437439
in

analysis/src/Xform.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ let parse ~filename =
302302

303303
let extractCodeActions ~path ~pos ~currentFile ~debug =
304304
match Cmt.fullFromPath ~path with
305-
| Some full when Files.classifyFile currentFile = Res ->
305+
| Some full when Files.classifySourceFile currentFile = Res ->
306306
let structure, printExpr, printStructureItem =
307307
parse ~filename:currentFile
308308
in

0 commit comments

Comments
 (0)