18 references to ArrayInitializerStyle
Microsoft.CodeAnalysis.CSharp (18)
CodeGen\EmitArrayInitializer.cs (10)
48
var
initializationStyle = ShouldEmitBlockInitializer(arrayType.ElementType, initExprs);
50
if (initializationStyle ==
ArrayInitializerStyle
.Element)
60
if (initializationStyle ==
ArrayInitializerStyle
.Mixed)
246
private
ArrayInitializerStyle
ShouldEmitBlockInitializer(TypeSymbol elementType, ImmutableArray<BoundExpression> inits)
252
return
ArrayInitializerStyle
.Element;
259
return
ArrayInitializerStyle
.Element;
268
return
ArrayInitializerStyle
.Element;
279
return
ArrayInitializerStyle
.Block;
286
return
ArrayInitializerStyle
.Mixed;
291
return
ArrayInitializerStyle
.Element;
CodeGen\EmitStackAllocInitializer.cs (8)
33
var
initializationStyle = ShouldEmitBlockInitializerForStackAlloc(elementType, initExprs);
34
if (initializationStyle ==
ArrayInitializerStyle
.Element)
114
if (initializationStyle ==
ArrayInitializerStyle
.Mixed && !mixedInitialized)
129
private
ArrayInitializerStyle
ShouldEmitBlockInitializerForStackAlloc(TypeSymbol elementType, ImmutableArray<BoundExpression> inits)
135
return
ArrayInitializerStyle
.Element;
148
return
ArrayInitializerStyle
.Block;
155
return
ArrayInitializerStyle
.Mixed;
160
return
ArrayInitializerStyle
.Element;