9 references to SynthesizedRecordCopyCtor
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Expressions.cs (2)
5068
if (resultMember is null || !
SynthesizedRecordCopyCtor
.HasCopyConstructorSignature(resultMember))
5108
SynthesizedRecordCopyCtor
.HasCopyConstructorSignature(constructor);
Binder\Binder_Statements.cs (4)
3725
!
SynthesizedRecordCopyCtor
.IsCopyConstructor(constructorSymbol))
3841
else if (constructor is
SynthesizedRecordCopyCtor
copyCtor)
3971
private static BoundCall? GenerateBaseCopyConstructorInitializer(
SynthesizedRecordCopyCtor
constructor, BindingDiagnosticBag diagnostics)
3978
MethodSymbol? baseConstructor =
SynthesizedRecordCopyCtor
.FindCopyConstructor(baseType, containingType, ref useSiteInfo);
Symbols\MemberSymbolExtensions.cs (1)
400
&& !(methodSymbol is
SynthesizedRecordCopyCtor
) // A record copy constructor is special, regular initializers are not supposed to be executed by it.
Symbols\Source\SourceMemberContainerSymbol.cs (2)
4353
var
copyCtor = new SynthesizedRecordCopyCtor(this, memberOffset: members.Count);
4805
!(
SynthesizedRecordCopyCtor
.HasCopyConstructorSignature(method) && method is not SynthesizedPrimaryConstructor))