Predicate methodUsesFieldOrProperty
Holds if the declaring type of method m is t and m accesses declaration
d, which is either a field or a property.
Import path
import semmle.code.csharp.metrics.Couplingpredicate methodUsesFieldOrProperty(ValueOrRefType t, Method m, Declaration d)