Mercurial > projects > ddmd
diff dmd/OrAssignExp.d @ 0:10317f0c89a5
Initial commit
author | korDen |
---|---|
date | Sat, 24 Oct 2009 08:42:06 +0400 |
parents | |
children | cab4c37afb89 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dmd/OrAssignExp.d Sat Oct 24 08:42:06 2009 +0400 @@ -0,0 +1,54 @@ +module dmd.OrAssignExp; + +import dmd.BinExp; +import dmd.Loc; +import dmd.Expression; +import dmd.Scope; +import dmd.InterState; +import dmd.OutBuffer; +import dmd.ArrayTypes; +import dmd.Identifier; +import dmd.IRState; +import dmd.TOK; +import dmd.Id; + +import dmd.backend.elem; +import dmd.backend.OPER; + +class OrAssignExp : BinExp +{ + this(Loc loc, Expression e1, Expression e2) + { + super(loc, TOK.TOKorass, OrAssignExp.sizeof, e1, e2); + } + + Expression semantic(Scope sc) + { + return commonSemanticAssignIntegral(sc); + } + + Expression interpret(InterState* istate) + { + assert(false); + } + + void buildArrayIdent(OutBuffer buf, Expressions arguments) + { + assert(false); + } + + Expression buildArrayLoop(Arguments fparams) + { + assert(false); + } + + Identifier opId() /* For operator overloading */ + { + return Id.orass; + } + + elem* toElem(IRState* irs) + { + return toElemBin(irs, OPorass); + } +} \ No newline at end of file