Mercurial > projects > ddmd
comparison dmd/VarExp.d @ 187:b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
author | Abscissa |
---|---|
date | Tue, 07 Jun 2011 23:37:34 -0400 |
parents | e3afd1303184 |
children | 52188e7e3fb5 |
comparison
equal
deleted
inserted
replaced
186:1a0c1126bc46 | 187:b0d41ff5e0df |
---|---|
23 import dmd.interpret.Util; | 23 import dmd.interpret.Util; |
24 import dmd.backend.Util; | 24 import dmd.backend.Util; |
25 import dmd.backend.dt_t; | 25 import dmd.backend.dt_t; |
26 import dmd.expression.Util; | 26 import dmd.expression.Util; |
27 | 27 |
28 import dmd.DDMDExtensions; | |
29 | |
28 //! Variable | 30 //! Variable |
29 class VarExp : SymbolExp | 31 class VarExp : SymbolExp |
30 { | 32 { |
33 mixin insertMemberExtension!(typeof(this)); | |
34 | |
31 this(Loc loc, Declaration var, bool hasOverloads = false) | 35 this(Loc loc, Declaration var, bool hasOverloads = false) |
32 { | 36 { |
33 register(); | 37 register(); |
34 super(loc, TOK.TOKvar, VarExp.sizeof, var, hasOverloads); | 38 super(loc, TOK.TOKvar, VarExp.sizeof, var, hasOverloads); |
35 | 39 |