Use expressionVisitor

This commit is contained in:
Jeroen Engels 2021-10-27 17:50:44 +02:00
parent a3c6a1a781
commit d47f4440ea

View File

@ -4437,7 +4437,7 @@ visitDeclaration declarationVisitorsOnEnter declarationVisitorsOnExit expression
Declaration.FunctionDeclaration function ->
( [], moduleContext )
|> visitWithListOfVisitors declarationVisitorsOnEnter node
|> accumulate (visitExpression expressionRelatedVisitors (Node.value function.declaration).expression)
|> expressionVisitor (Node.value function.declaration).expression
|> visitWithListOfVisitors declarationVisitorsOnExit node
_ ->