Mercurial > projects > dil
changeset 641:3569c2fc6124
Fixed some return statements.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Mon, 14 Jan 2008 14:10:31 +0100 |
parents | 05645f5613c1 |
children | be45f982ee3e |
files | trunk/src/dil/ast/Visitor.d trunk/src/dil/semantic/Pass1.d |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/src/dil/ast/Visitor.d Mon Jan 14 02:36:14 2008 +0100 +++ b/trunk/src/dil/ast/Visitor.d Mon Jan 14 14:10:31 2008 +0100 @@ -53,7 +53,7 @@ Expression visitCommaExpression(Visitor visitor, CommaExpression c) { visitor.visit(c); } - The equivalent in the traditional Visitor pattern would be: + The equivalent in the traditional visitor pattern would be: class CommaExpression : Expression { void accept(Visitor visitor)
--- a/trunk/src/dil/semantic/Pass1.d Mon Jan 14 02:36:14 2008 +0100 +++ b/trunk/src/dil/semantic/Pass1.d Mon Jan 14 14:10:31 2008 +0100 @@ -63,7 +63,7 @@ Declaration visit(ClassDeclaration d) { if (d.symbol) - return null; + return d; d.symbol = new Class(d.name, d); // Insert into current scope. scop.insert(d.symbol, d.name); @@ -77,7 +77,7 @@ Declaration visit(InterfaceDeclaration d) { if (d.symbol) - return null; + return d; d.symbol = new dil.semantic.Symbols.Interface(d.name, d); // Insert into current scope. scop.insert(d.symbol, d.name); @@ -91,7 +91,7 @@ Declaration visit(StructDeclaration d) { if (d.symbol) - return null; + return d; d.symbol = new Struct(d.name, d); // Insert into current scope. scop.insert(d.symbol, d.name); @@ -105,7 +105,7 @@ Declaration visit(UnionDeclaration d) { if (d.symbol) - return null; + return d; d.symbol = new Union(d.name, d); // Insert into current scope. scop.insert(d.symbol, d.name);