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

Member predicate ConstructorInitializer::getConstructor

Gets the constructor that this initializer call belongs to. For example, the initializer call base() on line 7 belongs to the constructor B on line 6 in

class A
{
    public A() { }
}

class B : A
{
    public B() : base() { }
}
Constructor getConstructor()