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