Remove rendering from super and this expressions and from package directive
This commit is contained in:
committed by
Mikhail Glukhikh
parent
d0e1234434
commit
b57c34fd4d
+12
@@ -82,6 +82,18 @@ class PsiRenderer(private val file: KtFile, analysisResult: AnalysisResult) : Ba
|
||||
element.acceptChildren(this)
|
||||
}
|
||||
|
||||
override fun visitPackageDirective(directive: KtPackageDirective) {
|
||||
//don't resolve package names
|
||||
}
|
||||
|
||||
override fun visitSuperExpression(expression: KtSuperExpression) {
|
||||
//don't resolve super expression
|
||||
}
|
||||
|
||||
override fun visitThisExpression(expression: KtThisExpression) {
|
||||
//don't resolve this expression
|
||||
}
|
||||
|
||||
private fun renderVariableType(variable: KtVariableDeclaration) {
|
||||
val descriptor = bindingContext[VARIABLE, variable]
|
||||
addAnnotation(renderType(descriptor), variable.nameIdentifier!!)
|
||||
|
||||
Reference in New Issue
Block a user