comparison dmd/CompileDeclaration.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
33 this.exp = exp; 33 this.exp = exp;
34 this.sd = null; 34 this.sd = null;
35 this.compiled = false; 35 this.compiled = false;
36 } 36 }
37 37
38 Dsymbol syntaxCopy(Dsymbol s) 38 override Dsymbol syntaxCopy(Dsymbol s)
39 { 39 {
40 //printf("CompileDeclaration.syntaxCopy('%s')\n", toChars()); 40 //printf("CompileDeclaration.syntaxCopy('%s')\n", toChars());
41 CompileDeclaration sc = new CompileDeclaration(loc, exp.syntaxCopy()); 41 CompileDeclaration sc = new CompileDeclaration(loc, exp.syntaxCopy());
42 return sc; 42 return sc;
43 } 43 }
44 44
45 bool addMember(Scope sc, ScopeDsymbol sd, bool memnum) 45 override bool addMember(Scope sc, ScopeDsymbol sd, bool memnum)
46 { 46 {
47 //printf("CompileDeclaration.addMember(sc = %p, memnum = %d)\n", sc, memnum); 47 //printf("CompileDeclaration.addMember(sc = %p, memnum = %d)\n", sc, memnum);
48 bool m = false; 48 bool m = false;
49 this.sd = sd; 49 this.sd = sd;
50 if (!memnum) 50 if (!memnum)
77 if (p.token.value != TOK.TOKeof) 77 if (p.token.value != TOK.TOKeof)
78 exp.error("incomplete mixin declaration (%s)", se.toChars()); 78 exp.error("incomplete mixin declaration (%s)", se.toChars());
79 } 79 }
80 } 80 }
81 81
82 void semantic(Scope sc) 82 override void semantic(Scope sc)
83 { 83 {
84 //printf("CompileDeclaration.semantic()\n"); 84 //printf("CompileDeclaration.semantic()\n");
85 85
86 if (!compiled) 86 if (!compiled)
87 { 87 {
90 compiled = 1; 90 compiled = 1;
91 } 91 }
92 AttribDeclaration.semantic(sc); 92 AttribDeclaration.semantic(sc);
93 } 93 }
94 94
95 void toCBuffer(OutBuffer buf, HdrGenState* hgs) 95 override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
96 { 96 {
97 buf.writestring("mixin("); 97 buf.writestring("mixin(");
98 exp.toCBuffer(buf, hgs); 98 exp.toCBuffer(buf, hgs);
99 buf.writestring(");"); 99 buf.writestring(");");
100 buf.writenl(); 100 buf.writenl();