Mercurial > projects > ddmd
comparison dmd/Parameter.d @ 131:206db751bd4c
dmdfe 2.037 compiles now
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Fri, 10 Sep 2010 00:27:37 +0100 |
parents | 60bb0fe4563e |
children | af1bebfd96a4 |
comparison
equal
deleted
inserted
replaced
130:60bb0fe4563e | 131:206db751bd4c |
---|---|
19 import dmd.STC; | 19 import dmd.STC; |
20 | 20 |
21 class Parameter | 21 class Parameter |
22 { | 22 { |
23 //enum InOut inout; | 23 //enum InOut inout; |
24 STC storageClass; | 24 StorageClass storageClass; |
25 Type type; | 25 Type type; |
26 Identifier ident; | 26 Identifier ident; |
27 Expression defaultArg; | 27 Expression defaultArg; |
28 | 28 |
29 this(STC storageClass, Type type, Identifier ident, Expression defaultArg) | 29 this(StorageClass storageClass, Type type, Identifier ident, Expression defaultArg) |
30 { | 30 { |
31 this.type = type; | 31 this.type = type; |
32 this.ident = ident; | 32 this.ident = ident; |
33 this.storageClass = storageClass; | 33 this.storageClass = storageClass; |
34 this.defaultArg = defaultArg; | 34 this.defaultArg = defaultArg; |
188 else if (arg.storageClass & STCalias) | 188 else if (arg.storageClass & STCalias) |
189 buf.writestring("alias "); | 189 buf.writestring("alias "); |
190 else if (arg.storageClass & STCauto) | 190 else if (arg.storageClass & STCauto) |
191 buf.writestring("auto "); | 191 buf.writestring("auto "); |
192 | 192 |
193 uint stc = arg.storageClass; | 193 StorageClass stc = arg.storageClass; |
194 if (arg.type && arg.type.mod & MODshared) | 194 if (arg.type && arg.type.mod & MODshared) |
195 stc &= ~STCshared; | 195 stc &= ~STCshared; |
196 | 196 |
197 StorageClassDeclaration.stcToCBuffer(buf, stc & (STCconst | STCimmutable | STCshared | STCscope)); | 197 StorageClassDeclaration.stcToCBuffer(buf, stc & (STCconst | STCimmutable | STCshared | STCscope)); |
198 | 198 |