manifold-systems / manifold

Manifold is a Java compiler plugin, its features include Metaprogramming, Properties, Extension Methods, Operator Overloading, Templates, a Preprocessor, and more.
http://manifold.systems/
Apache License 2.0
2.43k stars 125 forks source link

IntelliJ plugin: Support mixed Java/Kotlin modules with Manifold extension methods #310

Open rsmckinney opened 3 years ago

rsmckinney commented 3 years ago

Manifold extension methods are exposed to Kotlin source in Java/Kotlin mixed modules. The IntelliJ API does not support augmentation of types in a language exclusive way, it's all or nothing. Try to work around this limitation particularly where Kotlin resolves against the extension methods. Perhaps hook into the Kotlin IJ resolver the way we hook into the Java one?