Skip to content

Commit

Permalink
Update dparse and containers
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackerpilot committed Oct 13, 2016
1 parent b557e45 commit 021df81
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "BSL-1.0",
"authors": ["Brian Schott"],
"dependencies": {
"libdparse": "0.7.0-alpha.15",
"emsi_containers": "~>0.5.0"
"libdparse": "0.7.0-beta.1",
"emsi_containers": "~>0.5.2"
}
}
9 changes: 5 additions & 4 deletions src/dsymbol/conversion/first.d
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import dparse.formatter;
import dparse.lexer;
import std.typecons;
import std.experimental.logger;
import std.algorithm.iteration : map;

/**
* First Pass handles the following:
Expand Down Expand Up @@ -219,13 +220,13 @@ final class FirstPass : ASTVisitor
}
if (dec.autoDeclaration !is null)
{
foreach (i, identifier; dec.autoDeclaration.identifiers)
foreach (part; dec.autoDeclaration.parts)
{
SemanticSymbol* symbol = allocateSemanticSymbol(
identifier.text, CompletionKind.variableName,
symbolFile, identifier.index);
part.identifier.text, CompletionKind.variableName,
symbolFile, part.identifier.index);
symbol.parent = currentSymbol;
populateInitializer(symbol, dec.autoDeclaration.initializers[i]);
populateInitializer(symbol, part.initializer);
symbol.protection = protection.current;
symbol.acSymbol.doc = internString(dec.comment);
currentSymbol.addChild(symbol, true);
Expand Down

0 comments on commit 021df81

Please sign in to comment.