Skip to content

Commit 1a27588

Browse files
authored
Merge pull request #238 from Numpsy/mem_tweak
Move membersToIgnore/exprTypesToIgnore out of visitDeclaration()
2 parents 3eb293c + 2d9e4e5 commit 1a27588

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/FSharp.Analyzers.SDK/TASTCollecting.fs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,12 +356,13 @@ module TASTCollecting =
356356

357357
and visitObjMember f memb = visitExpr f memb.Body
358358

359-
let rec visitDeclaration f d =
360-
let membersToIgnore = set [ "CompareTo"; "GetHashCode"; "Equals" ]
359+
let membersToIgnore = set [ "CompareTo"; "GetHashCode"; "Equals" ]
361360

362-
let exprTypesToIgnore =
361+
let exprTypesToIgnore =
363362
set [ "Microsoft.FSharp.Core.int"; "Microsoft.FSharp.Core.bool" ]
364363

364+
let rec visitDeclaration f d =
365+
365366
match d with
366367
| FSharpImplementationFileDeclaration.Entity(_e, subDecls) ->
367368
for subDecl in subDecls do

0 commit comments

Comments
 (0)