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