mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Merge pull request #20158 from hvitved/csharp/has-callable-constructor
C#: Include constructors in `ValueOrRefType.hasCallable`
This commit is contained in:
@@ -201,7 +201,7 @@ class ValueOrRefType extends Type, Attributable, @value_or_ref_type {
|
|||||||
*/
|
*/
|
||||||
pragma[inline]
|
pragma[inline]
|
||||||
predicate hasCallable(Callable c) {
|
predicate hasCallable(Callable c) {
|
||||||
this.hasMethod(c)
|
this.hasMember(c)
|
||||||
or
|
or
|
||||||
this.hasMember(c.(Accessor).getDeclaration())
|
this.hasMember(c.(Accessor).getDeclaration())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user