Use allocatorObject in doc.d

This commit is contained in:
Per Nordlöw 2022-07-14 11:00:18 +02:00
parent 5df7ba46cd
commit 2e7af16f1e
1 changed files with 3 additions and 1 deletions

View File

@ -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