From 2e7af16f1edb7bd4309a38f21b7c218701e83652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20Nordl=C3=B6w?= Date: Thu, 14 Jul 2022 11:00:18 +0200 Subject: [PATCH] Use allocatorObject in doc.d --- src/dcd/server/autocomplete/doc.d | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dcd/server/autocomplete/doc.d b/src/dcd/server/autocomplete/doc.d index 5d6ee3b..4788357 100644 --- a/src/dcd/server/autocomplete/doc.d +++ b/src/dcd/server/autocomplete/doc.d @@ -32,6 +32,8 @@ import dsymbol.modulecache; import dcd.common.messages; +import std.experimental.allocator : allocatorObject; + /** * Gets documentation for the symbol at the cursor * Params: @@ -48,7 +50,7 @@ public AutocompleteResponse getDoc(const AutocompleteRequest request, scope allocator = new ASTAllocator(); auto cache = StringCache(request.sourceCode.length.optimalBucketCount); SymbolStuff stuff = getSymbolsForCompletion(request, CompletionType.ddoc, - allocator, &rba, cache, moduleCache); + allocator.allocatorObject, &rba, cache, moduleCache); // TODO: using allocatorObject gives errors about qualifiers if (stuff.symbols.length == 0) warning("Could not find symbol"); else