@@ -25,21 +25,21 @@ object Variances {
2525 else if (boundsVariance == - 1 ) flip(v)
2626 else cut(v)
2727
28- /** Compute variance of type parameter `tparam' in types of all symbols `sym' . */
28+ /** Compute variance of type parameter `tparam` in types of all symbols `sym` . */
2929 def varianceInSyms (syms : List [Symbol ])(tparam : Symbol )(implicit ctx : Context ): Variance =
3030 syms.foldLeft(Bivariant ) ((v, sym) => v & varianceInSym(sym)(tparam))
3131
32- /** Compute variance of type parameter `tparam' in type of symbol `sym' . */
32+ /** Compute variance of type parameter `tparam` in type of symbol `sym` . */
3333 def varianceInSym (sym : Symbol )(tparam : Symbol )(implicit ctx : Context ): Variance =
3434 if (sym.isAliasType) cut(varianceInType(sym.info)(tparam))
3535 else varianceInType(sym.info)(tparam)
3636
37- /** Compute variance of type parameter `tparam' in all types `tps' . */
37+ /** Compute variance of type parameter `tparam` in all types `tps` . */
3838 def varianceInTypes (tps : List [Type ])(tparam : Symbol )(implicit ctx : Context ): Variance =
3939 tps.foldLeft(Bivariant ) ((v, tp) => v & varianceInType(tp)(tparam))
4040
41- /** Compute variance of type parameter `tparam' in all type arguments
42- * <code>tps</code> which correspond to formal type parameters `tparams1' .
41+ /** Compute variance of type parameter `tparam` in all type arguments
42+ * <code>tps</code> which correspond to formal type parameters `tparams1` .
4343 */
4444 def varianceInArgs (tps : List [Type ], tparams1 : List [Symbol ])(tparam : Symbol )(implicit ctx : Context ): Variance = {
4545 var v : Variance = Bivariant ;
@@ -52,11 +52,11 @@ object Variances {
5252 v
5353 }
5454
55- /** Compute variance of type parameter `tparam' in all type annotations `annots' . */
55+ /** Compute variance of type parameter `tparam` in all type annotations `annots` . */
5656 def varianceInAnnots (annots : List [Annotation ])(tparam : Symbol )(implicit ctx : Context ): Variance =
5757 annots.foldLeft(Bivariant ) ((v, annot) => v & varianceInAnnot(annot)(tparam))
5858
59- /** Compute variance of type parameter `tparam' in type annotation `annot' . */
59+ /** Compute variance of type parameter `tparam` in type annotation `annot` . */
6060 def varianceInAnnot (annot : Annotation )(tparam : Symbol )(implicit ctx : Context ): Variance =
6161 varianceInType(annot.tree.tpe)(tparam)
6262
0 commit comments