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