Home > @rushstack/tree-pattern > TreePattern
TreePattern class
A fast, lightweight pattern matcher for tree structures such as an Abstract Syntax Tree (AST).
Signature:
export declare class TreePattern
Constructors
Constructor | Modifiers | Description |
|---|---|---|
Constructs a new instance of the |
Methods
Method | Modifiers | Description |
|---|---|---|
Match an input tree. | ||
| Used to specify alternative possible subtrees in the search pattern. | |
| Labels a subtree within the search pattern, so that the matching object can be retrieved. |