reflekt
reflekt copied to clipboard
Support the plugin in Intellij IDEA
Create an Intellij IDEA plugin to make it easier to use the Reflekt plugin: add an inspection for searching the Reflekt and SmartReflekt calls and describe what of the part will be replaced at the compile time.
The main reason for it: it can be difficult for users to understand clearly what of the part from the query will be run at the run-time in the composite queries, e.g.:
SmartReflekt.functions<() -> Boolean>().filter { it.isTopLevel && it.name == "fooBoolean" }.resolve().onEach { it() }
.map { it.toString() }.toSet()
This example will be replaced into something like this:
listOf(list_of_functions).onEach { it() }.map { it.toString() }.toSet()
And the last part will be executed at the run-time