mirror of
https://github.com/dlang-community/DCD.git
synced 2025-04-29 14:49:54 +03:00
Fix #233
This commit is contained in:
parent
1996076c73
commit
a3ea47a017
6 changed files with 15 additions and 4 deletions
2
dsymbol
2
dsymbol
|
@ -1 +1 @@
|
||||||
Subproject commit ea0deb0ce566ffced71a427885e069998fc9220a
|
Subproject commit bd1425b5342a8d186bf47ba7982b74a62ddb993f
|
|
@ -889,11 +889,9 @@ void setCompletions(T)(ref AutocompleteResponse response,
|
||||||
{
|
{
|
||||||
if (symbols[0].kind == CompletionKind.aliasName)
|
if (symbols[0].kind == CompletionKind.aliasName)
|
||||||
{
|
{
|
||||||
trace("Got here");
|
|
||||||
if (symbols[0].type is null)
|
if (symbols[0].type is null)
|
||||||
return;
|
return;
|
||||||
symbols = [symbols[0].type];
|
symbols = [symbols[0].type];
|
||||||
trace("Got there", symbols[0].kind);
|
|
||||||
}
|
}
|
||||||
if (symbols[0].kind == CompletionKind.variableName)
|
if (symbols[0].kind == CompletionKind.variableName)
|
||||||
{
|
{
|
||||||
|
|
2
tests/tc013/expected1.txt
Normal file
2
tests/tc013/expected1.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
calltips
|
||||||
|
void function(SDL_Window*, int*, int*)
|
2
tests/tc013/expected2.txt
Normal file
2
tests/tc013/expected2.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
calltips
|
||||||
|
void function()
|
|
@ -1,7 +1,13 @@
|
||||||
alias da_SDL_GL_GetDrawableSize = void function( SDL_Window*, int*, int* );
|
alias da_SDL_GL_GetDrawableSize = void function( SDL_Window*, int*, int* );
|
||||||
da_SDL_GL_GetDrawableSize SDL_GL_GetDrawableSize;
|
da_SDL_GL_GetDrawableSize SDL_GL_GetDrawableSize;
|
||||||
|
void function() doStuff;
|
||||||
|
|
||||||
unittest
|
unittest
|
||||||
{
|
{
|
||||||
SDL_GL_GetDrawableSize(
|
SDL_GL_GetDrawableSize(
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unittest
|
||||||
|
{
|
||||||
|
doStuff(
|
||||||
|
}
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
set -e
|
set -e
|
||||||
set -u
|
set -u
|
||||||
|
|
||||||
dcd-client file.d -c162 > actual1.txt
|
dcd-client file.d -c187 > actual1.txt
|
||||||
diff actual1.txt expected1.txt
|
diff actual1.txt expected1.txt
|
||||||
|
|
||||||
|
dcd-client file.d -c211 > actual2.txt
|
||||||
|
diff actual2.txt expected2.txt
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue