Mercurial > projects > ddmd
comparison dmd/Declaration.d @ 135:af1bebfd96a4 dmd2037
dmd 2.038
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 13 Sep 2010 22:19:42 +0100 |
parents | 206db751bd4c |
children | bc45b1c53019 |
comparison
equal
deleted
inserted
replaced
134:4251f96733f4 | 135:af1bebfd96a4 |
---|---|
156 if (v && v.canassign == 0) | 156 if (v && v.canassign == 0) |
157 { | 157 { |
158 string p = null; | 158 string p = null; |
159 if (isConst()) | 159 if (isConst()) |
160 p = "const"; | 160 p = "const"; |
161 else if (isInvariant()) | 161 else if (isImmutable()) |
162 p = "immutable"; | 162 p = "immutable"; |
163 else if (storage_class & STC.STCmanifest) | 163 else if (storage_class & STC.STCmanifest) |
164 p = "enum"; | 164 p = "enum"; |
165 else if (!t.isAssignable()) | 165 else if (!t.isAssignable()) |
166 p = "struct with immutable members"; | 166 p = "struct with immutable members"; |
309 | 309 |
310 bool isAbstract() { return (storage_class & STC.STCabstract) != 0; } | 310 bool isAbstract() { return (storage_class & STC.STCabstract) != 0; } |
311 | 311 |
312 bool isConst() { return (storage_class & STC.STCconst) != 0; } | 312 bool isConst() { return (storage_class & STC.STCconst) != 0; } |
313 | 313 |
314 int isInvariant() { return storage_class & STC.STCinvariant; } | 314 int isImmutable() { return storage_class & STC.STCimmutable; } |
315 | 315 |
316 int isAuto() { return storage_class & STC.STCauto; } | 316 int isAuto() { return storage_class & STC.STCauto; } |
317 | 317 |
318 int isScope() { return storage_class & (STC.STCscope | STC.STCauto); } | 318 int isScope() { return storage_class & (STC.STCscope | STC.STCauto); } |
319 | 319 |