mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
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]
|
||||
predicate hasCallable(Callable c) {
|
||||
this.hasMethod(c)
|
||||
this.hasMember(c)
|
||||
or
|
||||
this.hasMember(c.(Accessor).getDeclaration())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user