Intelij SDK - problem with constructor's parameter processing

Hi, I want to parse such a kotlin class and get information about its dependencies by using Intelij SDK. 
 
class ShapeEndpoint(val service: ShapeService) {
fun getShape(): String {
  return "Shape"
}
}

I have created my own Visitor 

class MyKtVisitor:KtTreeVisitorVoid(){
override fun visitPrimaryConstructor(constructor: KtPrimaryConstructor) {
println()
super.visitPrimaryConstructor(constructor)
}

override fun visitProperty(property: KtProperty) {
super.visitProperty(property)
}
}

I have a problem with obtaining information about "service" property . MyKtVisitor.visitProperty method isn't triggered. I need to get ShapeService PsiClass representation, and its implementation (if it is an interface).  What should I use ?

0

请先登录再写评论。