Skip to content

Commit fd45847

Browse files
authored
fix typo (#21324)
1 parent 976133a commit fd45847

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+47
-47
lines changed

compiler/src/dotty/tools/backend/jvm/ClassfileWriters.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class ClassfileWriters(frontendAccess: PostProcessorFrontendAccess) {
129129
if (file.isInstanceOf[JarArchive]) {
130130
val jarCompressionLevel = compilerSettings.jarCompressionLevel
131131
// Writing to non-empty JAR might be an undefined behaviour, e.g. in case if other files where
132-
// created using `AbstractFile.bufferedOutputStream`instead of JarWritter
132+
// created using `AbstractFile.bufferedOutputStream`instead of JarWriter
133133
val jarFile = file.underlyingSource.getOrElse{
134134
throw new IllegalStateException("No underlying source for jar")
135135
}

compiler/src/dotty/tools/dotc/CompilationUnit.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class CompilationUnit protected (val source: SourceFile, val info: CompilationUn
8787
*/
8888
val depRecorder: sbt.DependencyRecorder = sbt.DependencyRecorder()
8989

90-
/** Suspends the compilation unit by thowing a SuspendException
90+
/** Suspends the compilation unit by throwing a SuspendException
9191
* and recording the suspended compilation unit
9292
*/
9393
def suspend(hint: => String)(using Context): Nothing =

compiler/src/dotty/tools/dotc/Compiler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class Compiler {
110110
new LetOverApply, // Lift blocks from receivers of applications
111111
new ArrayConstructors) :: // Intercept creation of (non-generic) arrays and intrinsify.
112112
List(new Erasure) :: // Rewrite types to JVM model, erasing all type parameters, abstract types and refinements.
113-
List(new ElimErasedValueType, // Expand erased value types to their underlying implmementation types
113+
List(new ElimErasedValueType, // Expand erased value types to their underlying implementation types
114114
new PureStats, // Remove pure stats from blocks
115115
new VCElideAllocations, // Peep-hole optimization to eliminate unnecessary value class allocations
116116
new EtaReduce, // Reduce eta expansions of pure paths to the underlying function reference

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ abstract class TreeMapWithTrackedStats extends TreeMapWithImplicits:
3232
case _ => tree
3333
end updateTracked
3434

35-
/** Process a list of trees and give the priority to trakced trees */
35+
/** Process a list of trees and give the priority to tracked trees */
3636
private final def withUpdatedTrackedTrees(stats: List[Tree])(using Context) =
3737
val trackedTrees = TreeMapWithTrackedStats.trackedTrees
3838
stats.mapConserve:
@@ -67,7 +67,7 @@ end TreeMapWithTrackedStats
6767
object TreeMapWithTrackedStats:
6868
private val TrackedTrees = new Property.Key[mutable.Map[Symbol, tpd.MemberDef]]
6969

70-
/** Fetch the tracked trees in the cuurent context */
70+
/** Fetch the tracked trees in the current context */
7171
private def trackedTrees(using Context): mutable.Map[Symbol, MemberDef] =
7272
ctx.property(TrackedTrees).get
7373

compiler/src/dotty/tools/dotc/cc/CaptureOps.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ private val Captures: Key[CaptureSet] = Key()
2121

2222
object ccConfig:
2323

24-
/** If true, allow mappping capture set variables under captureChecking with maps that are neither
24+
/** If true, allow mapping capture set variables under captureChecking with maps that are neither
2525
* bijective nor idempotent. We currently do now know how to do this correctly in all
2626
* cases, though.
2727
*/
@@ -35,7 +35,7 @@ object ccConfig:
3535

3636
/** If enabled, use a special path in recheckClosure for closures
3737
* that are eta expansions. This can improve some error messages but
38-
* currently leads to unsoundess for handlng reach capabilities.
38+
* currently leads to unsoundess for handling reach capabilities.
3939
* TODO: The unsoundness needs followin up.
4040
*/
4141
inline val handleEtaExpansionsSpecially = false

compiler/src/dotty/tools/dotc/cc/CheckCaptures.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ object CheckCaptures:
3939
/** A class describing environments.
4040
* @param owner the current owner
4141
* @param kind the environment's kind
42-
* @param captured the caputure set containing all references to tracked free variables outside of boxes
42+
* @param captured the capture set containing all references to tracked free variables outside of boxes
4343
* @param outer0 the next enclosing environment
4444
*/
4545
case class Env(
@@ -509,7 +509,7 @@ class CheckCaptures extends Recheck, SymTransformer:
509509
override def recheckApply(tree: Apply, pt: Type)(using Context): Type =
510510
val meth = tree.fun.symbol
511511

512-
// Unsafe box/unbox handlng, only for versions < 3.3
512+
// Unsafe box/unbox handling, only for versions < 3.3
513513
def mapArgUsing(f: Type => Type) =
514514
val arg :: Nil = tree.args: @unchecked
515515
val argType0 = f(recheckStart(arg, pt))

compiler/src/dotty/tools/dotc/core/Annotations.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ object Annotations {
4343
def argumentConstantString(i: Int)(using Context): Option[String] =
4444
for (case Constant(s: String) <- argumentConstant(i)) yield s
4545

46-
/** The tree evaluaton is in progress. */
46+
/** The tree evaluation is in progress. */
4747
def isEvaluating: Boolean = false
4848

4949
/** The tree evaluation has finished. */

compiler/src/dotty/tools/dotc/core/Contexts.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ object Contexts {
265265
/** SourceFile with given path, memoized */
266266
def getSource(path: String): SourceFile = getSource(path.toTermName)
267267

268-
/** AbstraFile with given path name, memoized */
268+
/** AbstractFile with given path name, memoized */
269269
def getFile(name: TermName): AbstractFile = base.files.get(name) match
270270
case Some(file) =>
271271
file

compiler/src/dotty/tools/dotc/core/tasty/CommentPickler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ object CommentPickler:
2929
def traverse(x: Any): Unit = x match
3030
case x: untpd.Tree @unchecked =>
3131
x match
32-
case x: tpd.MemberDef @unchecked => // at this point all MembderDefs are t(y)p(e)d.
32+
case x: tpd.MemberDef @unchecked => // at this point all MemberDefs are t(y)p(e)d.
3333
for comment <- docString(x) do pickleComment(addrOfTree(x), comment)
3434
case _ =>
3535
val limit = x.productArity

compiler/src/dotty/tools/dotc/parsing/Scanners.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ object Scanners {
684684
if !r.isOutermost
685685
&& closingRegionTokens.contains(token)
686686
&& !(token == CASE && r.prefix == MATCH)
687-
&& next.token == EMPTY // can be violated for ill-formed programs, e.g. neg/i12605.sala
687+
&& next.token == EMPTY // can be violated for ill-formed programs, e.g. neg/i12605.scala
688688
=>
689689
insert(OUTDENT, offset)
690690
case _ =>

0 commit comments

Comments
 (0)