File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
unison-cli/src/Unison/LSP Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -241,9 +241,11 @@ findSmallestEnclosingNode pos term
241
241
Term. Or l r -> findSmallestEnclosingNode pos l <|> findSmallestEnclosingNode pos r
242
242
Term. Lam a -> findSmallestEnclosingNode pos a
243
243
Term. LetRec _isTop xs y ->
244
- findSmallestEnclosingNode pos y <|> altSum (findSmallestEnclosingNode pos <$> xs)
244
+ altSum (findSmallestEnclosingNode pos <$> xs)
245
+ <|> findSmallestEnclosingNode pos y
245
246
Term. Let _isTop a b ->
246
- findSmallestEnclosingNode pos b <|> findSmallestEnclosingNode pos a
247
+ findSmallestEnclosingNode pos a
248
+ <|> findSmallestEnclosingNode pos b
247
249
Term. Match a cases ->
248
250
findSmallestEnclosingNode pos a
249
251
<|> altSum (cases <&> \ (MatchCase pat grd body) -> ((PatternNode <$> findSmallestEnclosingPattern pos pat) <|> (grd >>= findSmallestEnclosingNode pos) <|> findSmallestEnclosingNode pos body))
You can’t perform that action at this time.
0 commit comments