Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential fix for code scanning alert no. 11: Local scope variable shadows member #343

Merged
merged 1 commit into from
Mar 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ private TypeMention(Context cx, TypeSyntax syntax, IEntity parent, Type type, Mi
this.loc = loc;
}

private TypeSyntax GetArrayElementType(TypeSyntax type)
private TypeSyntax GetArrayElementType(TypeSyntax typeSyntax)
{
switch (type)
switch (typeSyntax)
{
case ArrayTypeSyntax ats:
return GetArrayElementType(ats.ElementType);
Expand All @@ -37,7 +37,7 @@ private TypeSyntax GetArrayElementType(TypeSyntax type)
case PointerTypeSyntax pts:
return GetArrayElementType(pts.ElementType);
default:
return type;
return typeSyntax;
}
}

Expand Down
Loading