Base:
property
ContainingType
Microsoft.CodeAnalysis.CSharp.Symbols.NamedTypeSymbol.ContainingType
21 references to ContainingType
Microsoft.CodeAnalysis.CSharp (21)
Symbols\Source\ExtensionGroupingInfo.cs (1)
731
NamedTypeSymbol? containingType = ExtensionMarkerTypes[0].UnderlyingExtensions[0].
ContainingType
;
Symbols\Source\ImplicitNamedTypeSymbol.cs (1)
98
get { return
ContainingType
?.AreLocalsZeroed ?? ContainingModule.AreLocalsZeroed; }
Symbols\Source\SourceMemberContainerSymbol.cs (7)
264
var containingType = this.
ContainingType
;
267
diagnostics.Add(AccessCheck.GetProtectedMemberInSealedTypeError(
ContainingType
), GetFirstLocation(), this);
471
if (
ContainingType
!.Locations.Length == 1 ||
ContainingType
.IsPartial())
916
for (Symbol? container = this.
ContainingType
; !(container is null); container = container.ContainingType)
1418
if (member.Kind != SymbolKind.Method && this.
ContainingType
is { } containingType)
1945
if ((object?)
ContainingType
!= null)
Symbols\Source\SourceNamedTypeSymbol.cs (9)
107
return new SourceNamedTypeSymbol(
ContainingType
, declaration, BindingDiagnosticBag.Discarded, newData);
221
if (!ReferenceEquals(
ContainingType
, null))
223
var tpEnclosing =
ContainingType
.FindEnclosingTypeParameter(name);
1480
return data?.HasSkipLocalsInitAttribute != true && (
ContainingType
?.AreLocalsZeroed ?? ContainingModule.AreLocalsZeroed);
1998
if (IsExtension &&
ContainingType
?.IsExtension != true)
2001
if (
ContainingType
is null || !
ContainingType
.IsStatic ||
ContainingType
.Arity != 0 ||
ContainingType
.ContainingType is not null)
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
43
if ((object)
ContainingType
!= null &&
46
var tmp =
ContainingType
.BaseTypeNoUseSiteDiagnostics;
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (1)
1037
var containingType = this.
ContainingType
;