Mercurial > projects > dil
diff trunk/src/Declarations.d @ 122:9849a263f148
- Added method parseDeclarationsBlock().
- Added method parseDebugDeclaration().
author | aziz |
---|---|
date | Mon, 09 Jul 2007 20:24:03 +0000 |
parents | 030933c6b5f0 |
children | 0f55c0ac6589 |
line wrap: on
line diff
--- a/trunk/src/Declarations.d Mon Jul 09 17:54:03 2007 +0000 +++ b/trunk/src/Declarations.d Mon Jul 09 20:24:03 2007 +0000 @@ -193,3 +193,23 @@ this.statements = statements; } } + +class DebugDeclaration : Declaration +{ + int levelSpec; + string identSpec; + int levelCond; + string identCond; + Declaration[] decls, elseDecls; + + this(int levelSpec, string identSpec, int levelCond, string identCond, Declaration[] decls, Declaration[] elseDecls) + { + super(decls.length != 0); + this.levelSpec = levelSpec; + this.identSpec = identSpec; + this.levelCond = levelCond; + this.identCond = identCond; + this.decls = decls; + this.elseDecls = elseDecls; + } +}