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

Member predicate Accessor::getDeclaration

Gets the declaration that this accessor belongs to. For example, both accessors on lines 3 and 4 belong to the property P on line 2 in

class C {
  public int P {
    get;
    set;
  }
}
DeclarationWithAccessors getDeclaration()