Mercurial > projects > ddmd
annotate dmd/AndAssignExp.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 | cab4c37afb89 |
children | e28b18c23469 |
rev | line source |
---|---|
0 | 1 module dmd.AndAssignExp; |
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; | |
13 import dmd.Id; | |
14 | |
15 import dmd.backend.elem; | |
16 import dmd.backend.OPER; | |
17 | |
18 class AndAssignExp : BinExp | |
19 { | |
20 this(Loc loc, Expression e1, Expression e2) | |
21 { | |
22 super(loc, TOK.TOKandass, AndAssignExp.sizeof, e1, e2); | |
23 } | |
24 | |
72 | 25 override Expression semantic(Scope sc) |
0 | 26 { |
27 return commonSemanticAssignIntegral(sc); | |
28 } | |
29 | |
72 | 30 override Expression interpret(InterState istate) |
0 | 31 { |
32 assert(false); | |
33 } | |
34 | |
72 | 35 override void buildArrayIdent(OutBuffer buf, Expressions arguments) |
0 | 36 { |
12
832f71e6f96c
*Exp and *AssignExp arrayOp implementation added (might be a bit incomplete)
korDen
parents:
0
diff
changeset
|
37 AssignExp_buildArrayIdent(buf, arguments, "And"); |
0 | 38 } |
39 | |
72 | 40 override Expression buildArrayLoop(Arguments fparams) |
0 | 41 { |
42 assert(false); | |
43 } | |
44 | |
72 | 45 override Identifier opId() /* For operator overloading */ |
0 | 46 { |
47 return Id.andass; | |
48 } | |
49 | |
72 | 50 override elem* toElem(IRState* irs) |
0 | 51 { |
52 return toElemBin(irs, OPER.OPandass); | |
53 } | |
72 | 54 } |