File tree 1 file changed +11
-20
lines changed
compiler/src/scala/quoted/runtime/impl/printers
1 file changed +11
-20
lines changed Original file line number Diff line number Diff line change @@ -804,6 +804,15 @@ object SourceCode {
804
804
}
805
805
}
806
806
807
+ private def printSeparatedParamDefs (list : List [ValDef ])(using elideThis : Option [Symbol ]): Unit = list match {
808
+ case Nil =>
809
+ case x :: Nil => printParamDef(x)
810
+ case x :: xs =>
811
+ printParamDef(x)
812
+ this += " , "
813
+ printSeparatedParamDefs(xs)
814
+ }
815
+
807
816
private def printMethdArgsDefs (args : List [ValDef ])(using elideThis : Option [Symbol ]): Unit = {
808
817
val argFlags = args match {
809
818
case Nil => Flags .EmptyFlags
@@ -813,16 +822,7 @@ object SourceCode {
813
822
if (argFlags.is(Flags .Implicit ) && ! argFlags.is(Flags .Given )) this += " implicit "
814
823
if (argFlags.is(Flags .Given )) this += " using "
815
824
816
- def printSeparated (list : List [ValDef ]): Unit = list match {
817
- case Nil =>
818
- case x :: Nil => printParamDef(x)
819
- case x :: xs =>
820
- printParamDef(x)
821
- this += " , "
822
- printSeparated(xs)
823
- }
824
-
825
- printSeparated(args)
825
+ printSeparatedParamDefs(args)
826
826
}
827
827
}
828
828
@@ -834,16 +834,7 @@ object SourceCode {
834
834
inParens {
835
835
if (argFlags.is(Flags .Implicit ) && ! argFlags.is(Flags .Given )) this += " implicit "
836
836
837
- def printSeparated (list : List [ValDef ]): Unit = list match {
838
- case Nil =>
839
- case x :: Nil => printParamDef(x)
840
- case x :: xs =>
841
- printParamDef(x)
842
- this += " , "
843
- printSeparated(xs)
844
- }
845
-
846
- printSeparated(args)
837
+ printSeparatedParamDefs(args)
847
838
}
848
839
}
849
840
You can’t perform that action at this time.
0 commit comments