Mercurial > projects > ddmd
annotate dmd/ModAssignExp.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 | f708f0452e81 |
children | ef02e2e203c2 |
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 { |
19
01cadcfa4842
Implemented CompileExp, ConditionalDeclaration, ModAssignExp, parsingmixin statements, TemplateAliasParameters, TemplateMixins, TypeDArray.
Robert Clipsham <robert@octarineparrot.com>
parents:
0
diff
changeset
|
27 return commonSemanticAssign(sc); |
0 | 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 { |
37 assert(false); | |
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 { |
56 | 47 return Id.modass; |
0 | 48 } |
49 | |
72 | 50 override elem* toElem(IRState* irs) |
0 | 51 { |
67 | 52 return toElemBin(irs,OPmodass); |
0 | 53 } |
19
01cadcfa4842
Implemented CompileExp, ConditionalDeclaration, ModAssignExp, parsingmixin statements, TemplateAliasParameters, TemplateMixins, TypeDArray.
Robert Clipsham <robert@octarineparrot.com>
parents:
0
diff
changeset
|
54 } |