Base:
property
ContainingType
Microsoft.CodeAnalysis.CSharp.Symbol.ContainingType
37 references to ContainingType
Microsoft.CodeAnalysis.CSharp (37)
Binder\Binder_Statements.cs (1)
1773
TypeSymbol.Equals(sourceProperty.
ContainingType
, fromMember.ContainingType, TypeCompareKind.AllIgnoreOptions) &&
Compiler\MethodCompiler.cs (1)
861
_moduleBeingBuiltOpt.AddSynthesizedDefinition(sourceProperty.
ContainingType
, synthesizedAccessor.GetCciAdapter());
Compiler\SynthesizedMetadataCompiler.cs (1)
111
_moduleBeingBuilt.AddSynthesizedDefinition(sourceProperty.
ContainingType
, synthesizedAccessor.GetCciAdapter());
Symbols\Source\SourcePropertySymbol.cs (6)
521
ContainingType
,
534
ContainingType
,
577
if (type.Type.HasFileLocalTypes() && !
ContainingType
.HasFileLocalTypes())
579
diagnostics.Add(ErrorCode.ERR_FileTypeDisallowedInSignature, Location, type.Type,
ContainingType
);
659
else if (param.Type.HasFileLocalTypes() && !this.
ContainingType
.HasFileLocalTypes())
661
diagnostics.Add(ErrorCode.ERR_FileTypeDisallowedInSignature, Location, param.Type, this.
ContainingType
);
Symbols\Source\SourcePropertySymbolBase.cs (21)
305
if (
ContainingType
.IsInterface && !IsStatic)
801
if (!IsStatic &&
ContainingType
.IsReadOnly)
875
if (
ContainingType
.IsReadOnly)
897
var overriddenProperty = (PropertySymbol)this.GetLeastOverriddenMember(this.
ContainingType
);
907
ContainingType
.IsInterface &&
1021
TypeSymbol.CheckModifierMismatchOnImplementingMember(this.
ContainingType
, this, explicitlyImplementedProperty, isExplicit: true, diagnostics);
1059
Debug.Assert(!IsStatic ||
ContainingType
.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier.
1061
bool isExplicitInterfaceImplementationInInterface = isExplicitInterfaceImplementation &&
ContainingType
.IsInterface;
1082
else if (IsPartial && !
ContainingType
.IsPartial())
1094
else if (IsAbstract &&
ContainingType
.TypeKind == TypeKind.Struct)
1099
else if (IsVirtual &&
ContainingType
.TypeKind == TypeKind.Struct)
1116
else if (
ContainingType
.IsSealed && this.DeclaredAccessibility.HasProtected() && !this.IsOverride)
1118
diagnostics.Add(AccessCheck.GetProtectedMemberInSealedTypeError(
ContainingType
), location, this);
1120
else if (
ContainingType
.IsStatic && !IsStatic)
1389
AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNullableAttributeIfNecessary(this,
ContainingType
.GetNullableContextValue(), type));
1562
CSharpAttributeData.DecodeMemberNotNullAttribute<PropertyWellKnownAttributeData>(
ContainingType
, ref arguments);
1567
CSharpAttributeData.DecodeMemberNotNullWhenAttribute<PropertyWellKnownAttributeData>(
ContainingType
, ref arguments);
1575
if (
ContainingType
.IsInterface || IsExplicitInterfaceImplementation)
1837
else if (this.IsAutoPropertyOrUsesFieldKeyword && type.IsRefLikeOrAllowsRefLikeType() && (this.IsStatic || !this.
ContainingType
.IsRefLikeType))
1847
diagnostics.Add(ErrorFacts.GetStaticClassReturnCode(
ContainingType
.IsInterfaceType()), TypeLocation, type);
1852
diagnostics.Add(ErrorFacts.GetStaticClassParameterCode(
ContainingType
.IsInterfaceType()), TypeLocation, type);
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (4)
62
=>
ContainingType
.GetFirstLocation();
67
ContainingType
,
70
ContainingType
.GetFirstLocation(),
71
(CSharpSyntaxNode)((SourceMemberContainerTypeSymbol)
ContainingType
).SyntaxReferences[0].GetSyntax(),
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (2)
81
var usesInit = !isGet && ShouldUseInit(
ContainingType
);
85
ContainingType
,
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
152
=> _property.
ContainingType
;