@@ -24,7 +24,7 @@ object ContextFunctionResults:
2424        rhs match 
2525          case  closureDef(meth) =>  1  +  contextResultCount(meth.rhs, mt.resType)
2626          case  _ =>  0 
27-       case  defn.ContextFunctionOf (_, resTpe) => 
27+       case  defn.NonDependentContextFunctionOf (_, resTpe) => 
2828        rhs match 
2929          case  closureDef(meth) =>  1  +  contextResultCount(meth.rhs, resTpe)
3030          case  _ =>  0 
@@ -64,7 +64,7 @@ object ContextFunctionResults:
6464    def  allErased (tp : Type ):  Boolean  =  tp.dealias match 
6565      case  ft @  defn.DependentFunctionRefinementOf (_, mt) if  mt.isContextualMethod => 
6666        ! defn.erasedFunctionParams(ft).contains(false ) &&  allErased(mt.resType)
67-       case  ft @  defn.ContextFunctionOf (_, resTpe) => 
67+       case  ft @  defn.NonDependentContextFunctionOf (_, resTpe) => 
6868        ! defn.erasedFunctionParams(ft).contains(false ) &&  allErased(resTpe)
6969      case  _ =>  true 
7070    contextResultCount(sym) >  0  &&  allErased(sym.info.finalResultType)
@@ -81,7 +81,7 @@ object ContextFunctionResults:
8181        tp.derivedLambdaType(resType =  integrateContextResults(tp.resType, crCount))
8282      case  defn.DependentFunctionRefinementOf (base, mt) if  mt.isContextualMethod => 
8383        integrateContextResults(base, crCount)
84-       case  defn.ContextFunctionOf (argTypes, resType) => 
84+       case  defn.NonDependentContextFunctionOf (argTypes, resType) => 
8585        MethodType (argTypes, integrateContextResults(resType, crCount -  1 ))
8686
8787  /**  The total number of parameters of method `sym`, not counting 
@@ -92,7 +92,7 @@ object ContextFunctionResults:
9292    def  contextParamCount (tp : Type , crCount : Int ):  Int  = 
9393      if  crCount ==  0  then  0 
9494      else 
95-         val  defn .ContextFunctionOf (params, resTpe) =  tp : @ unchecked
95+         val  defn .NonDependentContextFunctionOf (params, resTpe) =  tp : @ unchecked
9696        val  erasedParams  =  defn.erasedFunctionParams(tp)
9797        val  rest  =  contextParamCount(resTpe, crCount -  1 )
9898        if  erasedParams.contains(true ) then  erasedParams.count(_ ==  false ) +  rest else  params.length +  rest
@@ -113,7 +113,7 @@ object ContextFunctionResults:
113113    def  recur (tp : Type , n : Int ):  Type  = 
114114      if  n ==  0  then  tp
115115      else  tp match 
116-         case  defn.ContextFunctionOf (_, resTpe) =>  recur(resTpe, n -  1 )
116+         case  defn.NonDependentContextFunctionOf (_, resTpe) =>  recur(resTpe, n -  1 )
117117    recur(meth.info.finalResultType, depth)
118118
119119  /**  Should selection `tree` be eliminated since it refers to an `apply` 
@@ -130,7 +130,7 @@ object ContextFunctionResults:
130130          qual.tpe match 
131131            case  defn.DependentFunctionRefinementOf (_, mt) if  mt.isContextualMethod => 
132132              integrateSelect(qual, n +  1 )
133-             case  defn.ContextFunctionOf (_, _) => 
133+             case  defn.NonDependentContextFunctionOf (_, _) => 
134134              integrateSelect(qual, n +  1 )
135135            case  _ if  defn.isContextFunctionClass(tree.symbol.maybeOwner) =>  //  for TermRefs
136136              integrateSelect(qual, n +  1 )
0 commit comments