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