Skip to content

Commit

Permalink
invert if
Browse files Browse the repository at this point in the history
  • Loading branch information
dawedawe committed Oct 10, 2023
1 parent 362b5d1 commit b88e7e0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/FSharp.Analyzers/TASTCollecting.fs
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,10 @@ module TASTCollecting =
// work around exception from
// https://github.com/dotnet/fsharp/blob/91ff67b5f698f1929f75e65918e998a2df1c1858/src/Compiler/Symbols/Exprs.fs#L1269
if
v.IsCompilerGenerated
&& Set.contains v.CompiledName membersToIgnore
&& e.Type.IsAbbreviation
&& Set.contains e.Type.BasicQualifiedName exprTypesToIgnore
not v.IsCompilerGenerated
|| not (Set.contains v.CompiledName membersToIgnore)
|| not e.Type.IsAbbreviation
|| not (Set.contains e.Type.BasicQualifiedName exprTypesToIgnore)
then
()
else
visitExpr f e
| FSharpImplementationFileDeclaration.InitAction e -> visitExpr f e

0 comments on commit b88e7e0

Please sign in to comment.