Mercurial > projects > ddmd
annotate dmd/XorAssignExp.d @ 72:2e2a5c3f943a
reduced warnings by adding override to the methods
think this also normalizes different line endings used all over the place
author | Trass3r |
---|---|
date | Sat, 28 Aug 2010 16:19:48 +0200 |
parents | ee3a9f34dc48 |
children | e28b18c23469 |
rev | line source |
---|---|
0 | 1 module dmd.XorAssignExp; |
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.Id; | |
13 import dmd.TOK; | |
14 import dmd.backend.elem; | |
68
ee3a9f34dc48
final bits of codegen implementation to compile Phobos
korDen
parents:
63
diff
changeset
|
15 import dmd.backend.OPER; |
0 | 16 |
17 class XorAssignExp : BinExp | |
18 { | |
19 this(Loc loc, Expression e1, Expression e2) | |
20 { | |
20
1628b221808d
Fleshed out more unimplemented methods.
Robert Clipsham <robert@octarineparrot.com>
parents:
0
diff
changeset
|
21 super(loc, TOK.TOKxorass, this.sizeof, e1, e2); |
0 | 22 } |
23 | |
72 | 24 override Expression semantic(Scope sc) |
0 | 25 { |
20
1628b221808d
Fleshed out more unimplemented methods.
Robert Clipsham <robert@octarineparrot.com>
parents:
0
diff
changeset
|
26 return commonSemanticAssignIntegral(sc); |
0 | 27 } |
28 | |
72 | 29 override Expression interpret(InterState istate) |
0 | 30 { |
31 assert(false); | |
32 } | |
33 | |
72 | 34 override void buildArrayIdent(OutBuffer buf, Expressions arguments) |
0 | 35 { |
12
832f71e6f96c
*Exp and *AssignExp arrayOp implementation added (might be a bit incomplete)
korDen
parents:
0
diff
changeset
|
36 AssignExp_buildArrayIdent(buf, arguments, "Xor"); |
0 | 37 } |
38 | |
72 | 39 override Expression buildArrayLoop(Arguments fparams) |
0 | 40 { |
41 assert(false); | |
42 } | |
43 | |
72 | 44 override Identifier opId() /* For operator overloading */ |
0 | 45 { |
46 return Id.xorass; | |
47 } | |
48 | |
72 | 49 override elem* toElem(IRState* irs) |
0 | 50 { |
68
ee3a9f34dc48
final bits of codegen implementation to compile Phobos
korDen
parents:
63
diff
changeset
|
51 return toElemBin(irs,OPxorass); |
0 | 52 } |
20
1628b221808d
Fleshed out more unimplemented methods.
Robert Clipsham <robert@octarineparrot.com>
parents:
0
diff
changeset
|
53 } |