Fix #107
This commit is contained in:
parent
505718f4a5
commit
2a812d372b
|
|
@ -331,6 +331,13 @@ static this()
|
||||||
s.parts ~= stringof_;
|
s.parts ~= stringof_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
aggregateSymbols ~= new ACSymbol("tupleof", CompletionKind.variableName);
|
||||||
|
aggregateSymbols ~= mangleof_;
|
||||||
|
aggregateSymbols ~= alignof_;
|
||||||
|
aggregateSymbols ~= sizeof_;
|
||||||
|
aggregateSymbols ~= stringof_;
|
||||||
|
aggregateSymbols ~= init;
|
||||||
|
|
||||||
classSymbols ~= new ACSymbol("classInfo", CompletionKind.variableName);
|
classSymbols ~= new ACSymbol("classInfo", CompletionKind.variableName);
|
||||||
classSymbols ~= new ACSymbol("tupleof", CompletionKind.variableName);
|
classSymbols ~= new ACSymbol("tupleof", CompletionKind.variableName);
|
||||||
classSymbols ~= new ACSymbol("__vptr", CompletionKind.variableName);
|
classSymbols ~= new ACSymbol("__vptr", CompletionKind.variableName);
|
||||||
|
|
@ -338,6 +345,7 @@ static this()
|
||||||
classSymbols ~= mangleof_;
|
classSymbols ~= mangleof_;
|
||||||
classSymbols ~= alignof_;
|
classSymbols ~= alignof_;
|
||||||
classSymbols ~= sizeof_;
|
classSymbols ~= sizeof_;
|
||||||
|
classSymbols ~= stringof_;
|
||||||
classSymbols ~= init;
|
classSymbols ~= init;
|
||||||
|
|
||||||
ireal_.parts ~= new ACSymbol("im", CompletionKind.keyword, real_);
|
ireal_.parts ~= new ACSymbol("im", CompletionKind.keyword, real_);
|
||||||
|
|
@ -379,6 +387,7 @@ static this()
|
||||||
const(ACSymbol)*[] builtinSymbols;
|
const(ACSymbol)*[] builtinSymbols;
|
||||||
const(ACSymbol)*[] arraySymbols;
|
const(ACSymbol)*[] arraySymbols;
|
||||||
const(ACSymbol)*[] assocArraySymbols;
|
const(ACSymbol)*[] assocArraySymbols;
|
||||||
|
const(ACSymbol)*[] aggregateSymbols;
|
||||||
const(ACSymbol)*[] classSymbols;
|
const(ACSymbol)*[] classSymbols;
|
||||||
Type argptrType;
|
Type argptrType;
|
||||||
Type argumentsType;
|
Type argumentsType;
|
||||||
|
|
|
||||||
|
|
@ -394,7 +394,10 @@ private:
|
||||||
// Log.trace("visiting aggregate declaration ", dec.name.text);
|
// Log.trace("visiting aggregate declaration ", dec.name.text);
|
||||||
SemanticSymbol* symbol = new SemanticSymbol(getCached(dec.name.text),
|
SemanticSymbol* symbol = new SemanticSymbol(getCached(dec.name.text),
|
||||||
kind, symbolFile, dec.name.index);
|
kind, symbolFile, dec.name.index);
|
||||||
|
if (kind == CompletionKind.className)
|
||||||
symbol.acSymbol.parts ~= classSymbols;
|
symbol.acSymbol.parts ~= classSymbols;
|
||||||
|
else
|
||||||
|
symbol.acSymbol.parts ~= aggregateSymbols;
|
||||||
symbol.parent = currentSymbol;
|
symbol.parent = currentSymbol;
|
||||||
symbol.protection = protection;
|
symbol.protection = protection;
|
||||||
symbol.acSymbol.doc = formatComment(dec.comment);
|
symbol.acSymbol.doc = formatComment(dec.comment);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue