mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
C#: Add extractor support for the allows ref struct general type parameter constraint.
This commit is contained in:
@@ -290,6 +290,9 @@ class TypeParameterConstraints extends Element, @type_parameter_constraints {
|
||||
/** Holds if these constraints include a notnull type constraint. */
|
||||
predicate hasNotNullTypeConstraint() { general_type_parameter_constraints(this, 6) }
|
||||
|
||||
/** Holds if these constraints include a `allows ref struct` constraint. */
|
||||
predicate hasAllowRefLikeTypeConstraint() { general_type_parameter_constraints(this, 7) }
|
||||
|
||||
/** Gets a textual representation of these constraints. */
|
||||
override string toString() { result = "where " + this.getTypeParameter().getName() + ": ..." }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user