comparison dmd/FuncDeclaration.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
193 // functions 193 // functions
194 } else { 194 } else {
195 int nestedFrameRef; // !=0 if nested variables referenced 195 int nestedFrameRef; // !=0 if nested variables referenced
196 } 196 }
197 197
198 this(Loc loc, Loc endloc, Identifier id, STC storage_class, Type type) 198 this(Loc loc, Loc endloc, Identifier id, StorageClass storage_class, Type type)
199 { 199 {
200 super(id); 200 super(id);
201 201
202 //printf("FuncDeclaration(id = '%s', type = %p)\n", id.toChars(), type); 202 //printf("FuncDeclaration(id = '%s', type = %p)\n", id.toChars(), type);
203 //printf("storage_class = x%x\n", storage_class); 203 //printf("storage_class = x%x\n", storage_class);
311 { 311 {
312 /* Apply const, immutable and shared storage class 312 /* Apply const, immutable and shared storage class
313 * to the function type 313 * to the function type
314 */ 314 */
315 type = type.semantic(loc, sc); 315 type = type.semantic(loc, sc);
316 STC stc = storage_class; 316 StorageClass stc = storage_class;
317 if (type.isInvariant()) 317 if (type.isInvariant())
318 stc |= STC.STCimmutable; 318 stc |= STC.STCimmutable;
319 if (type.isConst()) 319 if (type.isConst())
320 stc |= STC.STCconst; 320 stc |= STC.STCconst;
321 if (type.isShared() || storage_class & STC.STCsynchronized) 321 if (type.isShared() || storage_class & STC.STCsynchronized)