mirror of https://github.com/sbt/sbt.git
Avoid inline for slash apparently
This commit is contained in:
parent
70d7ddb258
commit
320a8c7204
|
|
@ -33,7 +33,7 @@ sealed trait Reference:
|
|||
def /(configAxis: ScopeAxis[ConfigKey]): RefThenConfig =
|
||||
RefThenConfig(asScope.copy(config = configAxis))
|
||||
|
||||
final def /[K](key: Scoped.ScopingSetting[K]): K = key.rescope(asScope)
|
||||
final def /[K](key: Scoped.ScopingSetting[K]): K = asScope.scope(key)
|
||||
|
||||
final def /(key: AttributeKey[?]): Scope = asScope.rescope(key)
|
||||
end Reference
|
||||
|
|
|
|||
|
|
@ -76,11 +76,11 @@ object ScopeAxis:
|
|||
/** Temporary data structure to capture first two axis using slash syntax. */
|
||||
class RefThenConfig(val scope: Scope):
|
||||
override def toString(): String = scope.toString()
|
||||
inline def /[K](key: Scoped.ScopingSetting[K]): K = scope / key
|
||||
def /[K](key: Scoped.ScopingSetting[K]): K = scope / key
|
||||
|
||||
inline def /(task: AttributeKey[?]): Scope = scope.copy(task = Select(task))
|
||||
def /(task: AttributeKey[?]): Scope = scope.copy(task = Select(task))
|
||||
|
||||
/** This is for handling `Zero / Zero / Zero / name`. */
|
||||
inline def /(taskAxis: ScopeAxis[AttributeKey[?]]): Scope = scope.copy(task = taskAxis)
|
||||
def /(taskAxis: ScopeAxis[AttributeKey[?]]): Scope = scope.copy(task = taskAxis)
|
||||
end RefThenConfig
|
||||
end ScopeAxis
|
||||
|
|
|
|||
Loading…
Reference in New Issue