We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 423fee3 commit a14db7aCopy full SHA for a14db7a
csharp/extractor/Semmle.Extraction.CSharp/Entities/Parameter.cs
@@ -114,7 +114,8 @@ public override void Populate(TextWriter trapFile)
114
115
if (!symbol.Locations.Any() &&
116
symbol.ContainingSymbol is IMethodSymbol ms &&
117
- ms.Name == WellKnownMemberNames.TopLevelStatementsEntryPointMethodName)
+ ms.Name == WellKnownMemberNames.TopLevelStatementsEntryPointMethodName &&
118
+ ms.ContainingType.Name == WellKnownMemberNames.TopLevelStatementsEntryPointTypeName)
119
{
120
trapFile.param_location(this, Context.CreateLocation());
121
}
0 commit comments