Skip to content

Commit a14db7a

Browse files
committed
Fix code review findings
1 parent 423fee3 commit a14db7a

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ public override void Populate(TextWriter trapFile)
114114

115115
if (!symbol.Locations.Any() &&
116116
symbol.ContainingSymbol is IMethodSymbol ms &&
117-
ms.Name == WellKnownMemberNames.TopLevelStatementsEntryPointMethodName)
117+
ms.Name == WellKnownMemberNames.TopLevelStatementsEntryPointMethodName &&
118+
ms.ContainingType.Name == WellKnownMemberNames.TopLevelStatementsEntryPointTypeName)
118119
{
119120
trapFile.param_location(this, Context.CreateLocation());
120121
}

0 commit comments

Comments
 (0)