Matches an AST pattern against a tree recursively.
Matches an AST pattern against a tree recursively. Patterns are encoded as a partial function from scala.reflect.api.Universe.Tree to a result object; this method returns the result of applying the partial function to all AST subtrees matching it.
The return type as defined by the extraction clause of the search pattern.
The AST tree to search.
The search pattern.
scala.None if no match was found, or a scala.Some containing the result of applying the partial function to the first matching subtree.
Matches an AST pattern against a tree recursively.
Matches an AST pattern against a tree recursively. Patterns are encoded as a partial function from scala.reflect.api.Universe.Tree to a result object; this method returns the result of applying the partial function to the first AST subtree matching it.
The return type as defined by the extraction clause of the search pattern.
The AST tree to search.
The search pattern.
scala.None if no match was found, or a scala.Some containing the result of applying the partial function to the first matching subtree.
Transforms an AST based on the specified pattern.
Transforms an AST based on the specified pattern. The transformation is specified as a partial function from scala.reflect.api.Universe.Tree to a another tree, where every subtree for which the function is defined is replaced with the result of its application.
The AST tree to search.
The search-and-replace pattern.
The transformed tree.
A macro helper mixin that provides simplified, pattern-based AST operations.
The type of the macro context