Merge c2361f5c3e into 0e85f165a9
This commit is contained in:
commit
517a1cd9b4
|
|
@ -624,27 +624,31 @@ void setCompletions(T)(ref AutocompleteResponse response,
|
|||
}
|
||||
}
|
||||
}
|
||||
if (symbols[0].kind == CompletionKind.structName
|
||||
|| symbols[0].kind == CompletionKind.className)
|
||||
}
|
||||
|
||||
if (symbols[0].kind == CompletionKind.structName
|
||||
|| symbols[0].kind == CompletionKind.className)
|
||||
{
|
||||
|
||||
auto constructor = symbols[0].getPartsByName(CONSTRUCTOR_SYMBOL_NAME);
|
||||
|
||||
if (constructor.length == 0)
|
||||
{
|
||||
auto constructor = symbols[0].getPartsByName(CONSTRUCTOR_SYMBOL_NAME);
|
||||
if (constructor.length == 0)
|
||||
// Build a call tip out of the struct fields
|
||||
if (symbols[0].kind == CompletionKind.structName)
|
||||
{
|
||||
// Build a call tip out of the struct fields
|
||||
if (symbols[0].kind == CompletionKind.structName)
|
||||
{
|
||||
response.completionType = CompletionType.calltips;
|
||||
response.completions = [generateStructConstructorCalltip(symbols[0])];
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
symbols = constructor;
|
||||
goto setCallTips;
|
||||
response.completionType = CompletionType.calltips;
|
||||
response.completions = [generateStructConstructorCalltip(symbols[0])];
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
symbols = constructor;
|
||||
goto setCallTips;
|
||||
}
|
||||
}
|
||||
|
||||
setCallTips:
|
||||
response.completionType = CompletionType.calltips;
|
||||
foreach (symbol; symbols)
|
||||
|
|
|
|||
Loading…
Reference in New Issue