Base:
property
IsRecord
Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol.IsRecord
12 references to IsRecord
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder_Expressions.cs (1)
4398sourceType.IsRecord &&
FlowAnalysis\DefiniteAssignment.cs (1)
1824Diagnostics.Add((primaryCtor.ContainingType is { IsRecord: true } or { IsRecordStruct: true }) ?
Symbols\Source\SourceMemberContainerSymbol.cs (7)
307if (!this.IsRecord) 1248return (IsTupleType || IsRecord || IsRecordStruct) ? GetMembers().Select(m => m.Name) : this.declaration.MemberNames; 1438=> IsRecord; 2470if (IsRecord || IsRecordStruct) 2516if (this.IsRecord) 3276if (this is { IsRecord: true } or { IsRecordStruct: true } || 4537if (!IsRecord ||
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\SynthesizedRecordObjectMethod.cs (1)
49if (overridden is object && !(overridden.ContainingType is SourceMemberContainerTypeSymbol { IsRecord: true } && overridden.ContainingModule == overriding.ContainingModule))