# HG changeset patch # User Aziz K?ksal # Date 1200316231 -3600 # Node ID 3569c2fc612414e7bffc580e41f1071642e2b3e0 # Parent 05645f5613c13de267bb22e08d8de66c6e7d3e15 Fixed some return statements. diff -r 05645f5613c1 -r 3569c2fc6124 trunk/src/dil/ast/Visitor.d --- 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) diff -r 05645f5613c1 -r 3569c2fc6124 trunk/src/dil/semantic/Pass1.d --- 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);