Mercurial > projects > dil
diff trunk/src/dil/ast/Declarations.d @ 654:2a71e2f50e13
Moved class Declaration to its own module.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Tue, 15 Jan 2008 16:22:49 +0100 |
parents | eb490ba8dba0 |
children | 0acc43b86bf2 |
line wrap: on
line diff
--- a/trunk/src/dil/ast/Declarations.d Tue Jan 15 16:05:42 2008 +0100 +++ b/trunk/src/dil/ast/Declarations.d Tue Jan 15 16:22:49 2008 +0100 @@ -4,6 +4,7 @@ +/ module dil.ast.Declarations; +public import dil.ast.Declaration; import dil.ast.Node; import dil.ast.Expressions; import dil.ast.Types; @@ -15,40 +16,6 @@ import dil.Enums; import common; -abstract class Declaration : Node -{ - bool hasBody; - this() - { - super(NodeCategory.Declaration); - } - - // Members relevant to semantic phase. - StorageClass stc; /// The storage class of this declaration. - Protection prot; /// The protection attribute of this declaration. - - final bool isStatic() - { - return !!(stc & StorageClass.Static); - } - - final bool isPublic() - { - return !!(prot & Protection.Public); - } - - final void setStorageClass(StorageClass stc) - { - this.stc = stc; - } - - final void setProtection(Protection prot) - { - this.prot = prot; - } - -} - class Declarations : Declaration { this()