Home
IDEs Support (IntelliJ Platform) | JetBrains
Contact Support
Community
Sign in
Nicolay Mitropolsky
Total activity
53
Last activity
April 03, 2023 19:07
Member since
April 30, 2018 14:11
Following
0 users
Followed by
0 users
Votes
1
Subscriptions
17
Activity overview
Articles (0)
Posts (0)
Comments (35)
Sort by recent activity
Recent activity
Votes
Created
May 07, 2018 08:58
You should better operate `KtNamedFunction`, and get annotations via `getAnnotationEntries`. LightMethods were designed to provide in-IDE interop with Java, so yes, they could be not fully support...
Community
IntelliJ IDEA Open API and Plugin Development
(Kotlin PSI) Check if class is a subclass of a particular class, that works for JVM and Common platforms?
0 votes
Created
May 07, 2018 08:32
You could use KtFunction. But it is not very clear how you actually get Light-elements? If you are writing an inspection you'll get Kotlin source elements (KtClassOrObject, KtFunction etc) and to g...
Community
IntelliJ IDEA Open API and Plugin Development
(Kotlin PSI) Check if class is a subclass of a particular class, that works for JVM and Common platforms?
0 votes
Created
May 03, 2018 10:35
I've actually created an issue in the Kotlin bug tracker for your initial problem. But employing `KtClassOrObject` should work anyway.
Community
IntelliJ IDEA Open API and Plugin Development
(Kotlin PSI) Check if class is a subclass of a particular class, that works for JVM and Common platforms?
0 votes
Created
May 01, 2018 05:50
It could be impossible to get `KtClassOrObject` from `getSuperTypeList` but you could rely on `KtTypeReference` and resolve it to a full name. I am sorry I cant provide an exact code right now, b...
Community
IntelliJ IDEA Open API and Plugin Development
(Kotlin PSI) Check if class is a subclass of a particular class, that works for JVM and Common platforms?
0 votes
Created
April 30, 2018 14:11
Looks like `KtLightClass` will properly work only for JVM-platforms. You could try using `KtClassOrObject` with `getSuperTypeList` instead.
Community
IntelliJ IDEA Open API and Plugin Development
(Kotlin PSI) Check if class is a subclass of a particular class, that works for JVM and Common platforms?
0 votes
«
First
‹
Previous