@@ -667,12 +667,12 @@ expressionVisitor node moduleContext =
667
667
fixes : Dict ( ModuleNameAsString , ConstructorName ) ( Dict ModuleNameAsString ( List Fix ))
668
668
fixes =
669
669
Set . foldl
670
- ( \ (( moduleName , _ ) as key) dict ->
670
+ ( \ key dict ->
671
671
Dict . update
672
672
key
673
673
( \ existingValues ->
674
674
updateToAdd
675
- moduleName
675
+ moduleContext . currentModuleName
676
676
( Fix . replaceRangeBy ( Node . range node) replacement)
677
677
( Maybe . withDefault Dict . empty existingValues)
678
678
|> Just
@@ -716,12 +716,12 @@ expressionVisitor node moduleContext =
716
716
fixes : Dict ( ModuleNameAsString , ConstructorName ) ( Dict ModuleNameAsString ( List Fix ))
717
717
fixes =
718
718
Set . foldl
719
- ( \ (( moduleName , _ ) as key) dict ->
719
+ ( \ key dict ->
720
720
Dict . update
721
721
key
722
722
( \ existingValues ->
723
723
updateToAdd
724
- moduleName
724
+ moduleContext . currentModuleName
725
725
( Fix . replaceRangeBy ( Node . range node) replacement)
726
726
( Maybe . withDefault Dict . empty existingValues)
727
727
|> Just
@@ -772,7 +772,7 @@ caseBranchEnterVisitor caseExpression ( casePattern, body ) moduleContext =
772
772
fixes : Dict ( ModuleNameAsString , ConstructorName ) ( Dict ModuleNameAsString ( List Fix ))
773
773
fixes =
774
774
Set . foldl
775
- ( \ (( moduleName , _ ) as key) acc ->
775
+ ( \ key acc ->
776
776
let
777
777
fix : Fix
778
778
fix =
@@ -785,7 +785,7 @@ caseBranchEnterVisitor caseExpression ( casePattern, body ) moduleContext =
785
785
key
786
786
( \ existingValues ->
787
787
updateToAdd
788
- moduleName
788
+ moduleContext . currentModuleName
789
789
fix
790
790
( Maybe . withDefault Dict . empty existingValues)
791
791
|> Just
0 commit comments