comparison dmd/AnonDeclaration.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 a8b50ff7f201
children 7e0d548de9e6
comparison
equal deleted inserted replaced
71:8e24ef1dd139 72:2e2a5c3f943a
23 super(decl); 23 super(decl);
24 this.loc = loc; 24 this.loc = loc;
25 this.isunion = isunion; 25 this.isunion = isunion;
26 } 26 }
27 27
28 Dsymbol syntaxCopy(Dsymbol s) 28 override Dsymbol syntaxCopy(Dsymbol s)
29 { 29 {
30 AnonDeclaration ad; 30 AnonDeclaration ad;
31 31
32 assert(!s); 32 assert(!s);
33 ad = new AnonDeclaration(loc, isunion, Dsymbol.arraySyntaxCopy(decl)); 33 ad = new AnonDeclaration(loc, isunion, Dsymbol.arraySyntaxCopy(decl));
34 return ad; 34 return ad;
35 } 35 }
36 36
37 void semantic(Scope sc) 37 override void semantic(Scope sc)
38 { 38 {
39 //printf("\tAnonDeclaration::semantic %s %p\n", isunion ? "union" : "struct", this); 39 //printf("\tAnonDeclaration::semantic %s %p\n", isunion ? "union" : "struct", this);
40 40
41 Scope scx = null; 41 Scope scx = null;
42 if (scope_) 42 if (scope_)
158 if (ad.alignsize < aad.alignsize) 158 if (ad.alignsize < aad.alignsize)
159 ad.alignsize = aad.alignsize; 159 ad.alignsize = aad.alignsize;
160 } 160 }
161 } 161 }
162 162
163 void toCBuffer(OutBuffer buf, HdrGenState* hgs) 163 override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
164 { 164 {
165 assert(false); 165 assert(false);
166 } 166 }
167 167
168 string kind() 168 override string kind()
169 { 169 {
170 assert(false); 170 assert(false);
171 } 171 }
172 } 172 }
173 173