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