7 references to HasPrimaryConstructor
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Lookup.cs (1)
1307else if (nsOrType is SourceMemberContainerTypeSymbol { HasPrimaryConstructor: true } sourceMemberContainerTypeSymbol)
Binder\Binder_Statements.cs (1)
3756ContainingType is SourceMemberContainerTypeSymbol { HasPrimaryConstructor: true };
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
564if (container is SourceMemberContainerTypeSymbol { HasPrimaryConstructor: true } sourceMemberContainerTypeSymbol)
Symbols\Source\SourceMemberContainerSymbol.cs (2)
260Debug.Assert(typeKind is TypeKind.Struct or TypeKind.Class || !HasPrimaryConstructor); 3351if (!HasPrimaryConstructor)
Symbols\Source\SourceNamedTypeSymbol.cs (1)
821return AttributeLocation.Type | (HasPrimaryConstructor ? AttributeLocation.Method : 0);
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
26Debug.Assert(containingType.HasPrimaryConstructor);