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

Member predicate Accessor::getAnAccessModifier

Gets an explicit access modifier of this accessor, if any. For example, the get accessor on line 3 has no access modifier and the set accessor on line 4 has a private access modifier in

class C {
  public int P {
    private set;
AccessModifier getAnAccessModifier()