arrayInitializer

Coverity Documentation

Version
latest

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

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 arrayInitializer pattern matches code such as the following array initialization:


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