Mercurial > projects > ddmd
comparison dmd/Dsymbol.d @ 58:ecf732dfe11e
Statement.error
Dsymbol.equals
SuperExp.toCBuffer
DotVarExp.isLvalue
FuncExp.toChars
author | korDen |
---|---|
date | Sat, 21 Aug 2010 14:52:59 +0400 |
parents | 51605de93870 |
children | ef02e2e203c2 |
comparison
equal
deleted
inserted
replaced
57:3adbb28755e8 | 58:ecf732dfe11e |
---|---|
167 return loc.toChars(); | 167 return loc.toChars(); |
168 } | 168 } |
169 | 169 |
170 bool equals(Object o) | 170 bool equals(Object o) |
171 { | 171 { |
172 assert(false); | 172 Dsymbol s; |
173 | |
174 if (this is o) | |
175 return true; | |
176 | |
177 s = cast(Dsymbol)(o); | |
178 if (s && ident.equals(s.ident)) | |
179 return true; | |
180 | |
181 return false; | |
173 } | 182 } |
174 | 183 |
175 bool isAnonymous() | 184 bool isAnonymous() |
176 { | 185 { |
177 return ident ? 0 : 1; | 186 return ident ? 0 : 1; |