Mercurial > projects > ddmd
annotate dmd/ModAssignExp.d @ 63:cab4c37afb89
A bunch of implementations
author | korDen |
---|---|
date | Mon, 23 Aug 2010 16:52:24 +0400 |
parents | 51605de93870 |
children | f708f0452e81 |
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; | |
56 | 13 import dmd.Id; |
0 | 14 |
15 import dmd.backend.elem; | |
16 | |
17 class ModAssignExp : BinExp | |
18 { | |
19 this(Loc loc, Expression e1, Expression e2) | |
20 { | |
19
01cadcfa4842
Implemented CompileExp, ConditionalDeclaration, ModAssignExp, parsingmixin statements, TemplateAliasParameters, TemplateMixins, TypeDArray.
Robert Clipsham <robert@octarineparrot.com>
parents:
0
diff
changeset
|
21 super(loc, TOK.TOKmodass, this.sizeof, e1, e2); |
0 | 22 } |
23 | |
24 Expression semantic(Scope sc) | |
25 { | |
19
01cadcfa4842
Implemented CompileExp, ConditionalDeclaration, ModAssignExp, parsingmixin statements, TemplateAliasParameters, TemplateMixins, TypeDArray.
Robert Clipsham <robert@octarineparrot.com>
parents:
0
diff
changeset
|
26 return commonSemanticAssign(sc); |
0 | 27 } |
28 | |
63 | 29 Expression interpret(InterState istate) |
0 | 30 { |
31 assert(false); | |
32 } | |
33 | |
34 void buildArrayIdent(OutBuffer buf, Expressions arguments) | |
35 { | |
36 assert(false); | |
37 } | |
38 | |
39 Expression buildArrayLoop(Arguments fparams) | |
40 { | |
41 assert(false); | |
42 } | |
43 | |
44 Identifier opId() /* For operator overloading */ | |
45 { | |
56 | 46 return Id.modass; |
0 | 47 } |
48 | |
49 elem* toElem(IRState* irs) | |
50 { | |
51 assert(false); | |
52 } | |
19
01cadcfa4842
Implemented CompileExp, ConditionalDeclaration, ModAssignExp, parsingmixin statements, TemplateAliasParameters, TemplateMixins, TypeDArray.
Robert Clipsham <robert@octarineparrot.com>
parents:
0
diff
changeset
|
53 } |