# HG changeset patch # User Aziz K?ksal # Date 1199578769 -3600 # Node ID e98d659f1c29c69f9e5b7f8e586e71b1d4e4d353 # Parent 9daa6c34c45a4d9992de1546f23756386200af6f Moved class BaseClass to module dil.ast.BaseClass. diff -r 9daa6c34c45a -r e98d659f1c29 trunk/src/dil/ast/BaseClass.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/trunk/src/dil/ast/BaseClass.d Sun Jan 06 01:19:29 2008 +0100 @@ -0,0 +1,23 @@ +/++ + Author: Aziz Köksal + License: GPL3 ++/ +module dil.ast.BaseClass; + +import dil.ast.Node; +import dil.ast.Types; +import dil.Enums; + +class BaseClass : Node +{ + Protection prot; + TypeNode type; + this(Protection prot, TypeNode type) + { + super(NodeCategory.Other); + mixin(set_kind); + addChild(type); + this.prot = prot; + this.type = type; + } +} diff -r 9daa6c34c45a -r e98d659f1c29 trunk/src/dil/ast/Declarations.d --- a/trunk/src/dil/ast/Declarations.d Sun Jan 06 01:09:54 2008 +0100 +++ b/trunk/src/dil/ast/Declarations.d Sun Jan 06 01:19:29 2008 +0100 @@ -9,6 +9,7 @@ import dil.ast.Types; import dil.ast.Statements; import dil.ast.Parameter; +import dil.ast.BaseClass; import dil.lexer.IdTable; import dil.semantic.Scope; import dil.semantic.Analysis; diff -r 9daa6c34c45a -r e98d659f1c29 trunk/src/dil/ast/Expressions.d --- a/trunk/src/dil/ast/Expressions.d Sun Jan 06 01:09:54 2008 +0100 +++ b/trunk/src/dil/ast/Expressions.d Sun Jan 06 01:19:29 2008 +0100 @@ -9,6 +9,7 @@ import dil.ast.Declarations; import dil.ast.Statements; import dil.ast.Parameter; +import dil.ast.BaseClass; import dil.lexer.Identifier; import dil.semantic.Scope; import dil.semantic.Types; diff -r 9daa6c34c45a -r e98d659f1c29 trunk/src/dil/ast/Types.d --- a/trunk/src/dil/ast/Types.d Sun Jan 06 01:09:54 2008 +0100 +++ b/trunk/src/dil/ast/Types.d Sun Jan 06 01:19:29 2008 +0100 @@ -12,20 +12,6 @@ import dil.semantic.Scope; import dil.semantic.Types; -class BaseClass : Node -{ - Protection prot; - TypeNode type; - this(Protection prot, TypeNode type) - { - super(NodeCategory.Other); - mixin(set_kind); - addChild(type); - this.prot = prot; - this.type = type; - } -} - enum TID { Void = TOK.Void, diff -r 9daa6c34c45a -r e98d659f1c29 trunk/src/dil/parser/Parser.d --- a/trunk/src/dil/parser/Parser.d Sun Jan 06 01:09:54 2008 +0100 +++ b/trunk/src/dil/parser/Parser.d Sun Jan 06 01:19:29 2008 +0100 @@ -11,6 +11,7 @@ import dil.ast.Expressions; import dil.ast.Types; import dil.ast.Parameter; +import dil.ast.BaseClass; import dil.lexer.IdTable; import dil.Messages; import dil.Information;