11 references to PrimaryConstructor
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder_Expressions.cs (2)
454
if (field is { IsStatic: false, RefKind: RefKind.None, ContainingSymbol: SourceMemberContainerTypeSymbol {
PrimaryConstructor
: { } primaryConstructor } } &&
1731
ContainingType is SourceMemberContainerTypeSymbol { IsRecord: false, IsRecordStruct: false,
PrimaryConstructor
: SynthesizedPrimaryConstructor { ParameterCount: not 0 } primaryConstructor, OriginalDefinition: var containingTypeDefinition } &&
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
1252
var primaryConstructor = type.
PrimaryConstructor
;
Binder\WithPrimaryConstructorParametersBinder.cs (1)
52
if (_type is SourceMemberContainerTypeSymbol {
PrimaryConstructor
: { ParameterCount: not 0 } primaryCtor })
Compilation\CSharpSemanticModel.cs (1)
5238
if (type is SourceMemberContainerTypeSymbol {
PrimaryConstructor
: { } primaryConstructor }
FlowAnalysis\DefiniteAssignment.cs (3)
340
case MethodSymbol { IsStatic: false, ContainingSymbol: SourceMemberContainerTypeSymbol {
PrimaryConstructor
: { } primaryConstructor } } and
356
case (FieldSymbol or PropertySymbol) and { IsStatic: false, ContainingSymbol: SourceMemberContainerTypeSymbol {
PrimaryConstructor
: { } primaryConstructor } }:
1840
containing is SourceMemberContainerTypeSymbol {
PrimaryConstructor
: { } primaryConstructor } &&
FlowAnalysis\ReadWriteWalker.cs (1)
105
containing is SourceMemberContainerTypeSymbol {
PrimaryConstructor
: { } primaryConstructor } &&
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2792
PrimaryConstructor
is { } primaryConstructor && primaryConstructor.GetCapturedParameters().Any() &&
Symbols\Source\SourcePropertySymbolBase.cs (1)
766
Debug.Assert(_containingType.
PrimaryConstructor
is { });