mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
C#: Sprinkle uses of OnlyScaffold to extract less when in overlay mode.
This commit is contained in:
@@ -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>())
|
||||
|
||||
Reference in New Issue
Block a user