C#: Add predicate isRef to the CIL Field class.

This commit is contained in:
Michael Nebel
2023-01-26 11:23:29 +01:00
parent db047c2c4a
commit 2be090bb91

View File

@@ -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) }
}