mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
C#: Add extractor support for the allows ref struct general type parameter constraint.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user