9 references to HasPrimaryConstructor
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Lookup.cs (1)
1409
else if (nsOrType is SourceMemberContainerTypeSymbol {
HasPrimaryConstructor
: true } sourceMemberContainerTypeSymbol)
Binder\Binder_Statements.cs (1)
3836
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
);
3838
if (!
HasPrimaryConstructor
)
3907
Debug.Assert(
HasPrimaryConstructor
);
3925
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
);