Base:
property
IsRecordStruct
Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol.IsRecordStruct
22 references to IsRecordStruct
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder_Expressions.cs (1)
1731
ContainingType is SourceMemberContainerTypeSymbol { IsRecord: false,
IsRecordStruct
: false, PrimaryConstructor: SynthesizedPrimaryConstructor { ParameterCount: not 0 } primaryConstructor, OriginalDefinition: var containingTypeDefinition } &&
FlowAnalysis\DefiniteAssignment.cs (1)
1950
Diagnostics.Add((primaryCtor.ContainingType is { IsRecord: true } or {
IsRecordStruct
: true }) ?
Symbols\Source\SourceMemberContainerSymbol.cs (4)
331
if (!this.
IsRecordStruct
)
1270
return (IsTupleType || IsRecord ||
IsRecordStruct
) ? GetMembers().Select(m => m.Name) : this.declaration.MemberNames;
2581
if (IsRecord ||
IsRecordStruct
)
3422
if (this is { IsRecord: true } or {
IsRecordStruct
: true } ||
Symbols\Source\SourceNamedTypeSymbol.cs (2)
1215
else if (
IsRecordStruct
)
1823
if (TypeKind == TypeKind.Struct && !
IsRecordStruct
&& HasInlineArrayAttribute(out _))
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (3)
90
protected override bool AllowRefOrOut => !(ContainingType is { IsRecord: true } or {
IsRecordStruct
: true });
130
if (ContainingType is { IsRecord: true } or {
IsRecordStruct
: true } || ParameterCount == 0)
175
if (ContainingType is { IsRecord: true } or {
IsRecordStruct
: true })
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (1)
22
Debug.Assert(!containingType.
IsRecordStruct
);
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
27
Debug.Assert(!containingType.
IsRecordStruct
);
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (1)
100
return containingType.IsReadOnly || (containingType.
IsRecordStruct
&& !positionalMembers.Any(static m => hasNonReadOnlyGetter(m)));
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
47
Debug.Assert(!containingType.
IsRecordStruct
);
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (2)
25
(containingType.
IsRecordStruct
? DeclarationModifiers.ReadOnly : 0))
27
Debug.Assert(equalityContract is null == containingType.
IsRecordStruct
);
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (2)
21
: base(containingType, WellKnownMemberNames.ObjectGetHashCode, memberOffset, isReadOnly: containingType.
IsRecordStruct
)
23
Debug.Assert(containingType.
IsRecordStruct
== equalityContract is null);
Symbols\Synthesized\Records\SynthesizedRecordObjEquals.cs (1)
19
: base(containingType, WellKnownMemberNames.ObjectEquals, memberOffset, isReadOnly: containingType.
IsRecordStruct
)
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (2)
37
var result = (containingType.
IsRecordStruct
|| (containingType.BaseTypeNoUseSiteDiagnostics.IsObjectType() && containingType.IsSealed)) ?
63
if (containingType.
IsRecordStruct
)