7 references to SynthesizedRecordCopyCtor
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Expressions.cs (2)
5122if (resultMember is null || !SynthesizedRecordCopyCtor.HasCopyConstructorSignature(resultMember)) 5162SynthesizedRecordCopyCtor.HasCopyConstructorSignature(constructor);
Binder\Binder_Statements.cs (4)
3746!SynthesizedRecordCopyCtor.IsCopyConstructor(constructorSymbol)) 3862else if (constructor is SynthesizedRecordCopyCtor copyCtor) 3992private static BoundCall? GenerateBaseCopyConstructorInitializer(SynthesizedRecordCopyCtor constructor, BindingDiagnosticBag diagnostics) 3999MethodSymbol? baseConstructor = SynthesizedRecordCopyCtor.FindCopyConstructor(baseType, containingType, ref useSiteInfo);
Symbols\MemberSymbolExtensions.cs (1)
572&& !(methodSymbol is SynthesizedRecordCopyCtor) // A record copy constructor is special, regular initializers are not supposed to be executed by it.