Skip to content

Commit 3690e96

Browse files
committed
Adjustments for dollars
1 parent 19ed7ad commit 3690e96

File tree

8 files changed

+12
-12
lines changed

8 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
classConstantPool(usingin: DataReader) extendsClassfileParser.AbstractConstantPool{
105105
defgetClassOrArrayType(index: Int)(usingctx: Context, in: DataReader):Type=thrownewUnsupportedOperationException
106106
defgetClassSymbol(index: Int)(usingctx: Context, in: DataReader):Symbol=thrownewUnsupportedOperationException
107-
defgetType(index: Int, isVarargs: Boolean)(usingx$3: Context,x$4:DataReader):Type=thrownewUnsupportedOperationException
107+
defgetType(index: Int, isVarargs: Boolean)(usingContext, DataReader):Type=thrownewUnsupportedOperationException
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
casepc: ScalaPresentationCompiler=>
3131
valcompilations= pc.compilerAccess.withNonInterruptableCompiler(-1, EmptyCancelToken){driver =>
3232
driver.compiler().currentCtx.runId
33-
}(emptyQueryContext).get(timeout.length, timeout.unit)
33+
}(usingemptyQueryContext).get(timeout.length, timeout.unit)
3434
assertEquals(expected, compilations, s"Expected $expected compilations but got $compilations")
3535
case _ =>throwIllegalStateException("Presentation compiler should always be of type of ScalaPresentationCompiler")
3636

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

4545
privatedefemptyQueryContext=PcQueryContext(None, () =>"")(usingEmptyReportContext())
@@ -133,7 +133,7 @@ class CompilerCachingSuite extends BasePCSuite:
133133
checkCompilationCount(6)
134134

135135

136-
privatevaltestFunctions:List[OffsetParams=>CompletableFuture[_]] =List(
136+
privatevaltestFunctions: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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ scala> val m = new Bag{val f = 23; def g = 47; def h(i: Int): Int = i; var i =
44
val m:
55
Bag{
66
val f: Int; def g: Int; def h(i: Int): Int; val i: Int;
7-
def i_=(x$1: Int): Unit; type N = Int; val l: List[Int];
7+
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{
1414
val f: Int; def g: Int; def h(i: Int): Int; val i: Int;
15-
def i_=(x$1: Int): Unit; type N = Int; val l: List[Int];
15+
def i_=(`x$1`: Int): Unit; type N = Int; val l: List[Int];
1616
val s: String @unchecked
1717
}

‎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
caseclassLazyEntry(getKey: String, value: () =>String) extendsJMapEntry[String, Object]:
1313
lazyvalgetValue:Object= value()
14-
defsetValue(x$0: Object):Object=???
14+
defsetValue(`x$0`: Object):Object=???
1515

1616
caseclassLoadedTemplate(
1717
templateFile: TemplateFile,

‎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
defcharacteristics() =10
66
defestimateSize() =10
77
deftrySplit() =???
8-
deftryAdvance(x$0: java.util.function.DoubleConsumer):Boolean=false
8+
deftryAdvance(`x$0`: java.util.function.DoubleConsumer):Boolean=false
99

1010
valm= n +1
1111
valn=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
//>usingoptions-Vprint:parser
22

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

55
defg: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-
traitX$Y
17+
trait`X$Y`
1818

1919
@implicitNotFound(msg ="There's no U[${X}, ${Y}, ${Z}]")
2020
traitU[X, Y[_], Z[_, ZZ]]{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,4 @@ object Answers{
106106
defanswer:Int=42
107107
}
108108

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

0 commit comments

Comments
(0)