comparison dmd/StaticCtorDeclaration.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 10317f0c89a5
children 43073c7c7769
comparison
equal deleted inserted replaced
71:8e24ef1dd139 72:2e2a5c3f943a
33 this(Loc loc, Loc endloc) 33 this(Loc loc, Loc endloc)
34 { 34 {
35 super(loc, endloc, Identifier.generateId("_staticCtor"), STCstatic, null); 35 super(loc, endloc, Identifier.generateId("_staticCtor"), STCstatic, null);
36 } 36 }
37 37
38 Dsymbol syntaxCopy(Dsymbol) 38 override Dsymbol syntaxCopy(Dsymbol)
39 { 39 {
40 assert(false); 40 assert(false);
41 } 41 }
42 42
43 void semantic(Scope sc) 43 override void semantic(Scope sc)
44 { 44 {
45 //printf("StaticCtorDeclaration.semantic()\n"); 45 //printf("StaticCtorDeclaration.semantic()\n");
46 46
47 type = new TypeFunction(null, Type.tvoid, false, LINK.LINKd); 47 type = new TypeFunction(null, Type.tvoid, false, LINK.LINKd);
48 48
88 m.strictlyneedmoduleinfo = 1; 88 m.strictlyneedmoduleinfo = 1;
89 } 89 }
90 } 90 }
91 } 91 }
92 92
93 AggregateDeclaration isThis() 93 override AggregateDeclaration isThis()
94 { 94 {
95 return null; 95 return null;
96 } 96 }
97 97
98 bool isStaticConstructor() 98 override bool isStaticConstructor()
99 { 99 {
100 return true; 100 return true;
101 } 101 }
102 102
103 bool isVirtual() 103 override bool isVirtual()
104 { 104 {
105 return false; 105 return false;
106 } 106 }
107 107
108 bool addPreInvariant() 108 override bool addPreInvariant()
109 { 109 {
110 return false; 110 return false;
111 } 111 }
112 112
113 bool addPostInvariant() 113 override bool addPostInvariant()
114 { 114 {
115 return false; 115 return false;
116 } 116 }
117 117
118 void emitComment(Scope sc) 118 override void emitComment(Scope sc)
119 { 119 {
120 assert(false); 120 assert(false);
121 } 121 }
122 122
123 void toCBuffer(OutBuffer buf, HdrGenState* hgs) 123 override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
124 { 124 {
125 assert(false); 125 assert(false);
126 } 126 }
127 127
128 StaticCtorDeclaration isStaticCtorDeclaration() { return this; } 128 override StaticCtorDeclaration isStaticCtorDeclaration() { return this; }
129 } 129 }