mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
C#: Add predicate isRef to the CIL Field class.
This commit is contained in:
@@ -152,4 +152,7 @@ class Field extends DotNet::Field, Variable, Member, CustomModifierReceiver, @ci
|
||||
override ValueOrRefType getDeclaringType() { cil_field(this, result, _, _) }
|
||||
|
||||
override Location getLocation() { result = this.getDeclaringType().getLocation() }
|
||||
|
||||
/** Holds if this declaration is `ref`. */
|
||||
predicate isRef() { cil_type_annotation(this, 32) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user