mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-12-23 01:32:05 +03:00
Speed up final evaluations
This commit is contained in:
parent
4d60f6e61c
commit
dc417cb770
@ -4912,11 +4912,9 @@ visitCaseBranch expressionRelatedVisitors caseBlockWithRange (( _, caseExpressio
|
||||
-}
|
||||
makeFinalEvaluation : List (context -> List (Error {})) -> ( List (Error {}), context ) -> List (Error {})
|
||||
makeFinalEvaluation finalEvaluationFns ( previousErrors, context ) =
|
||||
ListExtra.orderIndependentAppend
|
||||
(ListExtra.fastConcatMap
|
||||
(\visitor -> visitor context)
|
||||
finalEvaluationFns
|
||||
)
|
||||
ListExtra.orderIndependentConcatMapAppend
|
||||
(\visitor -> visitor context)
|
||||
finalEvaluationFns
|
||||
previousErrors
|
||||
|
||||
|
||||
@ -5023,7 +5021,7 @@ errorsFromFinalEvaluationForProject projectVisitor initialContext contextsPerMod
|
||||
Nothing ->
|
||||
initialContext
|
||||
in
|
||||
ListExtra.fastConcatMap
|
||||
ListExtra.orderIndependentConcatMap
|
||||
(\finalEvaluationFn -> finalEvaluationFn finalContext)
|
||||
projectVisitor.finalEvaluationFns
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user