esquery icon indicating copy to clipboard operation
esquery copied to clipboard

ECMAScript AST query library.

Results 47 esquery issues
Sort by recently updated
recently updated
newest added

Comments in the AST are stored separately (if at all). They will have to be associated with the nodes somehow, perhaps range would work. The use case is for things...

enhancement

CSS4 defines something called a [reference combinator](http://www.w3.org/TR/selectors4/#idref-combinator) which allows for matching attributes between nodes. It would be a very expensive combinator but could be very useful for things like checking...

enhancement

Adding token matching is useful for a few cases where things like whitespace are important but not represented in the AST. Possible pseudo selectors: - :token(type, value) - token inside...

enhancement

:root would be the same as in the css spec. :relative would allow for an optimization of :matches and :not. It would also allow for a couple other searches.

enhancement

`:has()` expressions do not work with a leading `>`. This is included as the first example is the linked docs for `:has` from the readme (https://drafts.csswg.org/selectors-4/Overview.bs#relational). I am trying to...

Is there a python port of esquery available? I found esprima on pypi, just wondering if there's an equiv for esquery. Happy to write my own & share if not....

Currently, the parsing is a one-way ticket, you can take a string and convert it to a selector object. I propose that we'll have a way to go the other...

Fixes https://github.com/estools/esquery/issues/132, allowing users to write selectors with naked binary operators inside blocks, like `FunctionExpression:has(> [name="foo"])`. This is achieved in two steps: 1. Update to the Peg.js grammar. 2. Handling...

How can I use esquery in conjunction with ts-morph to retrieve nodes from the Abstract Syntax Tree (AST) by query path similar to CSS? For instance, given the query path...

Hi, I had added ppc64le support on Travis-ci and Its been success added and build. Kindly review and merge same. Changes done are added ppc64le arch. The Travis ci build...