Mercurial > projects > ddmd
annotate dmd/AndAssignExp.d @ 63:cab4c37afb89
A bunch of implementations
author | korDen |
---|---|
date | Mon, 23 Aug 2010 16:52:24 +0400 |
parents | 832f71e6f96c |
children | 2e2a5c3f943a |
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 | |
25 Expression semantic(Scope sc) | |
26 { | |
27 return commonSemanticAssignIntegral(sc); | |
28 } | |
29 | |
63 | 30 Expression interpret(InterState istate) |
0 | 31 { |
32 assert(false); | |
33 } | |
34 | |
35 void buildArrayIdent(OutBuffer buf, Expressions arguments) | |
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 | |
40 Expression buildArrayLoop(Arguments fparams) | |
41 { | |
42 assert(false); | |
43 } | |
44 | |
45 Identifier opId() /* For operator overloading */ | |
46 { | |
47 return Id.andass; | |
48 } | |
49 | |
50 elem* toElem(IRState* irs) | |
51 { | |
52 return toElemBin(irs, OPER.OPandass); | |
53 } | |
54 } |