Mercurial > projects > ddmd
annotate dmd/StaticAssertStatement.d @ 51:b7d29f613539
StaticAssertStatement.syntaxCopy
IfStatement.syntaxCopy
CompoundDeclarationStatement.syntaxCopy
VoidInitializer.syntaxCopy
TypeAArray.syntaxCopy
TypeTypeof.syntaxCopy
TypeAArray.resolve
TypeSArray.deduceType
TypeAArray.deduceType
TypeAArray.implicitConvTo
TemplateDeclaration.leastAsSpecialized
TemplateTypeParameter.dummyArg
TypeIdentifier.deduceType
TemplateTypeParameter.syntaxCopy
Lexer.hexStringConstant
Lexer.delimitedStringConstant
GotoDefaultStatement.ctor
CaseRangeStatement.ctor
Type.castMod
StorageClassDeclaration.syntaxCopy
TemplateDeclaration.syntaxCopy
author | korDen |
---|---|
date | Sat, 21 Aug 2010 11:17:42 +0400 |
parents | 10317f0c89a5 |
children | 2e2a5c3f943a |
rev | line source |
---|---|
0 | 1 module dmd.StaticAssertStatement; |
2 | |
3 import dmd.Statement; | |
4 import dmd.StaticAssert; | |
5 import dmd.OutBuffer; | |
6 import dmd.HdrGenState; | |
7 import dmd.Scope; | |
8 import dmd.Loc; | |
9 | |
10 class StaticAssertStatement : Statement | |
11 { | |
12 StaticAssert sa; | |
13 | |
14 this(StaticAssert sa) | |
15 { | |
16 super(sa.loc); | |
17 this.sa = sa; | |
18 } | |
19 | |
20 Statement syntaxCopy() | |
21 { | |
51 | 22 StaticAssertStatement s = new StaticAssertStatement(cast(StaticAssert)sa.syntaxCopy(null)); |
23 return s; | |
0 | 24 } |
25 | |
26 Statement semantic(Scope sc) | |
27 { | |
28 sa.semantic2(sc); | |
29 return null; | |
30 } | |
31 | |
32 void toCBuffer(OutBuffer buf, HdrGenState* hgs) | |
33 { | |
34 assert(false); | |
35 } | |
36 } |