comparison dmd/IdentifierExp.d @ 178:e3afd1303184

Many small bugs fixed Made all classes derive from TObject to detect memory leaks (functionality is disabled for now) Began work on overriding backend memory allocations (to avoid memory leaks)
author korDen
date Sun, 17 Oct 2010 07:42:00 +0400
parents e28b18c23469
children cd48cb899aee
comparison
equal deleted inserted replaced
177:1475fd394c9e 178:e3afd1303184
28 28
29 Declaration var; 29 Declaration var;
30 30
31 this(Loc loc, Identifier ident) 31 this(Loc loc, Identifier ident)
32 { 32 {
33 register();
33 super(loc, TOK.TOKidentifier, IdentifierExp.sizeof); 34 super(loc, TOK.TOKidentifier, IdentifierExp.sizeof);
34 this.ident = ident; 35 this.ident = ident;
35 } 36 }
36 37
37 this(Loc loc, Declaration var) 38 this(Loc loc, Declaration var)
38 { 39 {
40 register();
39 assert(false); 41 assert(false);
40 super(loc, TOK.init, 0); 42 super(loc, TOK.init, 0);
41 } 43 }
42 44
43 override Expression semantic(Scope sc) 45 override Expression semantic(Scope sc)