Mercurial > projects > dil
diff trunk/src/dil/semantic/Pass1.d @ 726:7917811f8116
AggregateDeclarations are wrapped inside TemplateDeclarations now.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Sat, 02 Feb 2008 19:58:09 +0100 |
parents | 140469ecb90e |
children | 00f872d949ea |
line wrap: on
line diff
--- a/trunk/src/dil/semantic/Pass1.d Sat Feb 02 14:24:29 2008 +0100 +++ b/trunk/src/dil/semantic/Pass1.d Sat Feb 02 19:58:09 2008 +0100 @@ -229,10 +229,7 @@ return d; d.symbol = new Class(d.name, d); // Insert into current scope. - if (d.tparams) - insertOverload(d.symbol, d.name); - else - insert(d.symbol, d.name); + insert(d.symbol, d.name); enterScope(d.symbol); // Continue semantic analysis. d.decls && visitD(d.decls); @@ -246,10 +243,7 @@ return d; d.symbol = new dil.semantic.Symbols.Interface(d.name, d); // Insert into current scope. - if (d.tparams) - insertOverload(d.symbol, d.name); - else - insert(d.symbol, d.name); + insert(d.symbol, d.name); enterScope(d.symbol); // Continue semantic analysis. d.decls && visitD(d.decls); @@ -264,12 +258,7 @@ d.symbol = new Struct(d.name, d); // Insert into current scope. if (d.name) - { - if (d.tparams) - insertOverload(d.symbol, d.name); - else - insert(d.symbol, d.name); - } + insert(d.symbol, d.name); enterScope(d.symbol); // Continue semantic analysis. d.decls && visitD(d.decls); @@ -284,12 +273,7 @@ d.symbol = new Union(d.name, d); // Insert into current scope. if (d.name) - { - if (d.tparams) - insertOverload(d.symbol, d.name); - else - insert(d.symbol, d.name); - } + insert(d.symbol, d.name); enterScope(d.symbol); // Continue semantic analysis. d.decls && visitD(d.decls);