Skip to content

Commit 658011c

Browse files
Merge pull request #344 from krishnprakash/alert-autofix-12
Potential fix for code scanning alert no. 12: Local scope variable shadows member
2 parents e876db1 + 417105f commit 658011c

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,10 +118,10 @@ 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 location, IEntity parent, Type type)
122122
{
123123
trapFile.type_mention(this, type.TypeRef, parent);
124-
trapFile.type_mention_location(this, Context.CreateLocation(loc));
124+
trapFile.type_mention_location(this, Context.CreateLocation(location));
125125
}
126126

127127
public static TypeMention Create(Context cx, TypeSyntax syntax, IEntity parent, Type type, Microsoft.CodeAnalysis.Location? loc = null)

0 commit comments

Comments
 (0)