comparison dmd/CompileExp.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 460959608115
children e28b18c23469
comparison
equal deleted inserted replaced
71:8e24ef1dd139 72:2e2a5c3f943a
20 this(Loc loc, Expression e) 20 this(Loc loc, Expression e)
21 { 21 {
22 super(loc, TOK.TOKmixin, this.sizeof, e); 22 super(loc, TOK.TOKmixin, this.sizeof, e);
23 } 23 }
24 24
25 Expression semantic(Scope sc) 25 override Expression semantic(Scope sc)
26 { 26 {
27 version (LOGSEMANTIC) { 27 version (LOGSEMANTIC) {
28 printf("CompileExp.semantic('%s')\n", toChars()); 28 printf("CompileExp.semantic('%s')\n", toChars());
29 } 29 }
30 UnaExp.semantic(sc); 30 UnaExp.semantic(sc);
45 if (p.token.value != TOK.TOKeof) 45 if (p.token.value != TOK.TOKeof)
46 error("incomplete mixin expression (%s)", se.toChars()); 46 error("incomplete mixin expression (%s)", se.toChars());
47 return e.semantic(sc); 47 return e.semantic(sc);
48 } 48 }
49 49
50 void toCBuffer(OutBuffer buf, HdrGenState* hgs) 50 override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
51 { 51 {
52 buf.writestring("mixin("); 52 buf.writestring("mixin(");
53 expToCBuffer(buf, hgs, e1, PREC.PREC_assign); 53 expToCBuffer(buf, hgs, e1, PREC.PREC_assign);
54 buf.writeByte(')'); 54 buf.writeByte(')');
55 } 55 }