Fix autocompletion response and fixed memory corruption on doc comments
This commit is contained in:
parent
0bbbb5bb60
commit
2d5d74186a
|
|
@ -586,11 +586,8 @@ T getExpression(T)(T beforeTokens)
|
|||
case tok!"this":
|
||||
case tok!"identifier":
|
||||
if (hasSpecialPrefix)
|
||||
{
|
||||
i++;
|
||||
break expressionLoop;
|
||||
}
|
||||
break;
|
||||
break expressionLoop;
|
||||
case tok!".":
|
||||
break;
|
||||
case tok!"*":
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue