view dmd/ModAssignExp.d @ 72:2e2a5c3f943a

reduced warnings by adding override to the methods think this also normalizes different line endings used all over the place
author Trass3r
date Sat, 28 Aug 2010 16:19:48 +0200
parents f708f0452e81
children ef02e2e203c2
line wrap: on
line source

module dmd.ModAssignExp;

import dmd.BinExp;
import dmd.Loc;
import dmd.Expression;
import dmd.Scope;
import dmd.InterState;
import dmd.OutBuffer;
import dmd.ArrayTypes;
import dmd.Identifier;
import dmd.IRState;
import dmd.TOK;
import dmd.backend.OPER;
import dmd.Id;

import dmd.backend.elem;

class ModAssignExp : BinExp
{
    this(Loc loc, Expression e1, Expression e2)
	{
		super(loc, TOK.TOKmodass, this.sizeof, e1, e2);
	}
	
    override Expression semantic(Scope sc)
	{
    		return commonSemanticAssign(sc);
	}
	
    override Expression interpret(InterState istate)
	{
		assert(false);
	}
	
    override void buildArrayIdent(OutBuffer buf, Expressions arguments)
	{
		assert(false);
	}
	
    override Expression buildArrayLoop(Arguments fparams)
	{
		assert(false);
	}

    override Identifier opId()    /* For operator overloading */
	{
		return Id.modass;
	}

    override elem* toElem(IRState* irs)
	{
		return toElemBin(irs,OPmodass);
	}
}