config: remove deprecated Parameters.root
This commit is contained in:
parent
46751bedeb
commit
bd50a1a4bc
@ -42,7 +42,6 @@ abstract class Parameters extends View {
|
|||||||
object Parameters {
|
object Parameters {
|
||||||
def empty: Parameters = new EmptyParameters
|
def empty: Parameters = new EmptyParameters
|
||||||
def apply(f: (View, View, View) => PartialFunction[Any,Any]): Parameters = new PartialParameters(f)
|
def apply(f: (View, View, View) => PartialFunction[Any,Any]): Parameters = new PartialParameters(f)
|
||||||
def root(p: Parameters) = p
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class Config(p: Parameters) extends Parameters {
|
class Config(p: Parameters) extends Parameters {
|
||||||
|
@ -43,7 +43,7 @@ trait HasGeneratorUtilities {
|
|||||||
|
|
||||||
def getParameters(names: ParsedInputNames): Parameters = getParameters(getConfig(names))
|
def getParameters(names: ParsedInputNames): Parameters = getParameters(getConfig(names))
|
||||||
|
|
||||||
def getParameters(config: Config): Parameters = Parameters.root(config.toInstance)
|
def getParameters(config: Config): Parameters = config.toInstance
|
||||||
|
|
||||||
def elaborate(names: ParsedInputNames, params: Parameters): Circuit = {
|
def elaborate(names: ParsedInputNames, params: Parameters): Circuit = {
|
||||||
val gen = () =>
|
val gen = () =>
|
||||||
@ -97,8 +97,7 @@ trait GeneratorApp extends App with HasGeneratorUtilities {
|
|||||||
// Canonical ways of building various JVM elaboration-time structures
|
// Canonical ways of building various JVM elaboration-time structures
|
||||||
lazy val td = names.targetDir
|
lazy val td = names.targetDir
|
||||||
lazy val config = getConfig(names)
|
lazy val config = getConfig(names)
|
||||||
lazy val world = config.toInstance
|
lazy val params = config.toInstance
|
||||||
lazy val params = Parameters.root(world)
|
|
||||||
lazy val circuit = elaborate(names, params)
|
lazy val circuit = elaborate(names, params)
|
||||||
|
|
||||||
val longName: String // Exhaustive name used to interface with external build tool targets
|
val longName: String // Exhaustive name used to interface with external build tool targets
|
||||||
|
Loading…
Reference in New Issue
Block a user