CodeQL library for C#
codeql/csharp-all 5.4.12 (changelog, source)
Search

Member predicate MethodCall::getTargetAccessor

Gets the accessor that was used to generate this method, if any. For example, the method call MyExtensions.get_FirstChar(s) on line 9 is generated from the property accessor get_FirstChar on line 3 in

static class MyExtensions {
  extension(string s) {
    public char FirstChar { get { ... } }
  }
}

class A {
  char M(string s) {
    return MyExtensions.get_FirstChar(s);
  }
}
Accessor getTargetAccessor()