Description
File: TUnit.Core.SourceGenerator/Generators/AotConverterGenerator.cs (Line 101)
ScanTestParameters accepts a CancellationToken but only calls ThrowIfCancellationRequested() once at the start of the outer loop. Inner loops processing large method bodies or recursive type hierarchies don't check cancellation.
Impact
Long-running generator operations can't be cancelled responsively.
Suggested Fix
Add periodic cancellationToken.ThrowIfCancellationRequested() calls in inner loops.