user-documentation
user-documentation copied to clipboard
Add signature search
For example, searching for:
(string): stringcould returnStr\uppercase(vec<Ta>): vec<Tb>could returnVec\map(vec<_>): vec<_>should also returnVec\map(dict<_, _>): vec<_>should also returnVec\map(vec<_>): intshould returnC\count
This should have a basic understanding of generics and variance (e.g. if I search for vec<T> as a parameter type that should include Container<T>); _ could be implemented as a universal base type instead of a special-cased subtype
https://www.haskell.org/hoogle/ is comparable
This would likely involve changes to:
- src/api-gen and src/hh-apidocs to include signatures in metadata
- src/search to implement the actual search