Skip to content

Commit b320914

Browse files
Merge pull request #342 from krishnprakash/alert-autofix-10
Potential fix for code scanning alert no. 10: Local scope variable shadows member
2 parents a01af8a + 36422d0 commit b320914

File tree

1 file changed

+2
-2
lines changed
  • csharp/extractor/Semmle.Extraction.CSharp/Entities

1 file changed

+2
-2
lines changed

csharp/extractor/Semmle.Extraction.CSharp/Entities/Property.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public override void Populate(TextWriter trapFile)
4444
PopulateNullability(trapFile, Symbol.GetAnnotatedType());
4545
PopulateRefKind(trapFile, Symbol.RefKind);
4646

47-
var type = Type;
48-
trapFile.properties(this, Symbol.GetName(), ContainingType!, type.TypeRef, Create(Context, Symbol.OriginalDefinition));
47+
var propertyType = Type;
48+
trapFile.properties(this, Symbol.GetName(), ContainingType!, propertyType.TypeRef, Create(Context, Symbol.OriginalDefinition));
4949

5050
var getter = BodyDeclaringSymbol.GetMethod;
5151
var setter = BodyDeclaringSymbol.SetMethod;

0 commit comments

Comments
 (0)