@@ -25,21 +25,21 @@ object Variances {
25
25
else if (boundsVariance == - 1 ) flip(v)
26
26
else cut(v)
27
27
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` . */
29
29
def varianceInSyms (syms : List [Symbol ])(tparam : Symbol )(implicit ctx : Context ): Variance =
30
30
syms.foldLeft(Bivariant ) ((v, sym) => v & varianceInSym(sym)(tparam))
31
31
32
- /** Compute variance of type parameter `tparam' in type of symbol `sym' . */
32
+ /** Compute variance of type parameter `tparam` in type of symbol `sym` . */
33
33
def varianceInSym (sym : Symbol )(tparam : Symbol )(implicit ctx : Context ): Variance =
34
34
if (sym.isAliasType) cut(varianceInType(sym.info)(tparam))
35
35
else varianceInType(sym.info)(tparam)
36
36
37
- /** Compute variance of type parameter `tparam' in all types `tps' . */
37
+ /** Compute variance of type parameter `tparam` in all types `tps` . */
38
38
def varianceInTypes (tps : List [Type ])(tparam : Symbol )(implicit ctx : Context ): Variance =
39
39
tps.foldLeft(Bivariant ) ((v, tp) => v & varianceInType(tp)(tparam))
40
40
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` .
43
43
*/
44
44
def varianceInArgs (tps : List [Type ], tparams1 : List [Symbol ])(tparam : Symbol )(implicit ctx : Context ): Variance = {
45
45
var v : Variance = Bivariant ;
@@ -52,11 +52,11 @@ object Variances {
52
52
v
53
53
}
54
54
55
- /** Compute variance of type parameter `tparam' in all type annotations `annots' . */
55
+ /** Compute variance of type parameter `tparam` in all type annotations `annots` . */
56
56
def varianceInAnnots (annots : List [Annotation ])(tparam : Symbol )(implicit ctx : Context ): Variance =
57
57
annots.foldLeft(Bivariant ) ((v, annot) => v & varianceInAnnot(annot)(tparam))
58
58
59
- /** Compute variance of type parameter `tparam' in type annotation `annot' . */
59
+ /** Compute variance of type parameter `tparam` in type annotation `annot` . */
60
60
def varianceInAnnot (annot : Annotation )(tparam : Symbol )(implicit ctx : Context ): Variance =
61
61
varianceInType(annot.tree.tpe)(tparam)
62
62
0 commit comments