Browse Source

Ignore null C# debug-step produced nodes

Keep existing modified-node candidates when a transform cannot provide a produced node, matching the IL transform helper and preserving highlight fallback quality.

Assisted-by: OpenCode:openai/gpt-5.5:OpenCode
pull/3847/head
Siegfried Pammer 6 days ago committed by Siegfried Pammer
parent
commit
6ee3462ece
  1. 2
      ICSharpCode.Decompiler/CSharp/Transforms/TransformContext.cs

2
ICSharpCode.Decompiler/CSharp/Transforms/TransformContext.cs

@ -120,7 +120,7 @@ namespace ICSharpCode.Decompiler.CSharp.Transforms @@ -120,7 +120,7 @@ namespace ICSharpCode.Decompiler.CSharp.Transforms
[Conditional("STEP")]
internal void EndStep(AstNode? modifiedNode)
{
if (Stepper.LastStep != null)
if (Stepper.LastStep != null && modifiedNode != null)
{
Stepper.LastStep.ModifiedNode = modifiedNode;
TrackModifiedNode(Stepper.LastStep, modifiedNode, insertFirst: true);

Loading…
Cancel
Save