Skip to content

Commit

Permalink
remove underscore prefix for used identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
dawedawe committed Oct 10, 2023
1 parent c083a67 commit 362b5d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FSharp.Analyzers/TASTCollecting.fs
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ module TASTCollecting =
| FSharpImplementationFileDeclaration.Entity (_e, subDecls) ->
for subDecl in subDecls do
visitDeclaration f subDecl
| FSharpImplementationFileDeclaration.MemberOrFunctionOrValue (_v, _vs, e) ->
| FSharpImplementationFileDeclaration.MemberOrFunctionOrValue (v, _vs, e) ->
// 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
v.IsCompilerGenerated
&& Set.contains v.CompiledName membersToIgnore
&& e.Type.IsAbbreviation
&& Set.contains e.Type.BasicQualifiedName exprTypesToIgnore
then
Expand Down

0 comments on commit 362b5d1

Please sign in to comment.