You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or. in the esquery demo, enter 1 as code, :has(Literal) as selector. It finds "Program", "ExpressionStatement", and"Literal".
I was expecting that selectors in :has() can match only descendants of the node, but in the above examples :has(Literal) matches a Literal node. Is this the intended behavior?
The text was updated successfully, but these errors were encountered:
esquery v1.4.0
Or. in the esquery demo, enter
1
as code,:has(Literal)
as selector. It finds"Program"
,"ExpressionStatement"
, and"Literal"
.I was expecting that selectors in
:has()
can match only descendants of the node, but in the above examples:has(Literal)
matches aLiteral
node. Is this the intended behavior?The text was updated successfully, but these errors were encountered: