Skip to content

Commit

Permalink
adaptive names: try with two underscores to avoid name/case conflict.…
Browse files Browse the repository at this point in the history
… error when not able to rename
  • Loading branch information
oyvindberg committed Sep 29, 2022
1 parent 267960e commit 46c5867
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ object AdaptiveNamingImport {
lowercaseIndex.put(lowercase, whole)
continue = false
case Some(_) =>
if (!iter.hasNext)
sys.error(s"Couldn't translate $whole")
}
}
}
Expand Down Expand Up @@ -126,7 +128,7 @@ object AdaptiveNamingImport {
case _: TsIdentImport => sys.error("unexpected")
}

base #::: base.map(_ + "_")
base #::: base.map(_ + "_") #::: base.map(_ + "__")
}

private def addMod(str: String) = str match {
Expand Down

0 comments on commit 46c5867

Please sign in to comment.