C#: Clear TRAP stack when calling PopulateGenerics

This commit is contained in:
Tom Hvitved
2023-09-05 21:19:34 +02:00
parent 334502a3de
commit 718e491800
4 changed files with 48 additions and 42 deletions

View File

@@ -153,9 +153,9 @@ namespace Semmle.Extraction
/// Enqueue the given action to be performed later.
/// </summary>
/// <param name="toRun">The action to run.</param>
public void PopulateLater(Action a)
public void PopulateLater(Action a, bool preserveDuplicationKey = true)
{
var key = GetCurrentTagStackKey();
var key = preserveDuplicationKey ? GetCurrentTagStackKey() : null;
if (key is not null)
{
// If we are currently executing with a duplication guard, then the same