Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pshirshov committed Dec 17, 2024
1 parent 921336e commit 0194d18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ class CSharpLayouter(options: CSharpTranslatorOptions) extends TranslationLayout
val csdeps = t.typespace.domain.meta.directImports.map {
i =>
val id = i.id
val prjDirName = s"${naming.projectDirName(id)}"
val prjName = prjDirName
val prjDirName = naming.projectDirName(id)
val prjName = naming.projectId(id)
s"src/$prjDirName/$prjName.csproj"
} ++ Seq(s"src/${naming.irtDir}/${naming.irtDir}.csproj")

Expand All @@ -82,7 +82,7 @@ class CSharpLayouter(options: CSharpTranslatorOptions) extends TranslationLayout
val csdepsTest = t.typespace.domain.meta.directImports.map {
i =>
val id = i.id
val prjDirName = s"${naming.projectDirName(id)}"
val prjDirName = naming.projectDirName(id)
val prjTestName = s"${naming.projectDirName(id)}.Test"

s"tests/$prjDirName/$prjTestName.csproj"
Expand Down Expand Up @@ -135,8 +135,8 @@ class CSharpLayouter(options: CSharpTranslatorOptions) extends TranslationLayout
out =>
val id = out.typespace.domain.id

val prjDirName = s"${naming.projectDirName(id)}"
val prjName = prjDirName
val prjDirName = naming.projectDirName(id)
val prjName = naming.projectId(id)
val prjTestName = s"$prjDirName.Test"

Seq(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class CSharpNamingConvention(rule: ProjectNamingRule) {
}

def projectDirName(did: DomainId): String = {
naming.baseProjectId(did).map(_.capitalize).mkString(".")
naming.baseProjectId(did).map(_.capitalize).mkString
}

}

0 comments on commit 0194d18

Please sign in to comment.