@@ -271,14 +271,14 @@ class Inliner(val call: tpd.Tree)(using Context):
271
271
true
272
272
273
273
/** The number of enclosing classes of this class, plus one */
274
- private def nestingLevel (cls : Symbol ) = cls.ownersIterator.count(_.isClass)
274
+ private def classNestingLevel (cls : Symbol ) = cls.ownersIterator.count(_.isClass)
275
275
276
276
// Compute val-definitions for all this-proxies and append them to `bindingsBuf`
277
277
private def computeThisBindings () = {
278
278
// All needed this-proxies, paired-with and sorted-by nesting depth of
279
279
// the classes they represent (innermost first)
280
280
val sortedProxies = thisProxy.toList
281
- .map((cls, proxy) => (nestingLevel (cls), proxy.symbol, cls))
281
+ .map((cls, proxy) => (classNestingLevel (cls), proxy.symbol, cls))
282
282
.sortBy(- _._1)
283
283
284
284
def outerSelect (prefix : Tree , prefixCls : Symbol , hops : Int , info : Type ) =
@@ -306,7 +306,7 @@ class Inliner(val call: tpd.Tree)(using Context):
306
306
val pre = inlineCallPrefix match
307
307
case Super (qual, _) => qual
308
308
case pre => pre
309
- val preLevel = nestingLevel (inlinedMethod.owner)
309
+ val preLevel = classNestingLevel (inlinedMethod.owner)
310
310
if preLevel > level then outerSelect(pre, inlinedMethod.owner, preLevel - level, selfSym.info)
311
311
else pre
312
312
0 commit comments