主页
IDEs Support (IntelliJ Platform) | JetBrains
联系支持服务
社区
登录
Nicolay Mitropolsky
活动总数
53
最后的活动
2023年04月03日 19:07
成员加入日期
2018年04月30日 14:11
关注
0 名用户
关注者数
0 名用户
投票数
1
订阅数
17
活动概览
文章(0)
帖子(0)
评论(35)
按最近的活动排序
最近的活动
投票数
创建于
2018年05月07日 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...
社区
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 票
创建于
2018年05月07日 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...
社区
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 票
创建于
2018年05月03日 10:35
I've actually created an issue in the Kotlin bug tracker for your initial problem. But employing `KtClassOrObject` should work anyway.
社区
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 票
创建于
2018年05月01日 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...
社区
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 票
创建于
2018年04月30日 14:11
Looks like `KtLightClass` will properly work only for JVM-platforms. You could try using `KtClassOrObject` with `getSuperTypeList` instead.
社区
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 票
«
第一页
‹
上一页