view dmd/Condition.d @ 179:cd48cb899aee

Updated to dmd2.040
author korDen
date Sun, 17 Oct 2010 20:56:07 +0400
parents e3afd1303184
children b0d41ff5e0df
line wrap: on
line source

module dmd.Condition;

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

import dmd.TObject;

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

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

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