Mercurial > projects > ddmd
comparison dmd/TypedefDeclaration.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 | ee3a9f34dc48 |
children | e28b18c23469 |
comparison
equal
deleted
inserted
replaced
71:8e24ef1dd139 | 72:2e2a5c3f943a |
---|---|
55 Type clone() | 55 Type clone() |
56 { | 56 { |
57 assert(false); | 57 assert(false); |
58 } | 58 } |
59 } | 59 } |
60 Dsymbol syntaxCopy(Dsymbol) | 60 override Dsymbol syntaxCopy(Dsymbol) |
61 { | 61 { |
62 assert(false); | 62 assert(false); |
63 } | 63 } |
64 | 64 |
65 void semantic(Scope sc) | 65 override void semantic(Scope sc) |
66 { | 66 { |
67 //printf("TypedefDeclaration::semantic(%s) sem = %d\n", toChars(), sem); | 67 //printf("TypedefDeclaration::semantic(%s) sem = %d\n", toChars(), sem); |
68 if (sem == 0) | 68 if (sem == 0) |
69 { | 69 { |
70 sem = 1; | 70 sem = 1; |
79 { | 79 { |
80 error("circular definition"); | 80 error("circular definition"); |
81 } | 81 } |
82 } | 82 } |
83 | 83 |
84 void semantic2(Scope sc) | 84 override void semantic2(Scope sc) |
85 { | 85 { |
86 //printf("TypedefDeclaration::semantic2(%s) sem = %d\n", toChars(), sem); | 86 //printf("TypedefDeclaration::semantic2(%s) sem = %d\n", toChars(), sem); |
87 if (sem == 2) | 87 if (sem == 2) |
88 { | 88 { |
89 sem = 3; | 89 sem = 3; |
99 } | 99 } |
100 } | 100 } |
101 } | 101 } |
102 } | 102 } |
103 | 103 |
104 string mangle() | 104 override string mangle() |
105 { | 105 { |
106 //printf("TypedefDeclaration::mangle() '%s'\n", toChars()); | 106 //printf("TypedefDeclaration::mangle() '%s'\n", toChars()); |
107 return Dsymbol.mangle(); | 107 return Dsymbol.mangle(); |
108 } | 108 } |
109 | 109 |
110 string kind() | 110 override string kind() |
111 { | 111 { |
112 assert(false); | 112 assert(false); |
113 } | 113 } |
114 | 114 |
115 Type getType() | 115 override Type getType() |
116 { | 116 { |
117 return type; | 117 return type; |
118 } | 118 } |
119 | 119 |
120 void toCBuffer(OutBuffer buf, HdrGenState* hgs) | 120 override void toCBuffer(OutBuffer buf, HdrGenState* hgs) |
121 { | 121 { |
122 assert(false); | 122 assert(false); |
123 } | 123 } |
124 | 124 |
125 version (_DH) { | 125 version (_DH) { |
126 Type htype; | 126 Type htype; |
127 Type hbasetype; | 127 Type hbasetype; |
128 } | 128 } |
129 | 129 |
130 void toDocBuffer(OutBuffer buf) | 130 override void toDocBuffer(OutBuffer buf) |
131 { | 131 { |
132 assert(false); | 132 assert(false); |
133 } | 133 } |
134 | 134 |
135 void toObjFile(int multiobj) // compile to .obj file | 135 override void toObjFile(int multiobj) // compile to .obj file |
136 { | 136 { |
137 //printf("TypedefDeclaration::toObjFile('%s')\n", toChars()); | 137 //printf("TypedefDeclaration::toObjFile('%s')\n", toChars()); |
138 if (global.params.symdebug) | 138 if (global.params.symdebug) |
139 toDebug(); | 139 toDebug(); |
140 | 140 |
168 void toDebug() | 168 void toDebug() |
169 { | 169 { |
170 assert(false); | 170 assert(false); |
171 } | 171 } |
172 | 172 |
173 int cvMember(ubyte* p) | 173 override int cvMember(ubyte* p) |
174 { | 174 { |
175 assert(false); | 175 assert(false); |
176 } | 176 } |
177 | 177 |
178 TypedefDeclaration isTypedefDeclaration() { return this; } | 178 override TypedefDeclaration isTypedefDeclaration() { return this; } |
179 | 179 |
180 Symbol* sinit; | 180 Symbol* sinit; |
181 Symbol* toInitializer() | 181 Symbol* toInitializer() |
182 { | 182 { |
183 Symbol* s; | 183 Symbol* s; |