Base:
property
ContainingType
Microsoft.CodeAnalysis.CSharp.Symbol.ContainingType
43 references to ContainingType
Microsoft.CodeAnalysis.CSharp (43)
Binder\Binder_Statements.cs (1)
1785TypeSymbol.Equals(sourceProperty.ContainingType, fromMember.ContainingType, TypeCompareKind.AllIgnoreOptions) &&
Compiler\MethodCompiler.cs (1)
876_moduleBeingBuiltOpt.AddSynthesizedDefinition(sourceProperty.ContainingType, synthesizedAccessor.GetCciAdapter());
Compiler\SynthesizedMetadataCompiler.cs (1)
111_moduleBeingBuilt.AddSynthesizedDefinition(sourceProperty.ContainingType, synthesizedAccessor.GetCciAdapter());
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
661if (this._property.ContainingType is SourceMemberContainerTypeSymbol { AnyMemberHasAttributes: true })
Symbols\Source\SourcePropertySymbol.cs (8)
215if (this.ContainingType is SourceMemberContainerTypeSymbol { AnyMemberHasAttributes: true }) 534ContainingType, 547ContainingType, 592NamedTypeSymbol containingType = ContainingType; 675var containingTypeForFileTypeCheck = this.ContainingType; 699if (ContainingType.TypeParameters.Any(static tp => tp.Name == ParameterSymbol.ValueParameterName)) 704if (ContainingType.ExtensionParameter is { Name: ParameterSymbol.ValueParameterName }) 710if (!IsStatic && this.GetIsNewExtensionMember() && ContainingType.ExtensionParameter is { } extensionParameter &&
Symbols\Source\SourcePropertySymbolBase.cs (24)
306if (ContainingType.IsInterface && !IsStatic) 816if (!IsStatic && ContainingType.IsReadOnly) 890if (ContainingType.IsReadOnly) 912var overriddenProperty = (PropertySymbol)this.GetLeastOverriddenMember(this.ContainingType); 922ContainingType.IsInterface && 1036TypeSymbol.CheckModifierMismatchOnImplementingMember(this.ContainingType, this, explicitlyImplementedProperty, isExplicit: true, diagnostics); 1074Debug.Assert(!IsStatic || ContainingType.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier. 1076bool isExplicitInterfaceImplementationInInterface = isExplicitInterfaceImplementation && ContainingType.IsInterface; 1097else if (IsPartial && !ContainingType.IsPartial()) 1109else if (IsAbstract && ContainingType.TypeKind == TypeKind.Struct) 1114else if (IsVirtual && ContainingType.TypeKind == TypeKind.Struct) 1131else if (ContainingType.IsSealed && this.DeclaredAccessibility.HasProtected() && !this.IsOverride) 1133diagnostics.Add(AccessCheck.GetProtectedMemberInSealedTypeError(ContainingType), location, this); 1135else if (ContainingType is { IsExtension: true, ExtensionParameter.Name: "" } && !IsStatic) 1139else if (ContainingType.IsStatic && !IsStatic) 1408AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNullableAttributeIfNecessary(this, ContainingType.GetNullableContextValue(), type)); 1581CSharpAttributeData.DecodeMemberNotNullAttribute<PropertyWellKnownAttributeData>(ContainingType, ref arguments); 1586CSharpAttributeData.DecodeMemberNotNullWhenAttribute<PropertyWellKnownAttributeData>(ContainingType, ref arguments); 1599if (ContainingType.IsInterface || IsExplicitInterfaceImplementation) 1869if (!this.IsStatic && (ContainingType.IsRecord || ContainingType.IsRecordStruct) && type.IsPointerOrFunctionPointer()) 1874else if (type.IsRefLikeOrAllowsRefLikeType() && (this.IsStatic || !this.ContainingType.IsRefLikeType)) 1885diagnostics.Add(ErrorFacts.GetStaticClassReturnCode(ContainingType.IsInterfaceType()), TypeLocation, type); 1890diagnostics.Add(ErrorFacts.GetStaticClassParameterCode(ContainingType.IsInterfaceType()), TypeLocation, type);
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (4)
62=> ContainingType.GetFirstLocation(); 67ContainingType, 70ContainingType.GetFirstLocation(), 71(CSharpSyntaxNode)((SourceMemberContainerTypeSymbol)ContainingType).SyntaxReferences[0].GetSyntax(),
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (2)
81var usesInit = !isGet && ShouldUseInit(ContainingType); 85ContainingType,
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
259=> _property.ContainingType;