Skip to content

Commit c6dafba

Browse files
committed
Adress reviewers comments
1 parent a6efb02 commit c6dafba

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

compiler/src/dotty/tools/dotc/core/Names.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ object Names {
247247
}
248248

249249
@sharable // because it's just a cache for performance
250-
private[Names] var myMangledString: String = null
250+
private[this] var myMangledString: String = null
251251

252252
@sharable // because it's just a cache for performance
253253
private[this] var myMangled: Name = null

compiler/src/dotty/tools/dotc/core/tasty/TastyFormat.scala

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,21 @@ Macro-format:
3636
EXPANDEDPREFIX Length qualified_NameRef selector_NameRef
3737
TRAITSETTER Length qualified_NameRef selector_NameRef
3838
UNIQUE Length separator_NameRef uniqid_Nat underlying_NameRef?
39-
DEFAULTGETTER Length underlying_NameRef index_Nat
40-
VARIANT Length underlying_NameRef variance_Nat // 0: Contravariant, 1: Covariant
41-
OUTERSELECT Length underlying_NameRef nhops_Nat // a reference to `nhops` <outer> selections, followed by `underlying`
42-
43-
SUPERACCESSOR Length underlying_NameRef
44-
PROTECTEDACCESSOR Length underlying_NameRef
45-
PROTECTEDSETTER Length underlying_NameRef
46-
INITIALIZER Length underlying_NameRef
47-
SHADOWED Length underlying_NameRef
48-
AVOIDCLASH Length underlying_NameRef
49-
DIRECT Length underlying_NameRef
50-
FIELD Length underlying_NameRef
51-
EXTMETH Length underlying_NameRef
52-
OBJECTVAR Length underlying_NameRef
53-
OBJECTCLASS Length underlying_NameRef
39+
DEFAULTGETTER Length underlying_NameRef index_Nat
40+
VARIANT Length underlying_NameRef variance_Nat // 0: Contravariant, 1: Covariant
41+
OUTERSELECT Length underlying_NameRef nhops_Nat // a reference to `nhops` <outer> selections, followed by `underlying`
42+
43+
SUPERACCESSOR Length underlying_NameRef
44+
PROTECTEDACCESSOR Length underlying_NameRef
45+
PROTECTEDSETTER Length underlying_NameRef
46+
INITIALIZER Length underlying_NameRef
47+
SHADOWED Length underlying_NameRef
48+
AVOIDCLASH Length underlying_NameRef
49+
DIRECT Length underlying_NameRef
50+
FIELD Length underlying_NameRef
51+
EXTMETH Length underlying_NameRef
52+
OBJECTVAR Length underlying_NameRef
53+
OBJECTCLASS Length underlying_NameRef
5454
SIGNED Length original_NameRef resultSig_NameRef paramSig_NameRef*
5555
5656
NameRef = Nat // ordinal number of name in name table, starting from 1.

compiler/test/dotty/tools/dotc/CompilationTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ class CompilationTests extends ParallelTesting {
244244
}.map(_.checkCompile()).foreach(_.delete())
245245
}
246246

247-
/** Add a `z` so that hey run last. TODO: Only run them selectively? */
247+
/** Add a `z` so that they run last. TODO: Only run them selectively? */
248248
@Test def zBytecodeIdempotency: Unit = {
249249
var failed = 0
250250
var total = 0

0 commit comments

Comments
 (0)