comparison dmd/StorageClassDeclaration.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 b7d29f613539
children 7e0d548de9e6
comparison
equal deleted inserted replaced
71:8e24ef1dd139 72:2e2a5c3f943a
19 super(decl); 19 super(decl);
20 20
21 this.stc = stc; 21 this.stc = stc;
22 } 22 }
23 23
24 Dsymbol syntaxCopy(Dsymbol s) 24 override Dsymbol syntaxCopy(Dsymbol s)
25 { 25 {
26 StorageClassDeclaration scd; 26 StorageClassDeclaration scd;
27 27
28 assert(!s); 28 assert(!s);
29 scd = new StorageClassDeclaration(stc, Dsymbol.arraySyntaxCopy(decl)); 29 scd = new StorageClassDeclaration(stc, Dsymbol.arraySyntaxCopy(decl));
30 return scd; 30 return scd;
31 } 31 }
32 32
33 void setScope(Scope sc) 33 override void setScope(Scope sc)
34 { 34 {
35 if (decl) 35 if (decl)
36 { 36 {
37 STC scstc = sc.stc; 37 STC scstc = sc.stc;
38 38
51 51
52 setScopeNewSc(sc, scstc, sc.linkage, sc.protection, sc.explicitProtection, sc.structalign); 52 setScopeNewSc(sc, scstc, sc.linkage, sc.protection, sc.explicitProtection, sc.structalign);
53 } 53 }
54 } 54 }
55 55
56 void semantic(Scope sc) 56 override void semantic(Scope sc)
57 { 57 {
58 if (decl) 58 if (decl)
59 { 59 {
60 STC scstc = sc.stc; 60 STC scstc = sc.stc;
61 61
74 74
75 semanticNewSc(sc, scstc, sc.linkage, sc.protection, sc.explicitProtection, sc.structalign); 75 semanticNewSc(sc, scstc, sc.linkage, sc.protection, sc.explicitProtection, sc.structalign);
76 } 76 }
77 } 77 }
78 78
79 void toCBuffer(OutBuffer buf, HdrGenState* hgs) 79 override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
80 { 80 {
81 assert(false); 81 assert(false);
82 } 82 }
83 83
84 static void stcToCBuffer(OutBuffer buf, int stc) 84 static void stcToCBuffer(OutBuffer buf, int stc)