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

Initial commit
author korDen
date Sat, 24 Oct 2009 08:42:06 +0400
parents
children e28b18c23469
line wrap: on
line source

module dmd.expression.Com;

import dmd.Expression;
import dmd.Type;
import dmd.IntegerExp;
import dmd.Loc;

Expression Com(Type type, Expression e1)
{
    Loc loc = e1.loc;
    return new IntegerExp(loc, ~e1.toInteger(), type);
}