Skip to content

Commit 4a578bf

Browse files
committed
Use Path.name
1 parent f782f32 commit 4a578bf

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

analysis/src/CompletionBackEnd.ml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -459,12 +459,7 @@ let processLocalInclude includePath _loc ~prefix ~exact ~(env : QueryEnv.t)
459459
(* We check all the values if their origin is the same as the include path. *)
460460
match declared.modulePath with
461461
| ModulePath.IncludedModule (source, _) ->
462-
let source_module_path =
463-
match Path.flatten source with
464-
| `Contains_apply -> ""
465-
| `Ok (ident, path) -> ident.name :: path |> String.concat "."
466-
in
467-
462+
let source_module_path = Path.name source in
468463
if String.ends_with ~suffix:includePath source_module_path then
469464
(* If this is the case we perform a similar check for the prefix *)
470465
if Utils.checkName name ~prefix ~exact then

0 commit comments

Comments
 (0)