Base:
property
IsRecordStruct
Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol.IsRecordStruct
16 references to IsRecordStruct
Microsoft.CodeAnalysis.CSharp (16)
FlowAnalysis\DefiniteAssignment.cs (1)
1824
Diagnostics.Add((primaryCtor.ContainingType is { IsRecord: true } or {
IsRecordStruct
: true }) ?
Symbols\Source\SourceMemberContainerSymbol.cs (4)
316
if (!this.
IsRecordStruct
)
1248
return (IsTupleType || IsRecord ||
IsRecordStruct
) ? GetMembers().Select(m => m.Name) : this.declaration.MemberNames;
2470
if (IsRecord ||
IsRecordStruct
)
3276
if (this is { IsRecord: true } or {
IsRecordStruct
: true } ||
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (2)
51
protected override bool AllowRefOrOut => !(ContainingType is { IsRecord: true } or {
IsRecordStruct
: true });
93
if (ContainingType is { IsRecord: true } or {
IsRecordStruct
: true } || ParameterCount == 0)
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (1)
22
Debug.Assert(!containingType.
IsRecordStruct
);
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
29
Debug.Assert(!containingType.
IsRecordStruct
);
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (1)
110
return containingType.IsReadOnly || (containingType.
IsRecordStruct
&& !positionalMembers.Any(static m => hasNonReadOnlyGetter(m)));
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
43
Debug.Assert(!containingType.
IsRecordStruct
);
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (2)
22
: base(containingType, WellKnownMemberNames.ObjectEquals, isReadOnly: containingType.
IsRecordStruct
, hasBody: true, memberOffset, diagnostics)
24
Debug.Assert(equalityContract is null == containingType.
IsRecordStruct
);
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (2)
21
: base(containingType, WellKnownMemberNames.ObjectGetHashCode, memberOffset, isReadOnly: containingType.
IsRecordStruct
, diagnostics)
23
Debug.Assert(containingType.
IsRecordStruct
== equalityContract is null);
Symbols\Synthesized\Records\SynthesizedRecordObjEquals.cs (1)
19
: base(containingType, WellKnownMemberNames.ObjectEquals, memberOffset, isReadOnly: containingType.
IsRecordStruct
, diagnostics)