comparison dmd/TraitsExp.d @ 84:be2ab491772e

Expressions -> Vector!Expression
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Mon, 30 Aug 2010 16:12:19 +0100
parents 2e2a5c3f943a
children 39648eb578f6
comparison
equal deleted inserted replaced
83:ee670dd808a8 84:be2ab491772e
54 { DotVarExp dve = cast(DotVarExp)p.e1; 54 { DotVarExp dve = cast(DotVarExp)p.e1;
55 e = new DotVarExp(Loc(0), dve.e1, f); 55 e = new DotVarExp(Loc(0), dve.e1, f);
56 } 56 }
57 else 57 else
58 e = new DsymbolExp(Loc(0), f); 58 e = new DsymbolExp(Loc(0), f);
59 p.exps.push(cast(void*)e); 59 p.exps.push(e);
60 } 60 }
61 return 0; 61 return 0;
62 } 62 }
63 } 63 }
64 64
312 { StringExp se2 = cast(StringExp)exps.data[j]; 312 { StringExp se2 = cast(StringExp)exps.data[j];
313 if (strcmp(toStringz(str), cast(char*)se2.string_) == 0) 313 if (strcmp(toStringz(str), cast(char*)se2.string_) == 0)
314 goto Lnext; 314 goto Lnext;
315 } 315 }
316 316
317 StringExp se = new StringExp(loc, str); 317 auto se = new StringExp(loc, str);
318 exps.push(cast(void*)se); 318 exps.push(se);
319 } 319 }
320 Lnext: 320 Lnext:
321 ; 321 ;
322 } 322 }
323 ClassDeclaration cd = sd.isClassDeclaration(); 323 ClassDeclaration cd = sd.isClassDeclaration();