Skip to content

Commit 3fe96a5

Browse files
committed
Adjustments for dollars
1 parent 19ed7ad commit 3fe96a5

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

compiler/src/dotty/tools/dotc/core/classfile/ClassfileTastyUUIDParser.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,6 @@ class ClassfileTastyUUIDParser(classfile: AbstractFile)(ictx: Context) {
104104
class ConstantPool(using in: DataReader) extends ClassfileParser.AbstractConstantPool {
105105
def getClassOrArrayType(index: Int)(using ctx: Context, in: DataReader): Type = throw new UnsupportedOperationException
106106
def getClassSymbol(index: Int)(using ctx: Context, in: DataReader): Symbol = throw new UnsupportedOperationException
107-
def getType(index: Int, isVarargs: Boolean)(using x$3: Context, x$4: DataReader): Type = throw new UnsupportedOperationException
107+
def getType(index: Int, isVarargs: Boolean)(using Context, DataReader): Type = throw new UnsupportedOperationException
108108
}
109109
}

presentation-compiler/test/dotty/tools/pc/tests/CompilerCachingSuite.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class CompilerCachingSuite extends BasePCSuite:
3030
case pc: ScalaPresentationCompiler =>
3131
val compilations = pc.compilerAccess.withNonInterruptableCompiler(-1, EmptyCancelToken) { driver =>
3232
driver.compiler().currentCtx.runId
33-
}(emptyQueryContext).get(timeout.length, timeout.unit)
33+
}(using emptyQueryContext).get(timeout.length, timeout.unit)
3434
assertEquals(expected, compilations, s"Expected $expected compilations but got $compilations")
3535
case _ => throw IllegalStateException("Presentation compiler should always be of type of ScalaPresentationCompiler")
3636

@@ -39,7 +39,7 @@ class CompilerCachingSuite extends BasePCSuite:
3939
case pc: ScalaPresentationCompiler =>
4040
pc.compilerAccess.withNonInterruptableCompiler(null, EmptyCancelToken) { driver =>
4141
driver.compiler().currentCtx
42-
}(emptyQueryContext).get(timeout.length, timeout.unit)
42+
}(using emptyQueryContext).get(timeout.length, timeout.unit)
4343
case _ => throw IllegalStateException("Presentation compiler should always be of type of ScalaPresentationCompiler")
4444

4545
private def emptyQueryContext = PcQueryContext(None, () => "")(using EmptyReportContext())
@@ -133,7 +133,7 @@ class CompilerCachingSuite extends BasePCSuite:
133133
checkCompilationCount(6)
134134

135135

136-
private val testFunctions: List[OffsetParams => CompletableFuture[_]] = List(
136+
private val testFunctions: List[OffsetParams => CompletableFuture[?]] = List(
137137
presentationCompiler.complete(_),
138138
presentationCompiler.convertToNamedArguments(_, Collections.emptyList()),
139139
presentationCompiler.autoImports("a", _, false),

repl/test-resources/type-printer/source-compatible

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ val m:
77
def i_=(x$1: Int): Unit; type N = Int; val l: List[Int];
88
def p[T](t: T): String
99
} = Bag()
10-
scala> type t = Bag { val f: Int; def g: Int; def h(i: Int): Int; val i: Int; def i_=(x$1: Int): Unit; type N = Int; val l: List[Int]; val s: String @unchecked }
10+
scala> type t = Bag { val f: Int; def g: Int; def h(i: Int): Int; val i: Int; def i_=(`x$1`: Int): Unit; type N = Int; val l: List[Int]; val s: String @unchecked }
1111
// defined alias type t
1212
=
1313
Bag{

scaladoc/src/dotty/tools/scaladoc/site/LoadedTemplate.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import scala.jdk.CollectionConverters._
1111

1212
case class LazyEntry(getKey: String, value: () => String) extends JMapEntry[String, Object]:
1313
lazy val getValue: Object = value()
14-
def setValue(x$0: Object): Object = ???
14+
def setValue(`x$0`: Object): Object = ???
1515

1616
case class LoadedTemplate(
1717
templateFile: TemplateFile,

tests/init/pos/i10549a.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ class Wrap {
22
class E
33
object E {
44
final val A = new E {}
5-
val $values = Array(A)
5+
val `$values` = Array(A)
66
}
77
}

tests/init/pos/i9664.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ object Wrap1 {
22
class E
33
object E {
44
final val A = E()
5-
val $values = Array(A)
5+
val `$values` = Array(A)
66
}
77
}
88
object Wrap2 {

tests/init/warn/java1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class A extends Spliterator.OfDouble:
55
def characteristics() = 10
66
def estimateSize() = 10
77
def trySplit() = ???
8-
def tryAdvance(x$0: java.util.function.DoubleConsumer): Boolean = false
8+
def tryAdvance(`x$0`: java.util.function.DoubleConsumer): Boolean = false
99

1010
val m = n + 1
1111
val n = 10 // warn

tests/neg/i15381.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//> using options -Vprint:parser
22

3-
case class $[A](value: A)
3+
case class `$`[A](value: A)
44

55
def g: Int = $ // error
66

tests/neg/i4986c.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Outer[A] {
1414
}
1515
}
1616

17-
trait X$Y
17+
trait `X$Y`
1818

1919
@implicitNotFound(msg = "There's no U[${X}, ${Y}, ${Z}]")
2020
trait U[X, Y[_], Z[_, ZZ]] {

tests/warn/scala2-t11681.scala renamed to tests/warn/t11681.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,4 @@ object Answers {
106106
def answer: Int = 42
107107
}
108108

109-
val a$1 = 2
109+
val `a$1` = 2

0 commit comments

Comments
 (0)