arrayInitializer

Coverity Documentation

Version
latest

Matches array initialization that uses curly braces.

This pattern only matches nodes of type initializer.

Properties

arrayInitiializer produces a record that contains the following property:

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

Inherits properties from:

Example

arrayInitializer would match an array initialization that used this format:


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