comparison dmd/AddExp.d @ 12:832f71e6f96c

*Exp and *AssignExp arrayOp implementation added (might be a bit incomplete) Some unittest-specific functions implemented
author korDen
date Mon, 12 Apr 2010 15:13:00 +0400
parents 10317f0c89a5
children cab4c37afb89
comparison
equal deleted inserted replaced
11:3356c90e9aac 12:832f71e6f96c
116 assert(false); 116 assert(false);
117 } 117 }
118 118
119 void buildArrayIdent(OutBuffer buf, Expressions arguments) 119 void buildArrayIdent(OutBuffer buf, Expressions arguments)
120 { 120 {
121 assert(false); 121 Exp_buildArrayIdent(buf, arguments, "Add");
122 } 122 }
123 123
124 Expression buildArrayLoop(Arguments fparams) 124 Expression buildArrayLoop(Arguments fparams)
125 { 125 {
126 assert(false); 126 /* Evaluate assign expressions left to right
127 */
128 Expression ex1 = e1.buildArrayLoop(fparams);
129 Expression ex2 = e2.buildArrayLoop(fparams);
130 Expression e = new AddExp(Loc(0), ex1, ex2);
131 return e;
127 } 132 }
128 133
129 bool isCommutative() 134 bool isCommutative()
130 { 135 {
131 return true; 136 return true;