C#: Sprinkle uses of OnlyScaffold to extract less when in overlay mode.

This commit is contained in:
Michael Nebel
2025-09-17 14:30:19 +02:00
parent cab9d81376
commit 61f6512c74
17 changed files with 43 additions and 18 deletions

View File

@@ -31,7 +31,7 @@ namespace Semmle.Extraction.CSharp.Entities
WriteLocationsToTrap(trapFile.operator_location, this, Locations);
}
if (IsSourceDeclaration)
if (IsSourceDeclaration && !Context.OnlyScaffold)
{
var declSyntaxReferences = Symbol.DeclaringSyntaxReferences.Select(s => s.GetSyntax()).ToArray();
foreach (var declaration in declSyntaxReferences.OfType<OperatorDeclarationSyntax>())