File tree 4 files changed +9
-7
lines changed
compiler/src/language_server
4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ let build_value_completion =
230
230
{
231
231
label: value_name,
232
232
kind: CompletionItemKindValue ,
233
- detail: Doc . print_type(env, value_desc. val_type),
233
+ detail: Document . print_type(env, value_desc. val_type),
234
234
documentation: "" ,
235
235
};
236
236
};
@@ -239,7 +239,7 @@ let build_module_completion =
239
239
{
240
240
label: module_name,
241
241
kind: CompletionItemKindModule ,
242
- detail: Doc . print_mod_type(mod_desc),
242
+ detail: Document . print_mod_type(mod_desc),
243
243
documentation: "" ,
244
244
};
245
245
};
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -50,23 +50,25 @@ let send_no_result = (~id: Protocol.message_id) => {
50
50
};
51
51
52
52
let module_lens = (decl: Types . module_declaration ) => {
53
- Doc . grain_code_block(Doc . print_mod_type(decl));
53
+ Document . grain_code_block(Document . print_mod_type(decl));
54
54
};
55
55
56
56
let value_lens = (env: Env . t , ty: Types . type_expr ) => {
57
- Doc . print_type(env, ty);
57
+ Document . print_type(env, ty);
58
58
};
59
59
60
60
let pattern_lens = (p: Typedtree . pattern ) => {
61
- Doc . print_type(p. pat_env, p. pat_type);
61
+ Document . print_type(p. pat_env, p. pat_type);
62
62
};
63
63
64
64
let type_lens = (ty: Typedtree . core_type ) => {
65
- Doc . grain_type_code_block(Printtyp . string_of_type_scheme(ty. ctyp_type));
65
+ Document . grain_type_code_block(
66
+ Printtyp . string_of_type_scheme(ty. ctyp_type),
67
+ );
66
68
};
67
69
68
70
let declaration_lens = (ident: Ident . t , decl: Types . type_declaration ) => {
69
- Doc . grain_type_code_block(
71
+ Document . grain_type_code_block(
70
72
Printtyp . string_of_type_declaration(~ident, decl),
71
73
);
72
74
};
You can’t perform that action at this time.
0 commit comments