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