1 write to PrimaryConstructor
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3000this.PrimaryConstructor = primaryConstructor;
12 references to PrimaryConstructor
Microsoft.CodeAnalysis.CSharp (12)
Symbols\Source\SourceMemberContainerSymbol.cs (12)
1724if (declared.NonTypeMembersWithPartialImplementations.Contains(m => m == (object)member) || declared.PrimaryConstructor == (object)member) 3073declaredMembers.PrimaryConstructor, 3084Debug.Assert(declaredMembers.PrimaryConstructor is object); 3096var compilation = declaredMembers.PrimaryConstructor.DeclaringCompilation; 3417result = declared.PrimaryConstructor; 3438primaryConstructor = declared.PrimaryConstructor; 3482Debug.Assert(declared.PrimaryConstructor is not null); 3508primaryConstructor = declared.PrimaryConstructor; 4250if (declaration.Kind is not (DeclarationKind.Record or DeclarationKind.RecordStruct) && declaredMembersAndInitializers.PrimaryConstructor is null) 4261var ctor = declaredMembersAndInitializers.PrimaryConstructor; 4272Debug.Assert(declaredMembersAndInitializers.PrimaryConstructor?.GetBackingFields().Any() != true); 4311var ctor = declaredMembersAndInitializers.PrimaryConstructor;