Mercurial > projects > ddmd
annotate dmd/ModAssignExp.d @ 73:ef02e2e203c2
Updating to dmd2.033
author | korDen |
---|---|
date | Sat, 28 Aug 2010 19:42:41 +0400 |
parents | 2e2a5c3f943a |
children | e28b18c23469 |
rev | line source |
---|---|
0 | 1 module dmd.ModAssignExp; |
2 | |
3 import dmd.BinExp; | |
4 import dmd.Loc; | |
5 import dmd.Expression; | |
6 import dmd.Scope; | |
7 import dmd.InterState; | |
8 import dmd.OutBuffer; | |
9 import dmd.ArrayTypes; | |
10 import dmd.Identifier; | |
11 import dmd.IRState; | |
12 import dmd.TOK; | |
67 | 13 import dmd.backend.OPER; |
56 | 14 import dmd.Id; |
0 | 15 |
16 import dmd.backend.elem; | |
17 | |
18 class ModAssignExp : BinExp | |
19 { | |
20 this(Loc loc, Expression e1, Expression e2) | |
21 { | |
19
01cadcfa4842
Implemented CompileExp, ConditionalDeclaration, ModAssignExp, parsingmixin statements, TemplateAliasParameters, TemplateMixins, TypeDArray.
Robert Clipsham <robert@octarineparrot.com>
parents:
0
diff
changeset
|
22 super(loc, TOK.TOKmodass, this.sizeof, e1, e2); |
0 | 23 } |
24 | |
72 | 25 override Expression semantic(Scope sc) |
0 | 26 { |
73 | 27 BinExp.semantic(sc); |
28 checkComplexMulAssign(); | |
29 return commonSemanticAssign(sc); | |
0 | 30 } |
31 | |
72 | 32 override Expression interpret(InterState istate) |
0 | 33 { |
34 assert(false); | |
35 } | |
36 | |
72 | 37 override void buildArrayIdent(OutBuffer buf, Expressions arguments) |
0 | 38 { |
39 assert(false); | |
40 } | |
41 | |
72 | 42 override Expression buildArrayLoop(Arguments fparams) |
0 | 43 { |
44 assert(false); | |
45 } | |
46 | |
72 | 47 override Identifier opId() /* For operator overloading */ |
0 | 48 { |
56 | 49 return Id.modass; |
0 | 50 } |
51 | |
72 | 52 override elem* toElem(IRState* irs) |
0 | 53 { |
67 | 54 return toElemBin(irs,OPmodass); |
0 | 55 } |
19
01cadcfa4842
Implemented CompileExp, ConditionalDeclaration, ModAssignExp, parsingmixin statements, TemplateAliasParameters, TemplateMixins, TypeDArray.
Robert Clipsham <robert@octarineparrot.com>
parents:
0
diff
changeset
|
56 } |