2 types derived from SourceMemberContainerTypeSymbol
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Source\ImplicitNamedTypeSymbol.cs (1)
19internal sealed class ImplicitNamedTypeSymbol : SourceMemberContainerTypeSymbol
Symbols\Source\SourceNamedTypeSymbol.cs (1)
25internal sealed partial class SourceNamedTypeSymbol : SourceMemberContainerTypeSymbol, IAttributeTargetSymbol
154 references to SourceMemberContainerTypeSymbol
Microsoft.CodeAnalysis.CSharp (154)
Binder\Binder.CapturedParametersFinder.cs (1)
45var containingType = primaryConstructor.ContainingType;
Binder\Binder_Conversions.cs (4)
2277if (SourceMemberContainerTypeSymbol.RequiresValidScopedOverrideForRefSafety(delegateMethod)) 2279SourceMemberContainerTypeSymbol.CheckValidScopedOverride( 2286SourceMemberContainerTypeSymbol.ReportInvalidScopedOverrideAsError(delegateMethod, lambdaOrMethod) ? 2298SourceMemberContainerTypeSymbol.CheckRefReadonlyInMismatch(
Binder\Binder_Expressions.cs (2)
454if (field is { IsStatic: false, RefKind: RefKind.None, ContainingSymbol: SourceMemberContainerTypeSymbol { PrimaryConstructor: { } primaryConstructor } } && 1731ContainingType is SourceMemberContainerTypeSymbol { IsRecord: false, IsRecordStruct: false, PrimaryConstructor: SynthesizedPrimaryConstructor { ParameterCount: not 0 } primaryConstructor, OriginalDefinition: var containingTypeDefinition } &&
Binder\Binder_Lookup.cs (1)
1307else if (nsOrType is SourceMemberContainerTypeSymbol { HasPrimaryConstructor: true } sourceMemberContainerTypeSymbol)
Binder\Binder_Statements.cs (1)
3756ContainingType is SourceMemberContainerTypeSymbol { HasPrimaryConstructor: true };
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
564if (container is SourceMemberContainerTypeSymbol { HasPrimaryConstructor: true } sourceMemberContainerTypeSymbol)
Binder\BinderFactory.cs (1)
129if (memberOpt is { ContainingSymbol: SourceMemberContainerTypeSymbol container })
Binder\ExpressionVariableFinder.cs (2)
676private SourceMemberContainerTypeSymbol _containingType; 683SourceMemberContainerTypeSymbol containingType,
Binder\RefSafetyAnalysis.cs (1)
47if (def is SourceMemberContainerTypeSymbol { IsUnsafe: true })
Binder\Semantics\Conversions\UserDefinedExplicitConversions.cs (1)
247if (SourceMemberContainerTypeSymbol.DoOperatorsPair(op, op2))
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (1)
944if (SourceMemberContainerTypeSymbol.DoOperatorsPair(signature1.Method, operators2[i].Method))
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (1)
500if (SourceMemberContainerTypeSymbol.DoOperatorsPair(signature1.Method, operators2[i].Method))
Binder\WithPrimaryConstructorParametersBinder.cs (1)
52if (_type is SourceMemberContainerTypeSymbol { PrimaryConstructor: { ParameterCount: not 0 } primaryCtor })
Compilation\CSharpCompilation.cs (2)
5014var sourceType = symbol as SourceMemberContainerTypeSymbol;
Compilation\CSharpSemanticModel.cs (1)
5238if (type is SourceMemberContainerTypeSymbol { PrimaryConstructor: { } primaryConstructor }
Compilation\InitializerSemanticModel.cs (2)
279Debug.Assert(MemberSymbol.ContainingType is SourceMemberContainerTypeSymbol); 280return MemberSymbol.ContainingType is SourceMemberContainerTypeSymbol type &&
Compiler\MethodCompiler.cs (3)
477var sourceTypeSymbol = containingType as SourceMemberContainerTypeSymbol; 818private void CompileSynthesizedExplicitImplementations(SourceMemberContainerTypeSymbol sourceTypeSymbol, TypeCompilationState compilationState)
Compiler\SynthesizedMetadataCompiler.cs (2)
66var sourceTypeSymbol = symbol as SourceMemberContainerTypeSymbol;
Emitter\Model\MethodSymbolAdapter.cs (2)
624/// diagnostics have been computed for all <see cref="SourceMemberContainerTypeSymbol"/>s, so pass 660/// diagnostics have been computed for all <see cref="SourceMemberContainerTypeSymbol"/>s, so pass
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
383if (AdaptedNamedTypeSymbol is SourceMemberContainerTypeSymbol container)
FlowAnalysis\DefiniteAssignment.cs (3)
340case MethodSymbol { IsStatic: false, ContainingSymbol: SourceMemberContainerTypeSymbol { PrimaryConstructor: { } primaryConstructor } } and 356case (FieldSymbol or PropertySymbol) and { IsStatic: false, ContainingSymbol: SourceMemberContainerTypeSymbol { PrimaryConstructor: { } primaryConstructor } }: 1840containing is SourceMemberContainerTypeSymbol { PrimaryConstructor: { } primaryConstructor } &&
FlowAnalysis\NullableWalker.cs (4)
1468&& method.ContainingType is SourceMemberContainerTypeSymbol containingType) 8699SourceMemberContainerTypeSymbol.CheckValidNullableMethodOverride( 8755if (SourceMemberContainerTypeSymbol.CheckValidNullableMethodOverride( 8770SourceMemberContainerTypeSymbol.CheckValidNullableMethodOverride(
FlowAnalysis\ReadWriteWalker.cs (1)
105containing is SourceMemberContainerTypeSymbol { PrimaryConstructor: { } primaryConstructor } &&
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
211_ = SourceMemberContainerTypeSymbol.CheckValidNullableMethodOverride( 255if (SourceMemberContainerTypeSymbol.CheckValidScopedOverride(
Symbols\PublicModel\NamedTypeSymbol.cs (1)
200UnderlyingNamedTypeSymbol.OriginalDefinition is SourceMemberContainerTypeSymbol
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (2)
145var containingSourceType = (SourceMemberContainerTypeSymbol)ContainingType;
Symbols\Source\GlobalExpressionVariable.cs (3)
29SourceMemberContainerTypeSymbol containingType, 42SourceMemberContainerTypeSymbol containingType, 168SourceMemberContainerTypeSymbol containingType,
Symbols\Source\LocalFunctionSymbol.cs (1)
435SourceMemberContainerTypeSymbol.ReportReservedTypeName(identifier.Text, this.DeclaringCompilation, diagnostics.DiagnosticBag, location);
Symbols\Source\SourceAssemblySymbol.cs (2)
2611var container = field.ContainingType as SourceMemberContainerTypeSymbol;
Symbols\Source\SourceConstructorSymbol.cs (3)
16SourceMemberContainerTypeSymbol containingType, 26SourceMemberContainerTypeSymbol containingType, 189: ((SourceMemberContainerTypeSymbol)ContainingType).IsNullableEnabledForConstructorsAndInitializers(IsStatic);
Symbols\Source\SourceConstructorSymbolBase.cs (1)
23SourceMemberContainerTypeSymbol containingType,
Symbols\Source\SourceCustomEventSymbol.cs (1)
26internal SourceCustomEventSymbol(SourceMemberContainerTypeSymbol containingType, Binder binder, EventDeclarationSyntax syntax, BindingDiagnosticBag diagnostics) :
Symbols\Source\SourceDelegateMethodSymbol.cs (4)
23SourceMemberContainerTypeSymbol delegateType, 46SourceMemberContainerTypeSymbol delegateType, 212SourceMemberContainerTypeSymbol delegateType, 256SourceMemberContainerTypeSymbol delegateType,
Symbols\Source\SourceDestructorSymbol.cs (1)
19SourceMemberContainerTypeSymbol containingType,
Symbols\Source\SourceEnumConstantSymbol.cs (6)
23SourceMemberContainerTypeSymbol containingEnum, 31SourceMemberContainerTypeSymbol containingEnum, 49protected SourceEnumConstantSymbol(SourceMemberContainerTypeSymbol containingEnum, EnumMemberDeclarationSyntax syntax, BindingDiagnosticBag diagnostics) 147SourceMemberContainerTypeSymbol containingEnum, 164SourceMemberContainerTypeSymbol containingEnum, 187SourceMemberContainerTypeSymbol containingEnum,
Symbols\Source\SourceEventSymbol.cs (2)
28internal readonly SourceMemberContainerTypeSymbol containingType; 40SourceMemberContainerTypeSymbol containingType,
Symbols\Source\SourceFieldLikeEventSymbol.cs (1)
28internal SourceFieldLikeEventSymbol(SourceMemberContainerTypeSymbol containingType, Binder binder, SyntaxTokenList modifiers, VariableDeclaratorSyntax declaratorSyntax, BindingDiagnosticBag diagnostics)
Symbols\Source\SourceFieldSymbol.cs (3)
20protected readonly SourceMemberContainerTypeSymbol containingType; 22protected SourceFieldSymbol(SourceMemberContainerTypeSymbol containingType) 178protected SourceFieldSymbolWithSyntaxReference(SourceMemberContainerTypeSymbol containingType, string name, SyntaxReference syntax, TextSpan locationSpan)
Symbols\Source\SourceFixedFieldSymbol.cs (1)
28SourceMemberContainerTypeSymbol containingType,
Symbols\Source\SourceMemberContainerSymbol.cs (2)
2648if (BaseTypeNoUseSiteDiagnostics is (not SourceMemberContainerTypeSymbol) and { HasRequiredMembersError: true }) 2725private static bool InfiniteFlatteningGraph(SourceMemberContainerTypeSymbol top, NamedTypeSymbol t, Dictionary<NamedTypeSymbol, NamedTypeSymbol> instanceMap)
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
663CheckNewModifier(member, ((SourceMemberContainerTypeSymbol)member).IsNew, diagnostics);
Symbols\Source\SourceMemberFieldSymbol.cs (2)
25SourceMemberContainerTypeSymbol containingType, 343SourceMemberContainerTypeSymbol containingType,
Symbols\Source\SourceMethodSymbol.cs (2)
48else if (ContainingType is SourceMemberContainerTypeSymbol type) 89return SourceMemberContainerTypeSymbol.HasAsyncMethodBuilderAttribute(this, out builderArgument);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
425if (ContainingSymbol is SourceMemberContainerTypeSymbol { AnyMemberHasAttributes: false })
Symbols\Source\SourceModuleSymbol.cs (1)
376if (item is SourceMemberContainerTypeSymbol type)
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (1)
675SourceMemberContainerTypeSymbol.ReportReservedTypeName(identifier.Text, compilation, diagnostics, location);
Symbols\Source\SourceNamespaceSymbol.cs (6)
306var nts = symbol as SourceMemberContainerTypeSymbol; 349case ({ } left, SourceMemberContainerTypeSymbol right) when isFileLocalTypeInSeparateFileFrom(right, left): 353case ({ IsFileLocal: true }, _) or (_, SourceMemberContainerTypeSymbol { IsFileLocal: true }): 356case ({ IsPartial: true }, SourceMemberContainerTypeSymbol { IsPartial: true }): 379static bool isFileLocalTypeInSeparateFileFrom(SourceMemberContainerTypeSymbol possibleFileLocalType, NamespaceOrTypeSymbol otherSymbol)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (5)
414var sourceContainer = this.ContainingType as SourceMemberContainerTypeSymbol; 536if (SourceMemberContainerTypeSymbol.CheckValidScopedOverride( 551if (SourceMemberContainerTypeSymbol.CheckValidNullableMethodOverride( 1138SourceMemberContainerTypeSymbol.ReportReservedTypeName(identifier.Text, this.DeclaringCompilation, diagnostics.DiagnosticBag, location);
Symbols\Source\SourcePropertySymbol.cs (4)
19internal static SourcePropertySymbol Create(SourceMemberContainerTypeSymbol containingType, Binder bodyBinder, PropertyDeclarationSyntax syntax, BindingDiagnosticBag diagnostics) 26internal static SourcePropertySymbol Create(SourceMemberContainerTypeSymbol containingType, Binder bodyBinder, IndexerDeclarationSyntax syntax, BindingDiagnosticBag diagnostics) 33SourceMemberContainerTypeSymbol containingType, 102SourceMemberContainerTypeSymbol containingType,
Symbols\Source\SourcePropertySymbolBase.cs (2)
45private readonly SourceMemberContainerTypeSymbol _containingType; 80SourceMemberContainerTypeSymbol containingType,
Symbols\Source\SourceTypeParameterSymbol.cs (1)
290case SourceMemberContainerTypeSymbol _:
Symbols\Source\SourceUserDefinedConversionSymbol.cs (2)
17SourceMemberContainerTypeSymbol containingType, 55SourceMemberContainerTypeSymbol containingType,
Symbols\Source\SourceUserDefinedOperatorSymbol.cs (2)
18SourceMemberContainerTypeSymbol containingType, 60SourceMemberContainerTypeSymbol containingType,
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
28SourceMemberContainerTypeSymbol containingType,
Symbols\Symbol.cs (1)
1023if (ContainingSymbol is SourceMemberContainerTypeSymbol container)
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (4)
21SourceMemberContainerTypeSymbol containingType, 36private static (DeclarationModifiers, Flags) MakeModifiersAndFlags(SourceMemberContainerTypeSymbol containingType, TypeDeclarationSyntax syntax) 88public new SourceMemberContainerTypeSymbol ContainingType => (SourceMemberContainerTypeSymbol)base.ContainingType;
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (1)
19public SynthesizedRecordBaseEquals(SourceMemberContainerTypeSymbol containingType, int memberOffset)
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (2)
23SourceMemberContainerTypeSymbol containingType, 30private static DeclarationModifiers MakeDeclarationModifiers(SourceMemberContainerTypeSymbol containingType)
Symbols\Synthesized\Records\SynthesizedRecordCopyCtor.cs (1)
19SourceMemberContainerTypeSymbol containingType,
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (2)
19SourceMemberContainerTypeSymbol containingType, 98private static bool IsReadOnly(SourceMemberContainerTypeSymbol containingType, ImmutableArray<Symbol> positionalMembers)
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (2)
18public SynthesizedRecordEqualityContractProperty(SourceMemberContainerTypeSymbol containingType, BindingDiagnosticBag diagnostics) 71(CSharpSyntaxNode)((SourceMemberContainerTypeSymbol)ContainingType).SyntaxReferences[0].GetSyntax(),
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperator.cs (1)
27public SynthesizedRecordEqualityOperator(SourceMemberContainerTypeSymbol containingType, int memberOffset, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperatorBase.cs (1)
38protected SynthesizedRecordEqualityOperatorBase(SourceMemberContainerTypeSymbol containingType, string name, int memberOffset, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
21public SynthesizedRecordEquals(SourceMemberContainerTypeSymbol containingType, PropertySymbol? equalityContract, int memberOffset)
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (1)
20public SynthesizedRecordGetHashCode(SourceMemberContainerTypeSymbol containingType, PropertySymbol? equalityContract, int memberOffset)
Symbols\Synthesized\Records\SynthesizedRecordInequalityOperator.cs (1)
29public SynthesizedRecordInequalityOperator(SourceMemberContainerTypeSymbol containingType, int memberOffset, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\Records\SynthesizedRecordObjectMethod.cs (2)
14protected SynthesizedRecordObjectMethod(SourceMemberContainerTypeSymbol containingType, string name, int memberOffset, bool isReadOnly) 43if (overridden is object && !(overridden.ContainingType is SourceMemberContainerTypeSymbol { IsRecord: true } && overridden.ContainingModule == overriding.ContainingModule))
Symbols\Synthesized\Records\SynthesizedRecordObjEquals.cs (1)
18public SynthesizedRecordObjEquals(SourceMemberContainerTypeSymbol containingType, MethodSymbol typedRecordEquals, int memberOffset)
Symbols\Synthesized\Records\SynthesizedRecordOrdinaryMethod.cs (1)
23protected SynthesizedRecordOrdinaryMethod(SourceMemberContainerTypeSymbol containingType, string name, int memberOffset, DeclarationModifiers declarationModifiers)
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (2)
24SourceMemberContainerTypeSymbol containingType, 35private static DeclarationModifiers MakeDeclarationModifiers(SourceMemberContainerTypeSymbol containingType, IEnumerable<Symbol> userDefinedMembers)
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (1)
17SourceMemberContainerTypeSymbol containingType,
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (1)
25public SynthesizedRecordToString(SourceMemberContainerTypeSymbol containingType, MethodSymbol printMethod, int memberOffset)
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (3)
270var containingType = (SourceMemberContainerTypeSymbol)this.ContainingType; 282(ContainingType as SourceMemberContainerTypeSymbol)?.IsNullableEnabledForConstructorsAndInitializers(useStatic: false) ?? false;
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (3)
21private readonly SourceMemberContainerTypeSymbol _containingType; 26internal SynthesizedInteractiveInitializerMethod(SourceMemberContainerTypeSymbol containingType, BindingDiagnosticBag diagnostics) 259SourceMemberContainerTypeSymbol containingType,
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (2)
28internal SynthesizedSimpleProgramEntryPointSymbol(SourceMemberContainerTypeSymbol containingType, SingleTypeDeclaration declaration, BindingDiagnosticBag diagnostics) 62private static (DeclarationModifiers, Flags) MakeModifiersAndFlags(SourceMemberContainerTypeSymbol containingType, SingleTypeDeclaration declaration)
Symbols\Synthesized\SynthesizedStaticConstructor.cs (4)
377var containingType = (SourceMemberContainerTypeSymbol)this.ContainingType; 382(ContainingType as SourceMemberContainerTypeSymbol)?.IsNullableEnabledForConstructorsAndInitializers(useStatic: true) ?? false; 400if (!(ContainingType is SourceMemberContainerTypeSymbol sourceType))
Symbols\TypeSymbol.cs (10)
1773SourceMemberContainerTypeSymbol.CheckValidNullableEventOverride(compilation, implementedEvent, implementingEvent, 1849SourceMemberContainerTypeSymbol.CheckValidNullableMethodOverride( 1858if (SourceMemberContainerTypeSymbol.RequiresValidScopedOverrideForRefSafety(implementedMethod)) 1860SourceMemberContainerTypeSymbol.CheckValidScopedOverride( 1867SourceMemberContainerTypeSymbol.ReportInvalidScopedOverrideAsError(implementedMethod, implementingMethod) ? 1877SourceMemberContainerTypeSymbol.CheckRefReadonlyInMismatch( 2076SourceMemberContainerTypeSymbol snt = null; 2079snt = implementingType as SourceMemberContainerTypeSymbol; 2139SourceMemberContainerTypeSymbol snt = implementingType as SourceMemberContainerTypeSymbol;