File tree 1 file changed +3
-2
lines changed
internal/compiler-bridge/src/main/scala/xsbt
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import xsbti.api._
19
19
import scala .annotation .tailrec
20
20
import scala .tools .nsc .Global
21
21
import scala .PartialFunction .cond
22
+ import ExtractAPI .ConstructorWithDefaultArgument
22
23
23
24
/**
24
25
* Extracts full (including private members) API representation out of Symbols and Types.
@@ -836,9 +837,8 @@ class ExtractAPI[GlobalType <: Global](
836
837
constructorNameAsString(s.enclClass)
837
838
else {
838
839
val decoded = name.decode
839
- val constructorWithDefaultArgument = " <init>\\ $default\\ $(\\ d+)" .r
840
840
decoded match {
841
- case constructorWithDefaultArgument (index) => constructorNameAsString(s.enclClass, index)
841
+ case ConstructorWithDefaultArgument (index) => constructorNameAsString(s.enclClass, index)
842
842
case _ => decoded
843
843
}
844
844
}
@@ -866,4 +866,5 @@ class ExtractAPI[GlobalType <: Global](
866
866
867
867
object ExtractAPI {
868
868
private val emptyAnnotationArray = new Array [xsbti.api.Annotation ](0 )
869
+ private val ConstructorWithDefaultArgument = " <init>\\ $default\\ $(\\ d+)" .r
869
870
}
You can’t perform that action at this time.
0 commit comments