Mercurial > projects > dil
diff trunk/src/dil/Declarations.d @ 559:c4bb948e5cc1
Added semantic code for pragmas.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Mon, 24 Dec 2007 20:39:14 +0100 |
parents | aa73f669c298 |
children | b0533550d64c |
line wrap: on
line diff
--- a/trunk/src/dil/Declarations.d Mon Dec 24 20:23:45 2007 +0100 +++ b/trunk/src/dil/Declarations.d Mon Dec 24 20:39:14 2007 +0100 @@ -10,7 +10,8 @@ import dil.Token; import dil.Enums; import dil.Scope; -import dil.Identifier; +import dil.IdTable; +import dil.Semantics; abstract class Declaration : Node { @@ -654,6 +655,12 @@ this.ident = ident; this.args = args; } + + void semantic(Scope scop) + { + pragmaSemantic(scop, begin, ident, args); + decls.semantic(scop); + } } class MixinDeclaration : Declaration