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

Module InitializerSplitting

Import path

import semmle.code.csharp.controlflow.internal.Splitting

Predicates

constructorInitializeOrder

Gets the ith member initializer expression for non-static constructor c in compilation comp.

constructorInitializes

Holds if c is a non-static constructor that performs the initialization of a member via assignment init.

getNextListOrder
lastConstructorInitializer

Gets the last member initializer expression for non-static constructor c in compilation comp.

Classes

InitializedInstanceMember

A non-static member with an initializer, for example a field int Field = 0.