Skip to content

Commit da96c23

Browse files
committed
Align comments as well
1 parent 506b5d8 commit da96c23

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

compiler/src/dotty/tools/dotc/ast/tpd.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
509509
Thicket(valdef, clsdef)
510510
}
511511

512-
/** A `_' with given type */
512+
/** A `_` with given type */
513513
def Underscore(tp: Type)(implicit ctx: Context): Ident = untpd.Ident(nme.WILDCARD).withType(tp)
514514

515515
def defaultValue(tpe: Type)(implicit ctx: Context): Tree = {
@@ -959,7 +959,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
959959
receiver.select(defn.Object_ne).appliedTo(nullLiteral).withSpan(tree.span)
960960
}
961961

962-
/** If inititializer tree is `_', the default value of its type,
962+
/** If inititializer tree is `_`, the default value of its type,
963963
* otherwise the tree itself.
964964
*/
965965
def wildcardToDefault(implicit ctx: Context): Tree =

compiler/src/dotty/tools/dotc/typer/Variances.scala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)