String representation for Compiled

This commit is contained in:
Mark Harrah 2011-04-13 19:04:53 -04:00
parent 132278d1d8
commit 36034612bc
1 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,8 @@ private final class Settings0[Scope](val data: Map[Scope, AttributeMap], val del
// this trait is intended to be mixed into an object
trait Init[Scope]
{
def display(skey: ScopedKey[_]): String
final case class ScopedKey[T](scope: Scope, key: AttributeKey[T])
type SettingSeq[T] = Seq[Setting[T]]
@ -149,6 +151,9 @@ trait Init[Scope]
def Uninitialized(key: ScopedKey[_], refKey: ScopedKey[_]): Uninitialized =
new Uninitialized(key, refKey, "Reference to uninitialized setting " + key.key.label + " (in " + key.scope + ") from " + refKey.key.label +" (in " + refKey.scope + ")")
final class Compiled(val key: ScopedKey[_], val dependencies: Iterable[ScopedKey[_]], val eval: Settings[Scope] => Settings[Scope])
{
override def toString = display(key)
}
sealed trait Initialize[T]
{