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