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:
a []int = {0, 1};