FIR: rename goToNestedDeclarations -> visitNestedElements
This commit is contained in:
+2
-2
@@ -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) {
|
||||
|
||||
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user