Base:
property
IsRecord
Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol.IsRecord
11 references to IsRecord
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder_Expressions.cs (2)
1768
ContainingType is SourceMemberContainerTypeSymbol {
IsRecord
: false, IsRecordStruct: false, PrimaryConstructor: SynthesizedPrimaryConstructor { ParameterCount: not 0 } primaryConstructor, OriginalDefinition: var containingTypeDefinition } &&
5160
sourceType.
IsRecord
&&
FlowAnalysis\DefiniteAssignment.cs (1)
1977
Diagnostics.Add((primaryCtor.ContainingType is {
IsRecord
: true } or { IsRecordStruct: true }) ?
Symbols\Source\SourceMemberContainerSymbol.cs (3)
330
if (!this.
IsRecord
)
1279
return (IsTupleType ||
IsRecord
|| IsRecordStruct || this.declaration.ContainsExtensionDeclarations) ? GetMembers().Select(m => m.Name) : this.declaration.MemberNames;
1508
=>
IsRecord
;
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\SynthesizedRecordObjectMethod.cs (1)
43
if (overridden is object && !(overridden.ContainingType is SourceMemberContainerTypeSymbol {
IsRecord
: true } && overridden.ContainingModule == overriding.ContainingModule))
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
41
if (containingType.
IsRecord
&& !containingType.BaseTypeNoUseSiteDiagnostics.IsObjectType())