File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ object Trees {
49
49
* the existing tree transparently, assigning its `tpe` field,
50
50
* provided it was `null` before.
51
51
* - It is impossible to embed untyped trees in typed ones.
52
- * - Typed trees can be embedded untyped ones provided they are rooted
52
+ * - Typed trees can be embedded in untyped ones provided they are rooted
53
53
* in a TypedSplice node.
54
54
* - Type checking an untyped tree should remove all embedded `TypedSplice`
55
55
* nodes.
@@ -856,7 +856,7 @@ object Trees {
856
856
857
857
val cpy : TreeCopier
858
858
859
- /** A class for copying trees. The copy methods avid creating a new tree
859
+ /** A class for copying trees. The copy methods avoid creating a new tree
860
860
* If all arguments stay the same.
861
861
*
862
862
* Note: Some of the copy methods take a context.
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ object TreeTransforms {
42
42
* the general dispatch overhead as opposed to the concrete work done in transformations. So that leaves us with
43
43
* 0.2sec, or roughly 600M processor cycles.
44
44
*
45
- * Now, to the amount of work that needs to be done. The codebase produces of about 250'000 trees after typechecking.
45
+ * Now, to the amount of work that needs to be done. The codebase produces an average of about 250'000 trees after typechecking.
46
46
* Transformations are likely to make this bigger so let's assume 300K trees on average. We estimate to have about 100
47
47
* micro-transformations. Let's say 5 transformation groups of 20 micro-transformations each. (by comparison,
48
48
* scalac has in excess of 20 phases, and most phases do multiple transformations). There are then 30M visits
@@ -208,7 +208,7 @@ object TreeTransforms {
208
208
if (cls.getDeclaredMethods.exists(_.getName == name)) cls != classOf [TreeTransform ]
209
209
else hasRedefinedMethod(cls.getSuperclass, name)
210
210
211
- /** Create an index array `next` of size one larger than teh size of `transforms` such that
211
+ /** Create an index array `next` of size one larger than the size of `transforms` such that
212
212
* for each index i, `next(i)` is the smallest index j such that
213
213
*
214
214
* i <= j
You can’t perform that action at this time.
0 commit comments