Updated syntax of function arguments for completions to match that used by clang.
This commit is contained in:
parent
327f5f5af2
commit
ad273ea869
10
types.d
10
types.d
|
|
@ -745,18 +745,20 @@ private:
|
|||
string getFunctionType(Function f) {
|
||||
string result = "f";
|
||||
if (extendedFunctionTypes) {
|
||||
result ~= "::";
|
||||
result ~= " : ";
|
||||
result ~= "[#" ~ f.returnType ~ "#]";
|
||||
result ~= f.name ~ "(";
|
||||
bool first = true;
|
||||
foreach (param; f.parameters) {
|
||||
if (first) {
|
||||
first = false;
|
||||
}
|
||||
else {
|
||||
result ~= "::";
|
||||
result ~= ",";
|
||||
}
|
||||
result ~= param.type ~ " " ~ param.name;
|
||||
result ~= "<#" ~ param.type ~ " " ~ param.name ~ "#>";
|
||||
}
|
||||
result ~= "::";
|
||||
result ~= ")";
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue