1 write to PrimaryConstructor
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2975this.PrimaryConstructor = primaryConstructor;
12 references to PrimaryConstructor
Microsoft.CodeAnalysis.CSharp (12)
Symbols\Source\SourceMemberContainerSymbol.cs (12)
1719if (declared.NonTypeMembers.Contains(m => m == (object)member) || declared.PrimaryConstructor == (object)member) 3038declaredMembers.PrimaryConstructor, 3049Debug.Assert(declaredMembers.PrimaryConstructor is object); 3061var compilation = declaredMembers.PrimaryConstructor.DeclaringCompilation; 3344result = declared.PrimaryConstructor; 3365primaryConstructor = declared.PrimaryConstructor; 3409Debug.Assert(declared.PrimaryConstructor is not null); 3435primaryConstructor = declared.PrimaryConstructor; 4161if (declaration.Kind is not (DeclarationKind.Record or DeclarationKind.RecordStruct) && declaredMembersAndInitializers.PrimaryConstructor is null) 4172var ctor = declaredMembersAndInitializers.PrimaryConstructor; 4183Debug.Assert(declaredMembersAndInitializers.PrimaryConstructor?.GetBackingFields().Any() != true); 4222var ctor = declaredMembersAndInitializers.PrimaryConstructor;