主页
IDEs Support (IntelliJ Platform) | JetBrains
联系支持服务
社区
登录
Dmitrii Gridin
活动总数
10
最后的活动
2022年10月06日 12:27
成员加入日期
2021年03月11日 12:53
关注
0 名用户
关注者数
0 名用户
投票数
0
订阅数
5
活动概览
帖子(0)
评论(5)
按最近的活动排序
最近的活动
投票数
创建于
2022年10月06日 12:27
Hi! You can use something like val parameter: KtParameterval element = (parameter.typeReference?.typeElement as KtUserType)?.referenceExpression?.mainReference?.resolve() to find corresponding PSI ...
社区
IntelliJ IDEA Open API and Plugin Development
Kotlin PSI find class based on typeReference
0 票
创建于
2022年08月23日 09:06
Hi,You can use HierarchySearchRequest with searchInheritors() extension. Another way – you can convert `KtClass` to `PsiClass` by `toLightClass()` or `toLightClassWithBuiltinMapping()` extension fu...
社区
IntelliJ IDEA Open API and Plugin Development
Find KtClass inheritors
0 票
已编辑于
2022年03月09日 10:33
Hi Brandon, There are various ways, for example fun function(element: PsiElement, ktElement: KtElement) { element.parents(true).filterIsInstance<KtNamedFunction>().forEach { println(it) ...
社区
IntelliJ IDEA Open API and Plugin Development
Getting declared variables within Kotlin scope
0 票
创建于
2021年12月17日 12:06
You can use Kotlin directly by `org.jetbrains.kotlin.idea.stubindex.KotlinFullClassNameIndex`.Example: KotlinFullClassNameIndex.getInstance().get(fullQualifierName, project, scope) Also, you can w...
社区
IntelliJ IDEA Open API and Plugin Development
PsiElementFinder analogue for Kotlin
0 票
已编辑于
2021年03月11日 12:55
Hi! You can use something like this to get the class name fun findContainingClassName(callExpression: KtCallExpression): String? { val callableDescriptor = callExpression.resolveToCall()?.result...
社区
IntelliJ IDEA Open API and Plugin Development
How to find the class of a function call (KtNameReferenceExpression)
0 票