comparison dmd/expression/Com.d @ 0:10317f0c89a5

Initial commit
author korDen
date Sat, 24 Oct 2009 08:42:06 +0400
parents
children e28b18c23469
comparison
equal deleted inserted replaced
-1:000000000000 0:10317f0c89a5
1 module dmd.expression.Com;
2
3 import dmd.Expression;
4 import dmd.Type;
5 import dmd.IntegerExp;
6 import dmd.Loc;
7
8 Expression Com(Type type, Expression e1)
9 {
10 Loc loc = e1.loc;
11 return new IntegerExp(loc, ~e1.toInteger(), type);
12 }