9 references to HasPrimaryConstructor
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Lookup.cs (1)
1353
else if (nsOrType is SourceMemberContainerTypeSymbol {
HasPrimaryConstructor
: true } sourceMemberContainerTypeSymbol)
Binder\Binder_Statements.cs (1)
3835
ContainingType is SourceMemberContainerTypeSymbol {
HasPrimaryConstructor
: true };
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
564
if (container is SourceMemberContainerTypeSymbol {
HasPrimaryConstructor
: true } sourceMemberContainerTypeSymbol)
Symbols\Source\SourceMemberContainerSymbol.cs (4)
264
Debug.Assert(typeKind is TypeKind.Struct or TypeKind.Class || !
HasPrimaryConstructor
);
3833
if (!
HasPrimaryConstructor
)
3902
Debug.Assert(
HasPrimaryConstructor
);
3920
Debug.Assert(
HasPrimaryConstructor
);
Symbols\Source\SourceNamedTypeSymbol.cs (1)
831
return AttributeLocation.Type | (
HasPrimaryConstructor
? AttributeLocation.Method : 0);
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
27
Debug.Assert(containingType.
HasPrimaryConstructor
);