fix #212 - Symbol list crashes with std.string

This commit is contained in:
Basile Burg 2017-12-20 23:17:45 +01:00
parent ff9b3a3cb4
commit 102eb18146
1 changed files with 2 additions and 2 deletions

View File

@ -154,14 +154,14 @@ class SymbolListBuilder(ListFmt Fmt): ASTVisitor
pasStream.put("\ritem\r");
pasStream.put(format("line=%d\r", dt.name.line));
pasStream.put(format("col=%d\r", dt.name.column));
static if (is(DT == FunctionDeclaration))
static if (is(DT == FunctionDeclaration) && false)
{
if (dt.parameters && dt.parameters.parameters &&
dt.parameters.parameters.length)
{
funcNameApp.length = 0;
fmtVisitor.format(dt.parameters);
pasStream.put(format("name='%s%s'\r", dt.name.text, funcNameApp[]));
pasStream.put(format("name='%s%s'\r", dt.name.text, patchPascalString(funcNameApp[])));
}
else pasStream.put(format("name='%s'\r", dt.name.text));
}