Base:
property
InitializerExpressionOpt
Microsoft.CodeAnalysis.CSharp.BoundObjectCreationExpressionBase.InitializerExpressionOpt
1 write to InitializerExpressionOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
6360this.InitializerExpressionOpt = initializerExpressionOpt;
29 references to InitializerExpressionOpt
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder.ValueChecks.cs (2)
4272var initializerOpt = objectCreation.InitializerExpressionOpt; 5017var initializerExpr = objectCreation.InitializerExpressionOpt;
Binder\Binder_Expressions.cs (3)
6787CheckRequiredMembersInObjectInitializer(creation.Constructor, creation.InitializerExpressionOpt?.Initializers ?? default, creation.Syntax, diagnostics); 6967creation.InitializerExpressionOpt, interfaceType); 9246else if (convertedIndex is BoundObjectCreationExpression { Constructor: MethodSymbol constructor, Arguments: { Length: 2 } arguments, ArgsToParamsOpt: { IsDefaultOrEmpty: true }, InitializerExpressionOpt: null } &&
BoundTree\Expression.cs (1)
29ImmutableArray<BoundNode> IBoundInvalidNode.InvalidNodeChildren => CSharpOperationFactory.CreateInvalidChildrenFromArgumentsExpression(receiverOpt: null, Arguments, InitializerExpressionOpt);
CodeGen\Optimizer.cs (2)
1320Debug.Assert(node.InitializerExpressionOpt == null); 2144Debug.Assert(node.InitializerExpressionOpt == null);
FlowAnalysis\AbstractFlowPass.cs (1)
2064VisitRvalue(node.InitializerExpressionOpt);
FlowAnalysis\DefiniteAssignment.cs (1)
944return !init.Constructor.IsImplicitlyDeclared || init.InitializerExpressionOpt != null;
Generated\BoundNodes.xml.Generated.cs (5)
6381if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(constructor, this.Constructor) || constructorsGroup != this.ConstructorsGroup || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || expanded != this.Expanded || argsToParamsOpt != this.ArgsToParamsOpt || defaultArguments != this.DefaultArguments || constantValueOpt != this.ConstantValueOpt || initializerExpressionOpt != this.InitializerExpressionOpt || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 10485this.Visit(node.InitializerExpressionOpt); 11768BoundObjectInitializerExpressionBase? initializerExpressionOpt = (BoundObjectInitializerExpressionBase?)this.Visit(node.InitializerExpressionOpt); 14009BoundObjectInitializerExpressionBase? initializerExpressionOpt = (BoundObjectInitializerExpressionBase?)this.Visit(node.InitializerExpressionOpt); 16454new TreeDumperNode("initializerExpressionOpt", null, new TreeDumperNode[] { Visit(node.InitializerExpressionOpt, null) }),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
1027return VisitObjectCreationContinued(VisitObjectCreationExpressionInternal(node), node.InitializerExpressionOpt);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
636loweredInput.InitializerExpressionOpt, loweredInput.Type);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (1)
729else if (unloweredExpr is BoundObjectCreationExpression { Constructor: MethodSymbol constructor, Arguments: { Length: 2 } arguments, ArgsToParamsOpt: { IsDefaultOrEmpty: true }, InitializerExpressionOpt: null } &&
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (4)
77rewrittenObjectCreation = node.Update(constructor, rewrittenArguments, argumentRefKindsOpt, MakeObjectCreationInitializerForExpressionTree(node.InitializerExpressionOpt), changeTypeOpt: constructor.ContainingType); 123if (node.InitializerExpressionOpt == null || node.InitializerExpressionOpt.HasErrors) 128return MakeExpressionWithInitializer(node.Syntax, rewrittenObjectCreation, node.InitializerExpressionOpt, node.Type);
Lowering\LocalRewriter\LocalRewriter_TupleCreationExpression.cs (1)
108currentCreation.InitializerExpressionOpt,
Lowering\MethodToClassRewriter.cs (1)
577rewritten.InitializerExpressionOpt,
Lowering\SpillSequenceSpiller.cs (3)
483objectCreationExpression.InitializerExpressionOpt is null && 1414Debug.Assert(node.InitializerExpressionOpt == null); 1417return UpdateExpression(builder, node.Update(node.Constructor, arguments, node.ArgumentNamesOpt, node.ArgumentRefKindsOpt, node.Expanded, node.ArgsToParamsOpt, node.DefaultArguments, node.ConstantValueOpt, node.InitializerExpressionOpt, node.Type));
Operations\CSharpOperationFactory.cs (1)
731IObjectOrCollectionInitializerOperation? initializer = (IObjectOrCollectionInitializerOperation?)Create(boundObjectCreationExpression.InitializerExpressionOpt);
Symbols\Source\ParameterHelpers.cs (1)
902return expression.Constructor.IsDefaultValueTypeConstructor() && expression.InitializerExpressionOpt == null;