This commit is contained in:
Basile Burg 2015-03-26 22:34:57 +01:00
parent 9b18cdad22
commit 13bede08e9
2 changed files with 10 additions and 10 deletions

View File

@ -186,7 +186,7 @@ class SymbolListBuilder : ASTVisitor
/// returns a new symbol if the declarator is based on a Token named "name". /// returns a new symbol if the declarator is based on a Token named "name".
final Symbol * addDeclaration(DT)(DT adt) final Symbol * addDeclaration(DT)(DT adt)
{ {
static if static if
( (
is(DT == const(EponymousTemplateDeclaration)) || is(DT == const(EponymousTemplateDeclaration)) ||
is(DT == const(AnonymousEnumMember)) || is(DT == const(AnonymousEnumMember)) ||
@ -194,11 +194,11 @@ class SymbolListBuilder : ASTVisitor
is(DT == const(ClassDeclaration)) || is(DT == const(ClassDeclaration)) ||
is(DT == const(Declarator)) || is(DT == const(Declarator)) ||
is(DT == const(EnumDeclaration)) || is(DT == const(EnumDeclaration)) ||
is(DT == const(FunctionDeclaration)) || is(DT == const(FunctionDeclaration)) ||
is(DT == const(InterfaceDeclaration)) || is(DT == const(InterfaceDeclaration)) ||
is(DT == const(StructDeclaration)) || is(DT == const(StructDeclaration)) ||
is(DT == const(TemplateDeclaration)) || is(DT == const(TemplateDeclaration)) ||
is(DT == const(UnionDeclaration)) is(DT == const(UnionDeclaration))
) )
{ {
@ -206,8 +206,8 @@ class SymbolListBuilder : ASTVisitor
auto result = construct!Symbol; auto result = construct!Symbol;
result.name = adt.name.text; result.name = adt.name.text;
result.line = adt.name.line; result.line = adt.name.line;
result.col = adt.name.column; result.col = adt.name.column;
parent.subs ~= result; parent.subs ~= result;
return result; return result;
} }
@ -226,9 +226,9 @@ class SymbolListBuilder : ASTVisitor
scope(exit) parent = previousParent; scope(exit) parent = previousParent;
parent = newSymbol; parent = newSymbol;
dt.accept(this); dt.accept(this);
} }
} }
/// visitor implementation for special cases. /// visitor implementation for special cases.
final void otherVisitorImpl(SymbolType st, string name, size_t line, size_t col) final void otherVisitorImpl(SymbolType st, string name, size_t line, size_t col)
{ {

@ -1 +1 @@
Subproject commit 01bdacb37d39971c72a600fb0a3b1ad181e5bde4 Subproject commit 617b7c6f2c33cf7121c75ed2b88460d1416eb85c