alexander-yakushev / compliment

Clojure completion library that you deserve
Eclipse Public License 1.0
355 stars 38 forks source link

Type inference from static method calls #111

Open vemv opened 1 year ago

vemv commented 1 year ago

For e.g. (.| (Thread/currentThread)), we could observe that (Thread/currentThread) returns a Thread, and therefore the completions can be constrained to those of the members of Thread.

I don't have a preliminary idea as for how to implement this.

(Orchard has plenty of Java analysis utils)

vemv commented 1 year ago

Static fields, e.g. System/out have a similar use case and seem easier to implement - would be useful as a taster.