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