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