We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 737592f commit 79321bdCopy full SHA for 79321bd
compiler/src/dotty/tools/dotc/core/NameOps.scala
@@ -25,11 +25,11 @@ object NameOps {
25
*
26
* (+6 for ".class"). MaxNameLength can therefore be computed as follows:
27
*/
28
- def apply(s: String)(implicit ctx: Context): String = {
+ def apply(s: String): String = {
29
val marker = "$$$$"
30
31
- val limit: Int = 240
32
- val MaxNameLength = (limit - 6) min 2 * (limit - 6 - 2 * marker.length - 32)
+ final val charLimit: Int = 240
+ val MaxNameLength = (charLimit - 6) min 2 * (charLimit - 6 - 2 * marker.length - 32)
33
34
def toMD5(s: String, edge: Int): String = {
35
val prefix = s take edge
0 commit comments