C#: Add extractor support for the allows ref struct general type parameter constraint.

This commit is contained in:
Michael Nebel
2025-01-02 15:02:14 +01:00
parent d9158c8cd5
commit 41dc4a5503
4 changed files with 12 additions and 0 deletions

View File

@@ -43,6 +43,9 @@ namespace Semmle.Extraction.CSharp.Entities
if (Symbol.HasNotNullConstraint)
trapFile.general_type_parameter_constraints(this, 6);
if (Symbol.AllowsRefLikeType)
trapFile.general_type_parameter_constraints(this, 7);
foreach (var abase in Symbol.GetAnnotatedTypeConstraints())
{
var t = Type.Create(Context, abase.Symbol);