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