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!"this":
|
||||||
case tok!"identifier":
|
case tok!"identifier":
|
||||||
if (hasSpecialPrefix)
|
if (hasSpecialPrefix)
|
||||||
{
|
|
||||||
i++;
|
i++;
|
||||||
break expressionLoop;
|
break expressionLoop;
|
||||||
}
|
|
||||||
break;
|
|
||||||
case tok!".":
|
case tok!".":
|
||||||
break;
|
break;
|
||||||
case tok!"*":
|
case tok!"*":
|
||||||
|
|
|
||||||
|
|
@ -431,7 +431,7 @@ private:
|
||||||
symbol.acSymbol.parts.insert(aggregateSymbols[]);
|
symbol.acSymbol.parts.insert(aggregateSymbols[]);
|
||||||
symbol.parent = currentSymbol;
|
symbol.parent = currentSymbol;
|
||||||
symbol.protection = protection;
|
symbol.protection = protection;
|
||||||
symbol.acSymbol.doc = dec.comment;
|
symbol.acSymbol.doc = stringCache.intern(dec.comment);
|
||||||
currentSymbol = symbol;
|
currentSymbol = symbol;
|
||||||
dec.accept(this);
|
dec.accept(this);
|
||||||
currentSymbol = symbol.parent;
|
currentSymbol = symbol.parent;
|
||||||
|
|
@ -446,7 +446,7 @@ private:
|
||||||
processParameters(symbol, null, "this", parameters, doc);
|
processParameters(symbol, null, "this", parameters, doc);
|
||||||
symbol.protection = protection;
|
symbol.protection = protection;
|
||||||
symbol.parent = currentSymbol;
|
symbol.parent = currentSymbol;
|
||||||
symbol.acSymbol.doc = doc;
|
symbol.acSymbol.doc = stringCache.intern(doc);
|
||||||
currentSymbol.addChild(symbol);
|
currentSymbol.addChild(symbol);
|
||||||
if (functionBody !is null)
|
if (functionBody !is null)
|
||||||
{
|
{
|
||||||
|
|
@ -463,7 +463,7 @@ private:
|
||||||
symbol.acSymbol.callTip = "~this()";
|
symbol.acSymbol.callTip = "~this()";
|
||||||
symbol.protection = protection;
|
symbol.protection = protection;
|
||||||
symbol.parent = currentSymbol;
|
symbol.parent = currentSymbol;
|
||||||
symbol.acSymbol.doc = doc;
|
symbol.acSymbol.doc = stringCache.intern(doc);
|
||||||
currentSymbol.addChild(symbol);
|
currentSymbol.addChild(symbol);
|
||||||
if (functionBody !is null)
|
if (functionBody !is null)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue