@@ -689,20 +689,20 @@ module Completable = struct
689689 | CPAwait ctxPath -> " await " ^ contextPathToString ctxPath
690690 | CPOption ctxPath -> " option<" ^ contextPathToString ctxPath ^ " >"
691691 | CPApply (cp , labels ) ->
692- " CPApply( " ^ contextPathToString cp ^ " ("
692+ contextPathToString cp ^ " ("
693693 ^ (labels
694694 |> List. map (function
695695 | Asttypes.Noloc. Nolabel -> " Nolabel"
696696 | Labelled s -> " ~" ^ s
697697 | Optional s -> " ?" ^ s)
698698 |> String. concat " , " )
699- ^ " )) "
699+ ^ " )"
700700 | CPArray (Some ctxPath ) -> " array<" ^ contextPathToString ctxPath ^ " >"
701701 | CPArray None -> " array"
702702 | CPId {path; completionContext} ->
703- " CPID( " ^ completionContextToString completionContext ^ list path ^ " ) "
703+ completionContextToString completionContext ^ list path
704704 | CPField {contextPath = cp ; fieldName = s } ->
705- " CPField( " ^ contextPathToString cp ^ " ." ^ str s ^ " ) "
705+ contextPathToString cp ^ " ." ^ str s
706706 | CPObj (cp , s ) -> contextPathToString cp ^ " [\" " ^ s ^ " \" ]"
707707 | CPPipe {contextPath; id; inJsx} ->
708708 contextPathToString contextPath
@@ -801,19 +801,6 @@ module Completion = struct
801801 | ExtractedType of completionType * [`Value | `Type ]
802802 | FollowContextPath of Completable .contextPath * ScopeTypes .item list
803803
804- let kind_to_string = function
805- | Module _ -> " Module"
806- | Value _ -> " Value"
807- | ObjLabel _ -> " ObjLabel"
808- | Label _ -> " Label"
809- | Type _ -> " Type"
810- | Constructor _ -> " Constructor"
811- | PolyvariantConstructor _ -> " PolyvariantConstructor"
812- | Field _ -> " Field"
813- | FileModule _ -> " FileModule"
814- | Snippet _ -> " Snippet"
815- | ExtractedType _ -> " ExtractedType"
816- | FollowContextPath _ -> " FollowContextPath"
817804 type t = {
818805 name : string ;
819806 sortText : string option ;
@@ -832,10 +819,6 @@ module Completion = struct
832819 (* * Whether this item is an made up, synthetic item or not. *)
833820 }
834821
835- let toString (t : t ) : string =
836- Format. sprintf " Completion: %s %s %b" t.name (kind_to_string t.kind)
837- t.synthetic
838-
839822 let create ?(synthetic = false ) ?additionalTextEdits ?data ?typeArgContext
840823 ?(includesSnippets = false ) ?insertText ~kind ~env ?sortText ?deprecated
841824 ?filterText ?detail ?(docstring = [] ) name =
0 commit comments