CodeQL library for C#
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.

InitializerSplit

A split for non-static member initializers belonging to a given non-static constructor. For example, in