@@ -16,6 +16,7 @@ object TreeExtensions {
1616 }
1717
1818 implicit class TopStatementExtension (thisTerm : Term ) {
19+
1920 /** Returns the statement this tree is part of.
2021 * Recursively going up the tree until a full statement is found.
2122 */
@@ -32,6 +33,7 @@ object TreeExtensions {
3233 *
3334 */
3435 private object PartialStatement {
36+
3537 /**
3638 * @return A Some of the parent if the given term is a partial statement,
3739 * else a None if the given term is a full statement
@@ -49,6 +51,7 @@ object TreeExtensions {
4951 *
5052 */
5153 private object ParentIsPatternMatch {
54+
5255 /** Go up the tree, until a Case is found, then go up until a `Term` is found
5356 *
5457 */
@@ -68,6 +71,7 @@ object TreeExtensions {
6871 }
6972
7073 implicit class FindExtension (thisTree : Tree ) {
74+
7175 /** Searches for the given statement in the tree
7276 *
7377 * @param toFind Statement to find
@@ -79,6 +83,7 @@ object TreeExtensions {
7983 }
8084
8185 implicit class TransformOnceExtension (thisTree : Tree ) {
86+
8287 /** The normal <code>Tree#transform</code> recursively transforms the tree each time a transformation is applied
8388 * This causes a StackOverflowError when the transformation that is searched for is also present in the newly transformed tree. <br>
8489 * This function does not recursively go into the transformed tree
@@ -96,6 +101,7 @@ object TreeExtensions {
96101 }
97102
98103 implicit class TreeIsInExtension (thisTree : Tree ) {
104+
99105 /** Returns if a tree is contained in an tree of type `[T]`.
100106 * Recursively going up the tree until an annotation is found.
101107 */
@@ -104,6 +110,7 @@ object TreeExtensions {
104110 }
105111
106112 implicit class IsEqualExtension (thisTree : Tree ) {
113+
107114 /** Structural equality for Trees
108115 */
109116 final def isEqual (other : Tree ): Boolean = thisTree == other || thisTree.structure == other.structure
0 commit comments