1 instantiation of SynthesizedRecordCopyCtor
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4941var copyCtor = new SynthesizedRecordCopyCtor(this, memberOffset: members.Count);
11 references to SynthesizedRecordCopyCtor
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Expressions.cs (2)
5133if (resultMember is null || !SynthesizedRecordCopyCtor.HasCopyConstructorSignature(resultMember)) 5173SynthesizedRecordCopyCtor.HasCopyConstructorSignature(constructor);
Binder\Binder_Statements.cs (4)
3767!SynthesizedRecordCopyCtor.IsCopyConstructor(constructorSymbol)) 3883else if (constructor is SynthesizedRecordCopyCtor copyCtor) 4013private static BoundCall? GenerateBaseCopyConstructorInitializer(SynthesizedRecordCopyCtor constructor, BindingDiagnosticBag diagnostics) 4020MethodSymbol? baseConstructor = SynthesizedRecordCopyCtor.FindCopyConstructor(baseType, containingType, ref useSiteInfo);
Symbols\MemberSymbolExtensions.cs (1)
635&& !(methodSymbol is SynthesizedRecordCopyCtor) // A record copy constructor is special, regular initializers are not supposed to be executed by it.
Symbols\Source\SourceMemberContainerSymbol.cs (2)
4941var copyCtor = new SynthesizedRecordCopyCtor(this, memberOffset: members.Count); 5397!(SynthesizedRecordCopyCtor.HasCopyConstructorSignature(method) && method is not SynthesizedPrimaryConstructor))
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\RequiredMembersTests.cs (2)
6533if (copyCtor is SynthesizedRecordCopyCtor) 6595if (copyCtor is SynthesizedRecordCopyCtor)