Mercurial > projects > ddmd
comparison dmd/OrAssignExp.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 |
comparison
equal
deleted
inserted
replaced
186:1a0c1126bc46 | 187:b0d41ff5e0df |
---|---|
15 import dmd.Id; | 15 import dmd.Id; |
16 | 16 |
17 import dmd.backend.elem; | 17 import dmd.backend.elem; |
18 import dmd.backend.OPER; | 18 import dmd.backend.OPER; |
19 | 19 |
20 import dmd.DDMDExtensions; | |
21 | |
20 class OrAssignExp : BinExp | 22 class OrAssignExp : BinExp |
21 { | 23 { |
24 mixin insertMemberExtension!(typeof(this)); | |
25 | |
22 this(Loc loc, Expression e1, Expression e2) | 26 this(Loc loc, Expression e1, Expression e2) |
23 { | 27 { |
24 register(); | 28 register(); |
25 super(loc, TOK.TOKorass, OrAssignExp.sizeof, e1, e2); | 29 super(loc, TOK.TOKorass, OrAssignExp.sizeof, e1, e2); |
26 } | 30 } |