Base:
property
Constructor
Microsoft.CodeAnalysis.CSharp.BoundObjectCreationExpressionBase.Constructor
1 write to Constructor
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
6351this.Constructor = constructor;
44 references to Constructor
Microsoft.CodeAnalysis.CSharp (44)
Binder\Binder.ValueChecks.cs (2)
4259var constructorSymbol = objectCreation.Constructor; 5006var constructorSymbol = objectCreation.Constructor;
Binder\Binder_Expressions.cs (3)
6790CheckRequiredMembersInObjectInitializer(creation.Constructor, creation.InitializerExpressionOpt?.Initializers ?? default, creation.Syntax, diagnostics); 6968return creation.Update(creation.Constructor, creation.ConstructorsGroup, creation.Arguments, creation.ArgumentNamesOpt, 9247else if (convertedIndex is BoundObjectCreationExpression { Constructor: MethodSymbol constructor, Arguments: { Length: 2 } arguments, ArgsToParamsOpt: { IsDefaultOrEmpty: true }, InitializerExpressionOpt: null } &&
BoundTree\BoundExpression.cs (1)
530get { return this.Constructor; }
CodeGen\EmitExpression.cs (6)
2275if (objCreation.Constructor.IsVararg) 2423MethodSymbol constructor = expression.Constructor; 2467expression.Constructor.OriginalDefinition == (object)this._module.Compilation.GetWellKnownTypeMember(WellKnownMember.System_ReadOnlySpan_T__ctor_Array)) || 2469expression.Constructor.OriginalDefinition == (object)this._module.Compilation.GetWellKnownTypeMember(WellKnownMember.System_ReadOnlySpan_T__ctor_Array_Start_Length))) && 2630var ctor = objCreation.Constructor; 2706var constructor = objCreation.Constructor;
CodeGen\Optimizer.cs (3)
952((BoundObjectCreationExpression)right).Constructor.ParameterCount != 0); 1318var constructor = node.Constructor; 2146return node.Update(node.Constructor, arguments, node.ArgumentNamesOpt, node.ArgumentRefKindsOpt, node.Expanded, node.ArgsToParamsOpt, node.DefaultArguments, node.ConstantValueOpt, initializerExpressionOpt: null, type);
Compilation\CSharpSemanticModel.cs (3)
3664if ((object)boundObjectCreation.Constructor != null) 3666Debug.Assert(boundObjectCreation.ConstructorsGroup.Contains(boundObjectCreation.Constructor)); 3667symbols = OneOrMany.Create<Symbol>(boundObjectCreation.Constructor);
FlowAnalysis\AbstractFlowPass.cs (1)
2063VisitArguments(node.Arguments, node.ArgumentRefKindsOpt, node.Constructor);
FlowAnalysis\DefiniteAssignment.cs (1)
944return !init.Constructor.IsImplicitlyDeclared || init.InitializerExpressionOpt != null;
Generated\BoundNodes.xml.Generated.cs (4)
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)) 11806return node.Update(node.Constructor, node.ConstructorsGroup, arguments, node.ArgumentNamesOpt, node.ArgumentRefKindsOpt, node.Expanded, node.ArgsToParamsOpt, node.DefaultArguments, node.ConstantValueOpt, initializerExpressionOpt, node.WasTargetTyped, type); 14042MethodSymbol constructor = GetUpdatedSymbol(node, node.Constructor); 16481new TreeDumperNode("constructor", node.Constructor, null),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (3)
1055if ((object)node.Constructor == null || 1057node.Constructor.IsDefaultValueTypeConstructor()) 1062var ctor = _bound.ConstructorInfo(node.Constructor);
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
522VisitCall(node.Constructor, null, node.Arguments, node.ArgumentRefKindsOpt, node.ArgumentNamesOpt, node.DefaultArguments, node);
Lowering\Extensions.cs (2)
54return creation.Constructor.ParameterCount != 0; 100return creation.Constructor.ParameterCount == 0;
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
634loweredInput.Constructor, arguments: newArguments.ToImmutableAndFree(), loweredInput.ArgumentNamesOpt, loweredInput.ArgumentRefKindsOpt,
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 (1)
35var constructor = node.Constructor;
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
244Value: BoundObjectCreationExpression { Constructor: var objectCreationConstructor, Arguments: [BoundLocal constructorLocal] }
Lowering\LocalRewriter\LocalRewriter_TupleCreationExpression.cs (1)
100currentCreation.Constructor,
Lowering\MethodToClassRewriter.cs (2)
565if (!TypeSymbol.Equals(rewritten.Type, node.Type, TypeCompareKind.ConsiderEverything2) && (object)node.Constructor != null) 567MethodSymbol ctor = VisitMethodSymbol(node.Constructor);
Lowering\SpillSequenceSpiller.cs (3)
484objectCreationExpression.Constructor.OriginalDefinition == _F.Compilation.GetSpecialTypeMember(SpecialMember.System_ReadOnlySpan_T__ctor_Reference)) 488return objectCreationExpression.Update(objectCreationExpression.Constructor, 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 (2)
703MethodSymbol constructor = boundObjectCreationExpression.Constructor; 1249return (expr.CollectionCreation as BoundObjectCreationExpression)?.Constructor;
Operations\CSharpOperationFactory_Methods.cs (1)
220return DeriveArguments(objectCreation.Constructor,
Symbols\Source\ParameterHelpers.cs (1)
902return expression.Constructor.IsDefaultValueTypeConstructor() && expression.InitializerExpressionOpt == null;