Mercurial > projects > ddmd
comparison dmd/expression/Shl.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.Shl; | |
2 | |
3 import dmd.Expression; | |
4 import dmd.Type; | |
5 import dmd.IntegerExp; | |
6 | |
7 Expression Shl(Type type, Expression e1, Expression e2) | |
8 { | |
9 return new IntegerExp(e1.loc, e1.toInteger() << e2.toInteger(), type); | |
10 } |