Skip to content

Commit

Permalink
Only disallow removal when on same line (#16285)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianrourkeboll authored Nov 15, 2023
1 parent 9e357ca commit cc90116
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Compiler/Service/ServiceAnalysis.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1319,7 +1319,10 @@ module UnnecessaryParentheses =
->
ValueNone

| SynExpr.Sequential(expr1 = SynExpr.Paren(expr = Is inner)), Dangling.Problematic _ -> ValueNone
| SynExpr.Sequential (expr1 = SynExpr.Paren(expr = Is inner); expr2 = expr2), Dangling.Problematic _ when
problematic inner.Range expr2.Range
->
ValueNone

| SynExpr.Paren _, SynExpr.Typed _
| SynExpr.Quote _, SynExpr.Typed _
Expand Down

0 comments on commit cc90116

Please sign in to comment.