allow This, Global to represent ThisScope, GlobalScope

This commit is contained in:
Mark Harrah 2011-02-27 00:34:57 -05:00
parent 19698e308e
commit c21c580314
1 changed files with 5 additions and 0 deletions

View File

@ -124,6 +124,11 @@ sealed trait ScopeAxis[+S] {
case object This extends ScopeAxis[Nothing]
case object Global extends ScopeAxis[Nothing]
final case class Select[S](s: S) extends ScopeAxis[S]
object ScopeAxis
{
implicit def scopeAxisToScope(axis: ScopeAxis[Nothing]): Scope =
Scope(axis, axis, axis, axis)
}
final case class ConfigKey(name: String)
object ConfigKey