Add reflection API for Builder to consume
Hi!
This sad note is to inform you that I'm deleting the gjs-symbols
plugin from Builder because it appears to not be useful anymore. That could be due to any of the following:
- New module syntax making
Reflect.parse()
useless -
JSON.stringify()
not being smart enough to serialize certain AST nodes in a way that is useful - A whirlwind of other turtles not stacking properly
So I have a proposal that I'd like to run by y'all.
If I could get a reflection API from GJS that handled these things for us and maintained by y'all, the experts, I'd be happy to maintain the Builder side of things that parses that data and integrates it appropriately.
Just as a straw-man, something like:
gjs --reflect=[-|filename] --source=filename
Where --reflect=
takes either stdin
(-
) or a path and --source=
can be used to override {source:...}
in Reflect.parse()
options.
which produces something roughly similar to Reflect.parse()
s object graph. Although I'm down for pretty much anything as long as it's functional.