Skip to content

Commit 31e6724

Browse files
committed
Fix unrelated typos in comments
1 parent 468de59 commit 31e6724

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import StdNames._
2929
* - eliminates some kinds of trees: Imports, NamedArgs
3030
* - stubs out native methods
3131
* - eliminates self tree in Template and self symbol in ClassInfo
32-
* - collapsess all type trees to trees of class TypeTree
32+
* - collapses all type trees to trees of class TypeTree
3333
* - converts idempotent expressions with constant types
3434
*/
3535
class FirstTransform extends MiniPhaseTransform with InfoTransformer with AnnotationTransformer { thisTransformer =>
@@ -148,7 +148,7 @@ class FirstTransform extends MiniPhaseTransform with InfoTransformer with Annota
148148
override def transformTemplate(impl: Template)(implicit ctx: Context, info: TransformerInfo): Tree = {
149149
cpy.Template(impl)(self = EmptyValDef)
150150
}
151-
151+
152152
override def transformDefDef(ddef: DefDef)(implicit ctx: Context, info: TransformerInfo) = {
153153
if (ddef.symbol.hasAnnotation(defn.NativeAnnot)) {
154154
ddef.symbol.resetFlag(Deferred)
@@ -168,13 +168,13 @@ class FirstTransform extends MiniPhaseTransform with InfoTransformer with Annota
168168
}
169169

170170
override def transformIdent(tree: Ident)(implicit ctx: Context, info: TransformerInfo) =
171-
if (tree.isType) TypeTree(tree.tpe).withPos(tree.pos)
171+
if (tree.isType) TypeTree(tree.tpe).withPos(tree.pos)
172172
else constToLiteral(tree)
173173

174174
override def transformSelect(tree: Select)(implicit ctx: Context, info: TransformerInfo) =
175-
if (tree.isType) TypeTree(tree.tpe).withPos(tree.pos)
175+
if (tree.isType) TypeTree(tree.tpe).withPos(tree.pos)
176176
else constToLiteral(tree)
177-
177+
178178
override def transformTypeApply(tree: TypeApply)(implicit ctx: Context, info: TransformerInfo) =
179179
constToLiteral(tree)
180180

@@ -183,7 +183,7 @@ class FirstTransform extends MiniPhaseTransform with InfoTransformer with Annota
183183

184184
override def transformTyped(tree: Typed)(implicit ctx: Context, info: TransformerInfo) =
185185
constToLiteral(tree)
186-
186+
187187
override def transformBlock(tree: Block)(implicit ctx: Context, info: TransformerInfo) =
188188
constToLiteral(tree)
189189

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ object ProtoTypes {
234234
}
235235

236236
/** The type of the argument `arg`.
237-
* @pre `arg` ahs been typed before
237+
* @pre `arg` has been typed before
238238
*/
239239
def typeOfArg(arg: untpd.Tree)(implicit ctx: Context): Type =
240240
myTypedArg(arg).tpe

0 commit comments

Comments
 (0)