mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
C#: Add extractor support for the allows ref struct general type parameter constraint.
This commit is contained in:
@@ -20,3 +20,5 @@ hasUnmanagedTypeConstraint
|
||||
hasNullableRefTypeConstraint
|
||||
hasNotNullConstraint
|
||||
| TypeParameterConstraints.cs:14:20:14:21 | T5 | file://:0:0:0:0 | where T5: ... |
|
||||
hasAllowRefLikeTypeConstraint
|
||||
| TypeParameterConstraints.cs:18:20:18:21 | T7 | file://:0:0:0:0 | where T7: ... |
|
||||
|
||||
@@ -33,3 +33,7 @@ query predicate hasNullableRefTypeConstraint(TypeParameter tp, TypeParameterCons
|
||||
query predicate hasNotNullConstraint(TypeParameter tp, TypeParameterConstraints tpc) {
|
||||
typeParameterContraints(tp, tpc) and tpc.hasNotNullTypeConstraint()
|
||||
}
|
||||
|
||||
query predicate hasAllowRefLikeTypeConstraint(TypeParameter tp, TypeParameterConstraints tpc) {
|
||||
typeParameterContraints(tp, tpc) and tpc.hasAllowRefLikeTypeConstraint()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user