implicit def keys2Structure()

in packaging/src/main/scala/org/jetbrains/sbtidea/packaging/structure/sbtImpl/SbtPackagingStructureExtractor.scala [116:129]


  implicit def keys2Structure(p: packaging.PackagingMethod): structure.PackagingMethod = p match {
    case packaging.PackagingMethod.Skip() =>
      structure.PackagingMethod.Skip()
    case packaging.PackagingMethod.MergeIntoParent() =>
      structure.PackagingMethod.MergeIntoParent()
    case packaging.PackagingMethod.DepsOnly(targetPath) =>
      structure.PackagingMethod.DepsOnly(targetPath)
    case packaging.PackagingMethod.Standalone(targetPath, static) =>
      structure.PackagingMethod.Standalone(targetPath, static)
    case packaging.PackagingMethod.MergeIntoOther(project) =>
      structure.PackagingMethod.MergeIntoOther(findProjectRef(project).map(projectCache).getOrElse(???))
    case packaging.PackagingMethod.PluginModule(moduleName, static) =>
      structure.PackagingMethod.PluginModule(moduleName, static)
  }