Base:
property
ContainingType
Microsoft.CodeAnalysis.CSharp.Symbol.ContainingType
18 references to ContainingType
Microsoft.CodeAnalysis.CSharp (18)
Symbols\Source\SourceCustomEventSymbol.cs (1)
230
TypeSymbol.CheckModifierMismatchOnImplementingMember(this.
ContainingType
, this, explicitlyImplementedEvent, isExplicit: true, diagnostics);
Symbols\Source\SourceEventSymbol.cs (16)
544
bool isInterface = this.
ContainingType
.IsInterface;
590
if (this.
ContainingType
.IsStructType())
625
Debug.Assert(!IsStatic ||
ContainingType
.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier.
629
bool isExplicitInterfaceImplementationInInterface =
ContainingType
.IsInterface && IsExplicitInterfaceImplementation;
655
else if (IsPartial && !
ContainingType
.IsPartial())
667
else if (IsAbstract &&
ContainingType
.TypeKind == TypeKind.Struct)
672
else if (IsVirtual &&
ContainingType
.TypeKind == TypeKind.Struct)
689
else if (
ContainingType
.IsSealed && this.DeclaredAccessibility.HasProtected() && !this.IsOverride)
691
diagnostics.Add(AccessCheck.GetProtectedMemberInSealedTypeError(
ContainingType
), location, this);
693
else if (
ContainingType
.IsStatic && !IsStatic)
713
else if (IsAbstract && !
ContainingType
.IsAbstract && (
ContainingType
.TypeKind == TypeKind.Class ||
ContainingType
.TypeKind == TypeKind.Submission))
716
diagnostics.Add(ErrorCode.ERR_AbstractInConcreteClass, location, this,
ContainingType
);
718
else if (IsVirtual &&
ContainingType
.IsSealed)
721
diagnostics.Add(ErrorCode.ERR_NewVirtualInSealed, location, this,
ContainingType
);
Symbols\Source\SourceFieldLikeEventSymbol.cs (1)
97
if (!IsStatic &&
ContainingType
.IsReadOnly)