Mercurial > projects > ddmd
comparison dmd/StructDeclaration.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 | 0aa7d1437ada |
children | 7e0d548de9e6 |
comparison
equal
deleted
inserted
replaced
71:8e24ef1dd139 | 72:2e2a5c3f943a |
---|---|
80 type = new TypeStruct(this); | 80 type = new TypeStruct(this); |
81 | 81 |
82 postblits = new FuncDeclarations(); /// | 82 postblits = new FuncDeclarations(); /// |
83 } | 83 } |
84 | 84 |
85 Dsymbol syntaxCopy(Dsymbol s) | 85 override Dsymbol syntaxCopy(Dsymbol s) |
86 { | 86 { |
87 StructDeclaration sd; | 87 StructDeclaration sd; |
88 | 88 |
89 if (s) | 89 if (s) |
90 sd = cast(StructDeclaration)s; | 90 sd = cast(StructDeclaration)s; |
92 sd = new StructDeclaration(loc, ident); | 92 sd = new StructDeclaration(loc, ident); |
93 ScopeDsymbol.syntaxCopy(sd); | 93 ScopeDsymbol.syntaxCopy(sd); |
94 return sd; | 94 return sd; |
95 } | 95 } |
96 | 96 |
97 void semantic(Scope sc) | 97 override void semantic(Scope sc) |
98 { | 98 { |
99 int i; | 99 int i; |
100 Scope sc2; | 100 Scope sc2; |
101 | 101 |
102 //printf("+StructDeclaration.semantic(this=%p, '%s')\n", this, toChars()); | 102 //printf("+StructDeclaration.semantic(this=%p, '%s')\n", this, toChars()); |
361 semantic2(sc); | 361 semantic2(sc); |
362 semantic3(sc); | 362 semantic3(sc); |
363 } | 363 } |
364 } | 364 } |
365 | 365 |
366 void toCBuffer(OutBuffer buf, HdrGenState* hgs) | 366 override void toCBuffer(OutBuffer buf, HdrGenState* hgs) |
367 { | 367 { |
368 assert(false); | 368 assert(false); |
369 } | 369 } |
370 | 370 |
371 string mangle() | 371 override string mangle() |
372 { | 372 { |
373 //printf("StructDeclaration.mangle() '%s'\n", toChars()); | 373 //printf("StructDeclaration.mangle() '%s'\n", toChars()); |
374 return Dsymbol.mangle(); | 374 return Dsymbol.mangle(); |
375 } | 375 } |
376 | 376 |
377 string kind() | 377 override string kind() |
378 { | 378 { |
379 assert(false); | 379 assert(false); |
380 } | 380 } |
381 | 381 |
382 /******************************************* | 382 /******************************************* |
698 } | 698 } |
699 | 699 |
700 return fcp; | 700 return fcp; |
701 } | 701 } |
702 | 702 |
703 void toDocBuffer(OutBuffer buf) | 703 override void toDocBuffer(OutBuffer buf) |
704 { | 704 { |
705 assert(false); | 705 assert(false); |
706 } | 706 } |
707 | 707 |
708 PROT getAccess(Dsymbol smember) // determine access to smember | 708 override PROT getAccess(Dsymbol smember) // determine access to smember |
709 { | 709 { |
710 assert(false); | 710 assert(false); |
711 } | 711 } |
712 | 712 |
713 void toObjFile(int multiobj) // compile to .obj file | 713 override void toObjFile(int multiobj) // compile to .obj file |
714 { | 714 { |
715 //printf("StructDeclaration.toObjFile('%s')\n", toChars()); | 715 //printf("StructDeclaration.toObjFile('%s')\n", toChars()); |
716 | 716 |
717 if (multiobj) | 717 if (multiobj) |
718 { | 718 { |
852 void toDebug() // to symbolic debug info | 852 void toDebug() // to symbolic debug info |
853 { | 853 { |
854 assert(false); | 854 assert(false); |
855 } | 855 } |
856 | 856 |
857 StructDeclaration isStructDeclaration() { return this; } | 857 override StructDeclaration isStructDeclaration() { return this; } |
858 } | 858 } |