arrayInitializer

Coverity Documentation

Version
latest

Matches the initializations of linear arrays that use a list enclosed in braces (curly brackets).

This pattern only matches nodes of type initializer.

Properties

arrayInitializer produces a record that contains the following property:

Name Type Description
variableInitializerList list<initializer> A list of the elements in the curly braces

Inherits properties from:

Example

The CodeXM pattern arrayInitializer matches C# code such as the following array initialization:


C# code follows
    int[] a = {0, 1};