1 write to PrimaryConstructor
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2989this.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) 3052declaredMembers.PrimaryConstructor, 3063Debug.Assert(declaredMembers.PrimaryConstructor is object); 3075var compilation = declaredMembers.PrimaryConstructor.DeclaringCompilation; 3358result = declared.PrimaryConstructor; 3379primaryConstructor = declared.PrimaryConstructor; 3423Debug.Assert(declared.PrimaryConstructor is not null); 3449primaryConstructor = declared.PrimaryConstructor; 4175if (declaration.Kind is not (DeclarationKind.Record or DeclarationKind.RecordStruct) && declaredMembersAndInitializers.PrimaryConstructor is null) 4186var ctor = declaredMembersAndInitializers.PrimaryConstructor; 4197Debug.Assert(declaredMembersAndInitializers.PrimaryConstructor?.GetBackingFields().Any() != true); 4236var ctor = declaredMembersAndInitializers.PrimaryConstructor;