C#: Only extract the unbound locations for constructors, destructors and user defined operators and use this in the QL code.

This commit is contained in:
Michael Nebel
2025-10-09 14:03:14 +02:00
parent 02428fc467
commit 89681a49e6
4 changed files with 24 additions and 7 deletions

View File

@@ -26,7 +26,10 @@ namespace Semmle.Extraction.CSharp.Entities
returnType.TypeRef,
(UserOperator)OriginalDefinition);
WriteLocationsToTrap(trapFile.operator_location, this, Locations);
if (Context.ExtractLocation(Symbol))
{
WriteLocationsToTrap(trapFile.operator_location, this, Locations);
}
if (IsSourceDeclaration)
{