view dmd/ErrorExp.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 10317f0c89a5
children ef02e2e203c2
line wrap: on
line source

module dmd.ErrorExp;

import dmd.OutBuffer;
import dmd.IntegerExp;
import dmd.Loc;
import dmd.HdrGenState;
import dmd.Type;

/* Use this expression for error recovery.
 * It should behave as a 'sink' to prevent further cascaded error messages.
 */

class ErrorExp : IntegerExp
{
	this()
	{
		super(Loc(0), 0, Type.terror);
	}

	override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
	{
		buf.writestring("__error");
	}
}