Introduce "Delegate to 'var' property" inspection #KT-26724 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
17d740a373
commit
0fcd1a2072
@@ -417,3 +417,12 @@ fun returnExpressionVisitor(block: (KtReturnExpression) -> Unit) =
|
||||
block(returnExpression)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
fun delegatedSuperTypeEntry(block: (KtDelegatedSuperTypeEntry) -> Unit) =
|
||||
object : KtVisitorVoid() {
|
||||
override fun visitDelegatedSuperTypeEntry(delegatedSuperTypeEntry: KtDelegatedSuperTypeEntry) {
|
||||
super.visitDelegatedSuperTypeEntry(delegatedSuperTypeEntry)
|
||||
block(delegatedSuperTypeEntry)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user