mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-12-24 10:14:04 +03:00
Make expressionVisitor take a single Node
This commit is contained in:
parent
8bc5c18ba5
commit
7a830e1a06
@ -1317,10 +1317,11 @@ mergeModuleVisitors initialProjectContext maybeModuleContextCreator visitors =
|
||||
fromModuleRuleSchemaToRunnableModuleVisitor : ModuleRuleSchema schemaState moduleContext -> RunnableModuleVisitor moduleContext
|
||||
fromModuleRuleSchemaToRunnableModuleVisitor (ModuleRuleSchema schema) =
|
||||
let
|
||||
expressionVisitor : List (Node Expression) -> ( List (Error {}), moduleContext ) -> ( List (Error {}), moduleContext )
|
||||
expressionVisitor : Node Expression -> ( List (Error {}), moduleContext ) -> ( List (Error {}), moduleContext )
|
||||
expressionVisitor =
|
||||
if shouldVisitExpressions schema then
|
||||
accumulateList (visitExpression expressionVisitorRecord)
|
||||
\node errorsAndContext ->
|
||||
accumulate (visitExpression expressionVisitorRecord node) errorsAndContext
|
||||
|
||||
else
|
||||
\_ errorsAndContext -> errorsAndContext
|
||||
|
Loading…
Reference in New Issue
Block a user