Base:
property
ContainingType
Microsoft.CodeAnalysis.CSharp.Symbol.ContainingType
45 references to ContainingType
Microsoft.CodeAnalysis.CSharp (45)
Binder\Binder_Statements.cs (1)
1815
TypeSymbol.Equals(sourceProperty.
ContainingType
, fromMember.ContainingType, TypeCompareKind.AllIgnoreOptions) &&
Compiler\MethodCompiler.cs (1)
899
_moduleBeingBuiltOpt.AddSynthesizedDefinition(sourceProperty.
ContainingType
, synthesizedAccessor.GetCciAdapter());
Compiler\SynthesizedMetadataCompiler.cs (1)
111
_moduleBeingBuilt.AddSynthesizedDefinition(sourceProperty.
ContainingType
, synthesizedAccessor.GetCciAdapter());
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
701
if (this._property.
ContainingType
is SourceMemberContainerTypeSymbol { AnyMemberHasAttributes: true })
Symbols\Source\SourcePropertySymbol.cs (8)
215
if (this.
ContainingType
is SourceMemberContainerTypeSymbol { AnyMemberHasAttributes: true })
531
ContainingType
,
544
ContainingType
,
589
NamedTypeSymbol containingType =
ContainingType
;
672
var containingTypeForFileTypeCheck = this.
ContainingType
;
696
if (
ContainingType
.TypeParameters.Any(static tp => tp.Name == ParameterSymbol.ValueParameterName))
701
if (
ContainingType
.ExtensionParameter is { Name: ParameterSymbol.ValueParameterName })
707
if (this.IsExtensionBlockMember() &&
ContainingType
.ExtensionParameter is { } extensionParameter &&
Symbols\Source\SourcePropertySymbolBase.cs (25)
307
if (
ContainingType
.IsInterface && !IsStatic)
819
if (!IsStatic &&
ContainingType
.IsReadOnly)
898
if (
ContainingType
.IsReadOnly)
920
var overriddenProperty = (PropertySymbol)this.GetLeastOverriddenMember(this.
ContainingType
);
930
ContainingType
.IsInterface &&
1044
TypeSymbol.CheckModifierMismatchOnImplementingMember(this.
ContainingType
, this, explicitlyImplementedProperty, isExplicit: true, diagnostics);
1108
Debug.Assert(!IsStatic ||
ContainingType
.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier.
1110
bool isExplicitInterfaceImplementationInInterface = isExplicitInterfaceImplementation &&
ContainingType
.IsInterface;
1131
else if (IsPartial && !
ContainingType
.IsPartial())
1143
else if (IsAbstract &&
ContainingType
.TypeKind == TypeKind.Struct)
1148
else if (IsVirtual &&
ContainingType
.TypeKind == TypeKind.Struct)
1165
else if (
ContainingType
.IsSealed && this.DeclaredAccessibility.HasProtected() && !this.IsOverride)
1167
diagnostics.Add(AccessCheck.GetProtectedMemberInSealedTypeError(
ContainingType
), location, this);
1169
else if (
ContainingType
is { IsExtension: true, ExtensionParameter.Name: "" } && !IsStatic)
1173
else if (
ContainingType
.IsStatic && !IsStatic)
1442
AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNullableAttributeIfNecessary(this,
ContainingType
.GetNullableContextValue(), type));
1464
AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeExtensionMarkerAttribute(this, ((SourceNamedTypeSymbol)this.
ContainingType
).ExtensionMarkerName));
1625
CSharpAttributeData.DecodeMemberNotNullAttribute<PropertyWellKnownAttributeData>(
ContainingType
, ref arguments);
1630
CSharpAttributeData.DecodeMemberNotNullWhenAttribute<PropertyWellKnownAttributeData>(
ContainingType
, ref arguments);
1643
if (
ContainingType
.IsInterface || IsExplicitInterfaceImplementation)
1915
if (!this.IsStatic && (
ContainingType
.IsRecord ||
ContainingType
.IsRecordStruct) && type.IsPointerOrFunctionPointer())
1920
else if (type.IsRefLikeOrAllowsRefLikeType() && (this.IsStatic || !this.
ContainingType
.IsRefLikeType))
1931
diagnostics.Add(ErrorFacts.GetStaticClassReturnCode(
ContainingType
.IsInterfaceType()), TypeLocation, type);
1936
diagnostics.Add(ErrorFacts.GetStaticClassParameterCode(
ContainingType
.IsInterfaceType()), TypeLocation, type);
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (4)
64
=>
ContainingType
.GetFirstLocation();
69
ContainingType
,
72
ContainingType
.GetFirstLocation(),
73
(CSharpSyntaxNode)((SourceMemberContainerTypeSymbol)
ContainingType
).SyntaxReferences[0].GetSyntax(),
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (2)
84
var usesInit = !isGet && ShouldUseInit(
ContainingType
);
88
ContainingType
,
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
273
=> _property.
ContainingType
;
Symbols\Synthesized\SynthesizedUnionValuePropertySymbol.cs (1)
59
ContainingType
,