9 references to ContainingType
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder.CapturedParametersFinder.cs (1)
45var containingType = primaryConstructor.ContainingType;
FlowAnalysis\DefiniteAssignment.cs (1)
1950Diagnostics.Add((primaryCtor.ContainingType is { IsRecord: true } or { IsRecordStruct: true }) ?
Lowering\LocalRewriter\LocalRewriter.cs (1)
318var result = new BoundFieldAccess(node.Syntax, new BoundThisReference(node.Syntax, primaryCtor.ContainingType), field, ConstantValue.NotAvailable, LookupResultKind.Viable, node.Type);
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (6)
65get { return (IAttributeTargetSymbol)ContainingType; } 75return new OneOrMany<SyntaxList<AttributeListSyntax>>(((SourceNamedTypeSymbol)ContainingType).GetAttributeDeclarations()); 90protected override bool AllowRefOrOut => !(ContainingType is { IsRecord: true } or { IsRecordStruct: true }); 94return ContainingType.IsNullableEnabledForConstructorsAndInitializers(IsStatic); 130if (ContainingType is { IsRecord: true } or { IsRecordStruct: true } || ParameterCount == 0) 175if (ContainingType is { IsRecord: true } or { IsRecordStruct: true })