Fix autocompletion response and fixed memory corruption on doc comments

This commit is contained in:
Hackerpilot 2014-05-13 14:38:30 -07:00
parent 0bbbb5bb60
commit 2d5d74186a
2 changed files with 4 additions and 7 deletions

View File

@ -586,11 +586,8 @@ T getExpression(T)(T beforeTokens)
case tok!"this":
case tok!"identifier":
if (hasSpecialPrefix)
{
i++;
break expressionLoop;
}
break;
case tok!".":
break;
case tok!"*":

View File

@ -431,7 +431,7 @@ private:
symbol.acSymbol.parts.insert(aggregateSymbols[]);
symbol.parent = currentSymbol;
symbol.protection = protection;
symbol.acSymbol.doc = dec.comment;
symbol.acSymbol.doc = stringCache.intern(dec.comment);
currentSymbol = symbol;
dec.accept(this);
currentSymbol = symbol.parent;
@ -446,7 +446,7 @@ private:
processParameters(symbol, null, "this", parameters, doc);
symbol.protection = protection;
symbol.parent = currentSymbol;
symbol.acSymbol.doc = doc;
symbol.acSymbol.doc = stringCache.intern(doc);
currentSymbol.addChild(symbol);
if (functionBody !is null)
{
@ -463,7 +463,7 @@ private:
symbol.acSymbol.callTip = "~this()";
symbol.protection = protection;
symbol.parent = currentSymbol;
symbol.acSymbol.doc = doc;
symbol.acSymbol.doc = stringCache.intern(doc);
currentSymbol.addChild(symbol);
if (functionBody !is null)
{