Mercurial > projects > dil
comparison trunk/src/dil/ast/Declarations.d @ 777:9f61e8af55d5
Added module dil.Compilation.
Added predefined ID 'startaddress'.
Added keyword 'nothrow'.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Wed, 20 Feb 2008 01:24:19 +0100 |
parents | 0af3b145a405 |
children | 5fe89bb8cbdd |
comparison
equal
deleted
inserted
replaced
776:580d4ca9f1ff | 777:9f61e8af55d5 |
---|---|
463 this.spec = spec; | 463 this.spec = spec; |
464 this.cond = cond; | 464 this.cond = cond; |
465 this.decls = decls; | 465 this.decls = decls; |
466 this.elseDecls = elseDecls; | 466 this.elseDecls = elseDecls; |
467 } | 467 } |
468 | |
469 bool isSpecification() | |
470 { | |
471 return decls is null; | |
472 } | |
473 | |
474 bool isCondition() | |
475 { | |
476 return decls !is null; | |
477 } | |
478 | |
479 /// The branch to be compiled in. | |
480 Declaration compiledDecls; | |
468 } | 481 } |
469 | 482 |
470 class DebugDeclaration : ConditionalCompilationDeclaration | 483 class DebugDeclaration : ConditionalCompilationDeclaration |
471 { | 484 { |
472 this(Token* spec, Token* cond, Declaration decls, Declaration elseDecls) | 485 this(Token* spec, Token* cond, Declaration decls, Declaration elseDecls) |