Skip to content

Commit ca5b28f

Browse files
committed
Boyscout some scaladoc and code usage
1 parent 285c90d commit ca5b28f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class TreeTypeMap(
9191
case id: Ident if tpd.needsSelect(id.tpe) =>
9292
ref(id.tpe.asInstanceOf[TermRef]).withSpan(id.span)
9393
case ddef @ DefDef(name, tparams, vparamss, tpt, _) =>
94-
val (tmap1, tparams1) = transformDefs(ddef.tparams)
94+
val (tmap1, tparams1) = transformDefs(tparams)
9595
val (tmap2, vparamss1) = tmap1.transformVParamss(vparamss)
9696
val res = cpy.DefDef(ddef)(name, tparams1, vparamss1, tmap2.transform(tpt), tmap2.transform(ddef.rhs))
9797
res.symbol.setParamssFromDefs(tparams1, vparamss1)

compiler/src/dotty/tools/dotc/transform/HoistSuperArgs.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ object HoistSuperArgs {
3333
*
3434
* An argument is complex if it contains a method or template definition, a this or a new,
3535
* or it contains an identifier which needs a `this` prefix to be accessed. This is the case
36-
* if the identifer neither a global reference nor a reference to a parameter of the enclosing class.
36+
* if the identifier has neither a global reference nor a reference to a parameter of the enclosing class.
3737
* @see needsHoist for an implementation.
3838
*
3939
* A hoisted argument definition gets the parameters of the class it is hoisted from
@@ -127,7 +127,7 @@ class HoistSuperArgs extends MiniPhase with IdentityDenotTransformer { thisPhase
127127
arg match {
128128
case Apply(fn, arg1 :: Nil) if fn.symbol == defn.cbnArg =>
129129
cpy.Apply(arg)(fn, hoistSuperArg(arg1, cdef) :: Nil)
130-
case _ if (arg.existsSubTree(needsHoist)) =>
130+
case _ if arg.existsSubTree(needsHoist) =>
131131
val superMeth = newSuperArgMethod(arg.tpe)
132132
val superArgDef = polyDefDef(superMeth, trefs => vrefss => {
133133
val paramSyms = trefs.map(_.typeSymbol) ::: vrefss.flatten.map(_.symbol)

compiler/src/dotty/tools/dotc/transform/ProtectedAccessors.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import MegaPhase.MiniPhase
1010
import config.Printers.transforms
1111

1212
/** Add accessors for all protected accesses. An accessor is needed if
13-
* according to the rules of the JVM a protected class member is not accesissible
13+
* according to the rules of the JVM a protected class member is not accessible
1414
* from the point of access, but is accessible if the access is from an enclosing
1515
* class. In this point a public access method is placed in that enclosing class.
1616
*/

0 commit comments

Comments
 (0)