Mercurial > projects > ddmd
comparison dmd/ShlAssignExp.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 |
comparison
equal
deleted
inserted
replaced
71:8e24ef1dd139 | 72:2e2a5c3f943a |
---|---|
19 this(Loc loc, Expression e1, Expression e2) | 19 this(Loc loc, Expression e1, Expression e2) |
20 { | 20 { |
21 super(loc, TOK.TOKshlass, ShlAssignExp.sizeof, e1, e2); | 21 super(loc, TOK.TOKshlass, ShlAssignExp.sizeof, e1, e2); |
22 } | 22 } |
23 | 23 |
24 Expression semantic(Scope sc) | 24 override Expression semantic(Scope sc) |
25 { | 25 { |
26 Expression e; | 26 Expression e; |
27 | 27 |
28 //printf("ShlAssignExp.semantic()\n"); | 28 //printf("ShlAssignExp.semantic()\n"); |
29 BinExp.semantic(sc); | 29 BinExp.semantic(sc); |
42 e2 = e2.checkIntegral(); | 42 e2 = e2.checkIntegral(); |
43 e2 = e2.castTo(sc, Type.tshiftcnt); | 43 e2 = e2.castTo(sc, Type.tshiftcnt); |
44 return this; | 44 return this; |
45 } | 45 } |
46 | 46 |
47 Expression interpret(InterState istate) | 47 override Expression interpret(InterState istate) |
48 { | 48 { |
49 assert(false); | 49 assert(false); |
50 } | 50 } |
51 | 51 |
52 Identifier opId() /* For operator overloading */ | 52 override Identifier opId() /* For operator overloading */ |
53 { | 53 { |
54 return Id.shlass; | 54 return Id.shlass; |
55 } | 55 } |
56 | 56 |
57 elem* toElem(IRState* irs) | 57 override elem* toElem(IRState* irs) |
58 { | 58 { |
59 return toElemBin(irs,OPshlass); | 59 return toElemBin(irs,OPshlass); |
60 } | 60 } |
61 } | 61 } |