gkz / grasp-squery Goto Github PK
View Code? Open in Web Editor NEWA query engine for Grasp - use CSS style selectors to query your JavaScript AST
Home Page: http://graspjs.com/docs/squery
License: Other
A query engine for Grasp - use CSS style selectors to query your JavaScript AST
Home Page: http://graspjs.com/docs/squery
License: Other
we have for an attribute existing, but not for an attribute not existing
eg. [!attr]
"identifier" is too general as it includes stuff like property names
currently have to use
:not(member[computed=false]) > #n
to exclude that
also,
potentially use scope information as well? https://github.com/Constellation/escope
grasp-squery fails when used with acorn-object-spread.
TypeError: Cannot read property 'start' of undefined
at node_modules/grasp-squery/lib/common.js:17:40
at visitPre (node_modules/grasp-squery/lib/common.js:36:5)
at visitPre (node_modules/grasp-squery/lib/common.js:49:9)
at visitPre (node_modules/grasp-squery/lib/common.js:59:11)
at visitPre (node_modules/grasp-squery/lib/common.js:59:11)
at new Cache (node_modules/grasp-squery/lib/common.js:10:5)
at Object.queryParsed (node_modules/grasp-squery/lib/index.js:9:64)
at search (node_modules/grasp/lib/index.js:216:29)
at run (node_modules/grasp/lib/index.js:397:7)
Code to reproduce attached.
squery_fail.txt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.