Skip to content

Commit 479b596

Browse files
committed
chore: Rename doc.re to document.re
1 parent 7b0549a commit 479b596

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

compiler/src/language_server/completion.re

+2-2
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ let build_value_completion =
230230
{
231231
label: value_name,
232232
kind: CompletionItemKindValue,
233-
detail: Doc.print_type(env, value_desc.val_type),
233+
detail: Document.print_type(env, value_desc.val_type),
234234
documentation: "",
235235
};
236236
};
@@ -239,7 +239,7 @@ let build_module_completion =
239239
{
240240
label: module_name,
241241
kind: CompletionItemKindModule,
242-
detail: Doc.print_mod_type(mod_desc),
242+
detail: Document.print_mod_type(mod_desc),
243243
documentation: "",
244244
};
245245
};
File renamed without changes.
File renamed without changes.

compiler/src/language_server/hover.re

+7-5
Original file line numberDiff line numberDiff line change
@@ -50,23 +50,25 @@ let send_no_result = (~id: Protocol.message_id) => {
5050
};
5151

5252
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));
5454
};
5555

5656
let value_lens = (env: Env.t, ty: Types.type_expr) => {
57-
Doc.print_type(env, ty);
57+
Document.print_type(env, ty);
5858
};
5959

6060
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);
6262
};
6363

6464
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+
);
6668
};
6769

6870
let declaration_lens = (ident: Ident.t, decl: Types.type_declaration) => {
69-
Doc.grain_type_code_block(
71+
Document.grain_type_code_block(
7072
Printtyp.string_of_type_declaration(~ident, decl),
7173
);
7274
};

0 commit comments

Comments
 (0)