FIR: rename goToNestedDeclarations -> visitNestedElements

This commit is contained in:
Ilya Kirillov
2021-04-16 18:04:41 +02:00
parent eed143d17b
commit ea233cddf8
4 changed files with 12 additions and 12 deletions
@@ -18,11 +18,11 @@ internal open class FirIdeDiagnosticVisitor(
) : CheckerRunningDiagnosticCollectorVisitor(context, components) {
private val beforeElementDiagnosticCollectionHandler = context.session.beforeElementDiagnosticCollectionHandler
override fun goToNestedDeclarations(element: FirElement) {
override fun visitNestedElements(element: FirElement) {
if (element is FirDeclaration) {
beforeElementDiagnosticCollectionHandler?.beforeGoingNestedDeclaration(element, context)
}
super.goToNestedDeclarations(element)
super.visitNestedElements(element)
}
override fun runComponents(element: FirElement) {
@@ -31,7 +31,7 @@ private class ContextCollectingDiagnosticCollectorVisitor private constructor(
}
}
override fun goToNestedDeclarations(element: FirElement) {
override fun visitNestedElements(element: FirElement) {
if (element is FirDeclaration) {
contextCollector.nextStep()
} else {