Update to dparse 0.10.x
This commit is contained in:
parent
34e79e0f1b
commit
9b7414367d
2
dsymbol
2
dsymbol
|
@ -1 +1 @@
|
|||
Subproject commit 47f471114ad272dc0cd41996c7977413d7a68d63
|
||||
Subproject commit b3b4616601ff4dad529b5acf927aaf85c21559a2
|
4
dub.json
4
dub.json
|
@ -7,8 +7,8 @@
|
|||
],
|
||||
"license": "GPL-3.0",
|
||||
"dependencies": {
|
||||
"dsymbol": "~>0.4.8",
|
||||
"libdparse": "~>0.9.9",
|
||||
"dsymbol": "~>0.5.2",
|
||||
"libdparse": "~>0.10.6",
|
||||
"msgpack-d": "~>1.0.0-beta.3",
|
||||
"stdx-allocator": "~>2.77.4"
|
||||
},
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 95444a966923a24098c31464e09a7096208da155
|
||||
Subproject commit 6a1c48f8bdc6e8bb890039aa67c03a4910b55d65
|
|
@ -54,7 +54,7 @@ public AutocompleteResponse complete(const AutocompleteRequest request,
|
|||
ref ModuleCache moduleCache)
|
||||
{
|
||||
const(Token)[] tokenArray;
|
||||
auto stringCache = StringCache(StringCache.defaultBucketCount);
|
||||
auto stringCache = StringCache(request.sourceCode.length.optimalBucketCount);
|
||||
auto beforeTokens = getTokensBeforeCursor(request.sourceCode,
|
||||
request.cursorPosition, stringCache, tokenArray);
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ public AutocompleteResponse getDoc(const AutocompleteRequest request,
|
|||
AutocompleteResponse response;
|
||||
RollbackAllocator rba;
|
||||
auto allocator = scoped!(ASTAllocator)();
|
||||
auto cache = StringCache(StringCache.defaultBucketCount);
|
||||
auto cache = StringCache(request.sourceCode.length.optimalBucketCount);
|
||||
SymbolStuff stuff = getSymbolsForCompletion(request, CompletionType.ddoc,
|
||||
allocator, &rba, cache, moduleCache);
|
||||
if (stuff.symbols.length == 0)
|
||||
|
|
|
@ -46,7 +46,7 @@ public AutocompleteResponse findLocalUse(AutocompleteRequest request,
|
|||
AutocompleteResponse response;
|
||||
RollbackAllocator rba;
|
||||
auto allocator = scoped!(ASTAllocator)();
|
||||
auto cache = StringCache(StringCache.defaultBucketCount);
|
||||
auto cache = StringCache(request.sourceCode.length.optimalBucketCount);
|
||||
|
||||
// patchs the original request for the subsequent requests
|
||||
request.kind = RequestKind.symbolLocation;
|
||||
|
|
|
@ -48,7 +48,7 @@ public AutocompleteResponse findDeclaration(const AutocompleteRequest request,
|
|||
AutocompleteResponse response;
|
||||
RollbackAllocator rba;
|
||||
auto allocator = scoped!(ASTAllocator)();
|
||||
auto cache = StringCache(StringCache.defaultBucketCount);
|
||||
auto cache = StringCache(request.sourceCode.length.optimalBucketCount);
|
||||
SymbolStuff stuff = getSymbolsForCompletion(request,
|
||||
CompletionType.location, allocator, &rba, cache, moduleCache);
|
||||
scope(exit) stuff.destroy();
|
||||
|
@ -72,7 +72,7 @@ public AutocompleteResponse symbolSearch(const AutocompleteRequest request,
|
|||
|
||||
LexerConfig config;
|
||||
config.fileName = "";
|
||||
auto cache = StringCache(StringCache.defaultBucketCount);
|
||||
auto cache = StringCache(request.sourceCode.length.optimalBucketCount);
|
||||
const(Token)[] tokenArray = getTokensForParser(cast(ubyte[]) request.sourceCode,
|
||||
config, &cache);
|
||||
auto allocator = scoped!(ASTAllocator)();
|
||||
|
|
Loading…
Reference in New Issue