Skip to content

Commit f5d03f2

Browse files
committed
more passing context around
1 parent a43deb7 commit f5d03f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/dotty/tools/dotc/backend/jvm/BCodeHelpers.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ abstract class BCodeHelpers extends BCodeTypes with BytecodeWriters {
535535
/*
536536
* must-single-thread
537537
*/
538-
def asmMethodType(msym: Symbol): BType = {
538+
def asmMethodType(msym: Symbol)(implicit ctx: core.Contexts.Context): BType = {
539539
assert(msym is Flags.Method, s"not a method-symbol: $msym")
540540
val resT: BType =
541541
if (msym.isClassConstructor || msym.isConstructor) BType.VOID_TYPE
@@ -550,7 +550,7 @@ abstract class BCodeHelpers extends BCodeTypes with BytecodeWriters {
550550
*
551551
* must-single-thread
552552
*/
553-
final def trackMemberClasses(csym: Symbol, lateClosuresBTs: List[BType]): List[BType] = {
553+
final def trackMemberClasses(csym: Symbol, lateClosuresBTs: List[BType])(implicit ctx: core.Contexts.Context): List[BType] = {
554554
val lateInnerClasses = exitingErasure {
555555
for (sym <- List(csym, csym.linkedClassOfClass); memberc <- sym.info.decls.map(innerClassSymbolFor) if memberc.isClass)
556556
yield memberc
@@ -574,14 +574,14 @@ abstract class BCodeHelpers extends BCodeTypes with BytecodeWriters {
574574
*
575575
* must-single-thread
576576
*/
577-
final def descriptor(t: Type): String = { toTypeKind(t).getDescriptor }
577+
final def descriptor(t: Type)(implicit ctx: core.Contexts.Context): String = (toTypeKind(t).getDescriptor)
578578

579579
/*
580580
* Tracks (if needed) the inner class given by `sym`.
581581
*
582582
* must-single-thread
583583
*/
584-
final def descriptor(sym: Symbol): String = { asmClassType(sym).getDescriptor }
584+
final def descriptor(sym: Symbol)(implicit ctx: core.Contexts.Context): String = (asmClassType(sym).getDescriptor)
585585

586586
} // end of trait BCInnerClassGen
587587

0 commit comments

Comments
 (0)