This commit is contained in:
Hackerpilot 2014-03-19 15:02:05 -07:00
parent 556a88e05d
commit cc0a91963a
1 changed files with 14 additions and 0 deletions

View File

@ -175,6 +175,20 @@ final class FirstPass : ASTVisitor
symbol.acSymbol.doc = dec.comment;
currentSymbol.addChild(symbol);
}
if (dec.autoDeclaration !is null)
{
foreach (identifier; dec.autoDeclaration.identifiers)
{
SemanticSymbol* symbol = new SemanticSymbol(
stringCache.intern(identifier.text),
CompletionKind.variableName, symbolFile, identifier.index,
null);
symbol.protection = protection;
symbol.parent = currentSymbol;
symbol.acSymbol.doc = dec.comment;
currentSymbol.addChild(symbol);
}
}
}
override void visit(const AliasDeclaration aliasDeclaration)