@@ -271,14 +271,14 @@ class Inliner(val call: tpd.Tree)(using Context):
271271 true
272272
273273 /** 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)
275275
276276 // Compute val-definitions for all this-proxies and append them to `bindingsBuf`
277277 private def computeThisBindings () = {
278278 // All needed this-proxies, paired-with and sorted-by nesting depth of
279279 // the classes they represent (innermost first)
280280 val sortedProxies = thisProxy.toList
281- .map((cls, proxy) => (nestingLevel (cls), proxy.symbol, cls))
281+ .map((cls, proxy) => (classNestingLevel (cls), proxy.symbol, cls))
282282 .sortBy(- _._1)
283283
284284 def outerSelect (prefix : Tree , prefixCls : Symbol , hops : Int , info : Type ) =
@@ -306,7 +306,7 @@ class Inliner(val call: tpd.Tree)(using Context):
306306 val pre = inlineCallPrefix match
307307 case Super (qual, _) => qual
308308 case pre => pre
309- val preLevel = nestingLevel (inlinedMethod.owner)
309+ val preLevel = classNestingLevel (inlinedMethod.owner)
310310 if preLevel > level then outerSelect(pre, inlinedMethod.owner, preLevel - level, selfSym.info)
311311 else pre
312312
0 commit comments