| Name | Last modified | Size | Description | |
|---|---|---|---|---|
| Parent Directory | - | |||
| TODO.Debian | 2023-02-23 22:02 | 142 | ||
| copyright | 2023-02-23 22:02 | 2.3K | ||
| README.html | 2023-02-23 22:06 | 6.0K | ||
| README.txt | 2023-02-23 22:06 | 1.1K | ||
| changelog.Debian.gz | 2023-02-23 22:06 | 1.2K | ||
ESQuery is a library for querying the AST output by Esprima for patterns of syntax using a CSS style selector system. Check out the demo:
The following selectors are supported:
ForStatement*[attr][attr="foo"] or [attr=123][attr=/foo.*/] or (with flags)
[attr=/foo.*/is][attr!="foo"],
[attr>2], [attr<3],
[attr>=2], or [attr<=3][attr.level2="foo"]FunctionDeclaration > Identifier.id:first-child or :last-child:nth-child(2):nth-last-child(1)ancestor descendantparent > childnode ~ siblingnode + adjacent:not(ForStatement):has(ForStatement):matches([attr] > :first-child, :last-child)!IfStatement > [name="foo"]:statement,
:expression, :declaration,
:function, or :pattern