brandon1024 / cortado.vim

Import Java classes by name, find unused import statemens, and many other goodies!
MIT License
2 stars 0 forks source link

respect class visibility #17

Open brandon1024 opened 2 years ago

brandon1024 commented 2 years ago

When importing a class/enum/method, the plugin may recommend imports that are not visible to the current class. For instance, importing a package private class from another package.

I'm not sure how we'll accomplish this. Package-private classes would be easy enough, but private and protected would be very difficult IMO. Hmm. I'll have to think about this bit more.

brandon1024 commented 1 year ago

There's not enough information in a tag file to do this without parsing the source file ourselves. That's not ideal. I'll put this on the backburner for now.