view dmd/Condition.d @ 87:b17640f0e4e8

Fixed a bug with a Scope.this(Scope enclosing) being called instead of Scope.clone() method (as a copy ctor replacement)
author korDen
date Mon, 30 Aug 2010 19:56:27 +0400
parents 10317f0c89a5
children e28b18c23469
line wrap: on
line source

module dmd.Condition;

import dmd.Loc;
import dmd.Scope;
import dmd.ScopeDsymbol;
import dmd.OutBuffer;
import dmd.HdrGenState;

class Condition
{
    Loc loc;
    int inc = 0;// 0: not computed yet
				// 1: include
				// 2: do not include

    this(Loc loc)
	{
		this.loc = loc;
	}

    abstract Condition syntaxCopy();
    abstract bool include(Scope sc, ScopeDsymbol s);
    abstract void toCBuffer(OutBuffer buf, HdrGenState* hgs);
}