19 references to IsDefaultValueTypeConstructor
Microsoft.CodeAnalysis.CSharp (19)
Binder\Binder_Expressions.cs (1)
6760
ConstantValue constantValueOpt = (initializerSyntaxOpt == null && method.
IsDefaultValueTypeConstructor
()) ?
CodeGen\EmitExpression.cs (4)
1620
if (call.Method.
IsDefaultValueTypeConstructor
())
1827
Debug.Assert(!method.IsStatic && !method.
IsDefaultValueTypeConstructor
() && method.RequiresInstanceReceiver);
2073
if (call.ReceiverOpt is BoundCall { Method: { RequiresInstanceReceiver: true } method } receiver && !method.
IsDefaultValueTypeConstructor
())
2424
if (constructor.
IsDefaultValueTypeConstructor
())
Compiler\MethodCompiler.cs (4)
942
if (methodSymbol.
IsDefaultValueTypeConstructor
())
1208
!methodSymbol.
IsDefaultValueTypeConstructor
());
1770
Debug.Assert(!sourceMethod.
IsDefaultValueTypeConstructor
());
1867
expressionStatement.Expression is BoundCall { Method: var initMethod } && initMethod.
IsDefaultValueTypeConstructor
();
Emitter\Model\AttributeDataAdapter.cs (1)
38
if (this.AttributeConstructor.
IsDefaultValueTypeConstructor
())
Emitter\Model\PEModuleBuilder.cs (1)
1215
Debug.Assert(!methodSymbol.
IsDefaultValueTypeConstructor
());
Emitter\NoPia\EmbeddedTypesManager.cs (1)
474
Debug.Assert(!method.AdaptedMethodSymbol.
IsDefaultValueTypeConstructor
());
FlowAnalysis\NullableWalker.cs (1)
3972
bool isDefaultValueTypeConstructor = constructor?.
IsDefaultValueTypeConstructor
() == true;
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
1057
node.Constructor.
IsDefaultValueTypeConstructor
())
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (1)
97
if (constructor.
IsDefaultValueTypeConstructor
())
Symbols\MemberSymbolExtensions.cs (2)
429
result = constructor.
IsDefaultValueTypeConstructor
();
466
if (method.
IsDefaultValueTypeConstructor
())
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1079
if (!method.
IsDefaultValueTypeConstructor
())
Symbols\Source\ParameterHelpers.cs (1)
902
return expression.Constructor.
IsDefaultValueTypeConstructor
() && expression.InitializerExpressionOpt == null;