File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -614,14 +614,14 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(using Context) {
614
614
true
615
615
616
616
/** The number of enclosing classes of this class, plus one */
617
- private def nestingLevel (cls : Symbol ) = cls.ownersIterator.count(_.isClass)
617
+ private def classNestingLevel (cls : Symbol ) = cls.ownersIterator.count(_.isClass)
618
618
619
619
// Compute val-definitions for all this-proxies and append them to `bindingsBuf`
620
620
private def computeThisBindings () = {
621
621
// All needed this-proxies, paired-with and sorted-by nesting depth of
622
622
// the classes they represent (innermost first)
623
623
val sortedProxies = thisProxy.toList
624
- .map((cls, proxy) => (nestingLevel (cls), proxy.symbol))
624
+ .map((cls, proxy) => (classNestingLevel (cls), proxy.symbol))
625
625
.sortBy(- _._1)
626
626
627
627
var lastSelf : Symbol = NoSymbol
@@ -643,7 +643,7 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(using Context) {
643
643
val pre = inlineCallPrefix match
644
644
case Super (qual, _) => qual
645
645
case pre => pre
646
- val preLevel = nestingLevel (inlinedMethod.owner)
646
+ val preLevel = classNestingLevel (inlinedMethod.owner)
647
647
if preLevel > level then pre.outerSelect(preLevel - level, selfSym.info)
648
648
else pre
649
649
You can’t perform that action at this time.
0 commit comments