Skip to content

Commit f8067de

Browse files
Potential fix for code scanning alert no. 14: Local scope variable shadows member
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Phileco <[email protected]>
1 parent bfafb80 commit f8067de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ protected override void Populate(TextWriter trapFile)
118118
}
119119
}
120120

121-
private void Emit(TextWriter trapFile, Microsoft.CodeAnalysis.Location loc, IEntity parent, Type type)
121+
private void Emit(TextWriter trapFile, Microsoft.CodeAnalysis.Location loc, IEntity parent, Type localType)
122122
{
123-
trapFile.type_mention(this, type.TypeRef, parent);
123+
trapFile.type_mention(this, localType.TypeRef, parent);
124124
trapFile.type_mention_location(this, Context.CreateLocation(loc));
125125
}
126126

0 commit comments

Comments
 (0)