Mercurial > projects > ddmd
view dmd/UAddExp.d @ 23:460959608115
Branch merge.
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Mon, 12 Apr 2010 17:00:08 +0100 |
parents | 427f8aa74d28 f2413c9183d1 |
children | 2e2a5c3f943a |
line wrap: on
line source
module dmd.UAddExp; import dmd.Expression; import dmd.Identifier; import dmd.UnaExp; import dmd.Loc; import dmd.Scope; import dmd.TOK; class UAddExp : UnaExp { this(Loc loc, Expression e) { super(loc, TOK.TOKuadd, this.sizeof, e); } Expression semantic(Scope sc) { Expression e; version (LOGSEMANTIC) { printf("UAddExp.semantic('%s')\n", toChars()); } assert(!type); UnaExp.semantic(sc); e1 = resolveProperties(sc, e1); e = op_overload(sc); if (e) return e; e1.checkNoBool(); e1.checkArithmetic(); return e1; } Identifier opId() { assert(false); } }