aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/transform/TreeTransform.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2015-05-14 11:48:52 +1000
committerJason Zaugg <jzaugg@gmail.com>2015-05-14 11:56:45 +1000
commit448953056d695c5137b079bb66fc5c6f6cdb9e8a (patch)
treeab7a9c3b1eea2d4c96c1cc0228d54592c6a1de22 /src/dotty/tools/dotc/transform/TreeTransform.scala
parent275b2c37dfbba3fa026c3821742c81b1d16e8db2 (diff)
downloaddotty-448953056d695c5137b079bb66fc5c6f6cdb9e8a.tar.gz
dotty-448953056d695c5137b079bb66fc5c6f6cdb9e8a.tar.bz2
dotty-448953056d695c5137b079bb66fc5c6f6cdb9e8a.zip
Correct a large number of typos.
I scanned the main sources with IntellIJ's spell checker and corrected what showed up.
Diffstat (limited to 'src/dotty/tools/dotc/transform/TreeTransform.scala')
-rw-r--r--src/dotty/tools/dotc/transform/TreeTransform.scala16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/dotty/tools/dotc/transform/TreeTransform.scala b/src/dotty/tools/dotc/transform/TreeTransform.scala
index 0aba1e213..43d77d766 100644
--- a/src/dotty/tools/dotc/transform/TreeTransform.scala
+++ b/src/dotty/tools/dotc/transform/TreeTransform.scala
@@ -241,8 +241,8 @@ object TreeTransforms {
next
}
- private def indexUpdate(prev: Array[Int], changedTansformation: Class[_], index: Int, name: String, copy: Boolean = true) = {
- val isDefinedNow = hasRedefinedMethod(changedTansformation, name)
+ private def indexUpdate(prev: Array[Int], changedTransformation: Class[_], index: Int, name: String, copy: Boolean = true) = {
+ val isDefinedNow = hasRedefinedMethod(changedTransformation, name)
val wasDefinedBefore = prev(index) == index
if (isDefinedNow == wasDefinedBefore) prev
else {
@@ -332,10 +332,10 @@ object TreeTransforms {
this(transformations.map(_.getClass).asInstanceOf[Array[Class[_]]])
}
- def this(prev: NXTransformations, changedTansformation: TreeTransform, transformationIndex: Int, reuse: Boolean = false) = {
+ def this(prev: NXTransformations, changedTransformation: TreeTransform, transformationIndex: Int, reuse: Boolean = false) = {
this()
val copy = !reuse
- val changedTransformationClass = changedTansformation.getClass
+ val changedTransformationClass = changedTransformation.getClass
nxPrepIdent = indexUpdate(prev.nxPrepIdent, changedTransformationClass, transformationIndex, "prepareForIdent", copy)
nxPrepSelect = indexUpdate(prev.nxPrepSelect, changedTransformationClass, transformationIndex, "prepareForSelect", copy)
nxPrepThis = indexUpdate(prev.nxPrepThis, changedTransformationClass, transformationIndex, "prepareForThis", copy)
@@ -400,7 +400,7 @@ object TreeTransforms {
nxTransOther = indexUpdate(prev.nxTransOther, changedTransformationClass, transformationIndex, "transformOther", copy)
}
- /** Those arrays are used as "execution plan" in order to only execute non-tivial transformations\preparations
+ /** Those arrays are used as "execution plan" in order to only execute non-trivial transformations\preparations
* for every integer i array(i) contains first non trivial transformation\preparation on particular tree subtype.
* If no nontrivial transformation are left stored value is greater than transformers.size
*/
@@ -912,7 +912,7 @@ object TreeTransforms {
case _ => tree
}
- final private[TreeTransforms] def goUnamed(tree: Tree, cur: Int)(implicit ctx: Context, info: TransformerInfo): Tree =
+ final private[TreeTransforms] def goUnnamed(tree: Tree, cur: Int)(implicit ctx: Context, info: TransformerInfo): Tree =
tree match {
case tree: This => goThis(tree, info.nx.nxTransThis(cur))
case tree: Super => goSuper(tree, info.nx.nxTransSuper(cur))
@@ -945,7 +945,7 @@ object TreeTransforms {
tree match {
// split one big match into 2 smaller ones
case tree: NameTree => goNamed(tree, cur)
- case tree => goUnamed(tree, cur)
+ case tree => goUnnamed(tree, cur)
}
} else tree
@@ -1128,7 +1128,7 @@ object TreeTransforms {
else {
val expr = transform(tree.expr, mutatedInfo, cur)
val from = tree.from
- // don't thansform the `from` part, as this is not a normal ident, but
+ // don't transform the `from` part, as this is not a normal ident, but
// a pointer to the enclosing method. Transforming this as a normal ident
// can go wrong easily. If a transformation is needed, it should be
// the responsibility of the transformReturn method to handle this also.