cljs / api

ClojureScript API parser
http://cljs.github.io/api/
MIT License
193 stars 23 forks source link

relate types and protocols #176

Closed shaunlebron closed 5 years ago

shaunlebron commented 5 years ago

I was wanting to know what deref and realized? work with. To find out, you have to find anything that implements IDeref and IPending protocols, respectively. There's no easy way to find this right now.

IDeref implemented by:

IPending implemented by:

It should be easy to just read through symbols each of the following forms to extract referenced protocols and types:

The order of parsing might be tricky. Might require two passes so that both types and protocols can reference the other.

shaunlebron commented 5 years ago

done