1 write to InitializerOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7128this.InitializerOpt = initializerOpt;
26 references to InitializerOpt
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder_Attributes.cs (2)
985if (node.InitializerOpt == null) 1006initializer = VisitArguments(node.InitializerOpt.Initializers, diagnostics, ref attrHasErrors, curArgumentHasErrors);
BoundTree\BoundNode.cs (1)
362this is BoundArrayCreation { Bounds: [BoundLiteral { WasCompilerGenerated: true }], InitializerOpt: BoundArrayInitialization { WasCompilerGenerated: true }, WasCompilerGenerated: true } or
CodeGen\EmitArrayInitializer.cs (2)
473if (wrappedExpression is not BoundArrayCreation { InitializerOpt: { } initializer } ac) 691var initializer = arrayCreation.InitializerOpt;
CodeGen\EmitExpression.cs (2)
2388if (expression.InitializerOpt != null) 2390EmitArrayInitializers(arrayType, expression.InitializerOpt);
FlowAnalysis\AbstractFlowPass.cs (1)
2833VisitRvalue(node.InitializerOpt);
FlowAnalysis\NullableWalker.cs (2)
4613var initialization = node.InitializerOpt; 7074elements = array.InitializerOpt!.Initializers;
FlowAnalysis\NullableWalker.DebugVerifier.cs (1)
110this.Visit(node.InitializerOpt);
Generated\BoundNodes.xml.Generated.cs (5)
7140if (bounds != this.Bounds || initializerOpt != this.InitializerOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 10612this.Visit(node.InitializerOpt); 11939BoundArrayInitialization? initializerOpt = (BoundArrayInitialization?)this.Visit(node.InitializerOpt); 14379BoundArrayInitialization? initializerOpt = (BoundArrayInitialization?)this.Visit(node.InitializerOpt); 16703new TreeDumperNode("initializerOpt", null, new TreeDumperNode[] { Visit(node.InitializerOpt, null) }),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
341if (node.InitializerOpt != null) 345return _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__NewArrayInit, boundType, Expressions(node.InitializerOpt.Initializers));
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
81if (_inExpressionLambda && node.InitializerOpt != null && !arrayType.IsSZArray)
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
1260if (paramsArray is BoundArrayCreation { Bounds: [BoundLiteral] bounds, InitializerOpt: BoundArrayInitialization { Initializers: var elements } initialization } creation)
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
543if (argument is BoundArrayCreation { IsParamsArrayOrCollection: true, InitializerOpt: var initializers })
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
188var initializer = args.InitializerOpt;
Lowering\SpillSequenceSpiller.cs (1)
808var init = (BoundArrayInitialization)VisitExpression(ref builder, node.InitializerOpt);
Operations\CSharpOperationFactory.cs (3)
1207IArrayInitializerOperation? arrayInitializer = (IArrayInitializerOperation?)Create(boundArrayCreation.InitializerOpt); 1211(boundArrayCreation.InitializerOpt?.Syntax == syntax && !boundArrayCreation.InitializerOpt.WasCompilerGenerated);