Base:
property
ContainingType
Microsoft.CodeAnalysis.CSharp.Symbol.ContainingType
45 references to ContainingType
Microsoft.CodeAnalysis.CSharp (45)
Binder\Binder_Statements.cs (1)
1816
TypeSymbol.Equals(sourceProperty.
ContainingType
, fromMember.ContainingType, TypeCompareKind.AllIgnoreOptions) &&
Compiler\MethodCompiler.cs (1)
903
_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)
308
if (
ContainingType
.IsInterface && !IsStatic)
820
if (!IsStatic &&
ContainingType
.IsReadOnly)
899
if (
ContainingType
.IsReadOnly)
921
var overriddenProperty = (PropertySymbol)this.GetLeastOverriddenMember(this.
ContainingType
);
931
ContainingType
.IsInterface &&
1068
TypeSymbol.CheckModifierMismatchOnImplementingMember(this.
ContainingType
, this, explicitlyImplementedProperty, isExplicit: true, diagnostics);
1126
Debug.Assert(!IsStatic ||
ContainingType
.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier.
1128
bool isExplicitInterfaceImplementationInInterface = isExplicitInterfaceImplementation &&
ContainingType
.IsInterface;
1149
else if (IsPartial && !
ContainingType
.IsPartial())
1161
else if (IsAbstract &&
ContainingType
.TypeKind == TypeKind.Struct)
1166
else if (IsVirtual &&
ContainingType
.TypeKind == TypeKind.Struct)
1183
else if (
ContainingType
.IsSealed && this.DeclaredAccessibility.HasProtected() && !this.IsOverride)
1185
diagnostics.Add(AccessCheck.GetProtectedMemberInSealedTypeError(
ContainingType
), location, this);
1187
else if (
ContainingType
is { IsExtension: true, ExtensionParameter.Name: "" } && !IsStatic)
1191
else if (
ContainingType
.IsStatic && !IsStatic)
1460
AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNullableAttributeIfNecessary(this,
ContainingType
.GetNullableContextValue(), type));
1482
AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeExtensionMarkerAttribute(this, ((SourceNamedTypeSymbol)this.
ContainingType
).ExtensionMarkerName));
1643
CSharpAttributeData.DecodeMemberNotNullAttribute<PropertyWellKnownAttributeData>(
ContainingType
, ref arguments);
1648
CSharpAttributeData.DecodeMemberNotNullWhenAttribute<PropertyWellKnownAttributeData>(
ContainingType
, ref arguments);
1661
if (
ContainingType
.IsInterface || IsExplicitInterfaceImplementation)
1933
if (!this.IsStatic && (
ContainingType
.IsRecord ||
ContainingType
.IsRecordStruct) && type.IsPointerOrFunctionPointer())
1938
else if (type.IsRefLikeOrAllowsRefLikeType() && (this.IsStatic || !this.
ContainingType
.IsRefLikeType))
1949
diagnostics.Add(ErrorFacts.GetStaticClassReturnCode(
ContainingType
.IsInterfaceType()), TypeLocation, type);
1954
diagnostics.Add(ErrorFacts.GetStaticClassParameterCode(
ContainingType
.IsInterfaceType()), TypeLocation, type);
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (4)
65
=>
ContainingType
.GetFirstLocation();
70
ContainingType
,
73
ContainingType
.GetFirstLocation(),
74
(CSharpSyntaxNode)((SourceMemberContainerTypeSymbol)
ContainingType
).SyntaxReferences[0].GetSyntax(),
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (2)
85
var usesInit = !isGet && ShouldUseInit(
ContainingType
);
89
ContainingType
,
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
273
=> _property.
ContainingType
;
Symbols\Synthesized\SynthesizedUnionValuePropertySymbol.cs (1)
60
ContainingType
,