Join Slack
Powered by
Hello. I try to write some plugin. My plugin comun...
# intellij-plugins
c
caffeine
01/07/2020, 12:41 PM
Hello. I try to write some plugin. My plugin comunicate with kotln-plugin. How I can get property annatations using psi?
r
raulraja
01/07/2020, 12:56 PM
We do that kind of stuff in meta
https://github.com/arrow-kt/arrow-meta/blob/master/idea-plugin/src/main/kotlin/arrow/meta/ide/plugins/helloworld/DummyPlugin.kt#L44
raulraja
01/07/2020, 12:57 PM
you can get the sources and trace back to the syntax files where is how it would be in an IDE plugin if you are not using meta
raulraja
01/07/2020, 12:57 PM
For example
https://github.com/arrow-kt/arrow-meta/blob/master/idea-plugin/src/main/kotlin/arrow/meta/ide/dsl/editor/lineMarker/LineMarkerSyntax.kt
m
miha-x64
01/09/2020, 7:08 AM
Well, there's `.annotations`/`.getAnnotations()`
https://github.com/Miha-x64/Mikes_IDEA_extensions/blob/master/src/main/kotlin/net/aquadc/mike/plugin/android/TargetApiInspection.kt#L26
Open in Slack
Previous
Next