Base:
property
IsTupleType
Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol.IsTupleType
48 references to IsTupleType
Microsoft.CodeAnalysis.CSharp (48)
Binder\Binder_Conversions.cs (2)
2444
if (targetType.
IsTupleType
)
2454
if (sourceTuple.Type is NamedTypeSymbol {
IsTupleType
: true } sourceType)
Emitter\Model\PEModuleBuilder.cs (1)
970
else if (namedTypeSymbol.
IsTupleType
)
FlowAnalysis\NullableWalker.cs (6)
3603
(FieldSymbol { ContainingType: {
IsTupleType
: true }, TupleElementIndex: var oi } originalField, FieldSymbol { ContainingType: {
IsTupleType
: true }, TupleElementIndex: var ui } updatedField) =>
3977
if (containingType?.
IsTupleType
== true && !isDefaultValueTypeConstructor)
8470
Debug.Assert(tupleType.
IsTupleType
);
8540
if (valueTuple is null || !valueTuple.
IsTupleType
)
10403
if (expr.Type is NamedTypeSymbol {
IsTupleType
: true } tupleType)
Lowering\LocalRewriter\LocalRewriter_Field.cs (1)
26
if (fieldSymbol.ContainingType.
IsTupleType
)
Lowering\LocalRewriter\LocalRewriter_TupleCreationExpression.cs (1)
45
Debug.Assert(type.
IsTupleType
);
Symbols\ConstraintsHelper.cs (1)
605
Debug.Assert(tuple.
IsTupleType
);
Symbols\ErrorTypeSymbol.cs (1)
144
if (
IsTupleType
)
Symbols\FieldSymbol.cs (2)
438
return ContainingType.
IsTupleType
? this : null;
474
if (!ContainingType.
IsTupleType
)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1419
if (
IsTupleType
)
Symbols\Metadata\PE\TupleTypeDecoder.cs (1)
290
if (decodedType.
IsTupleType
)
Symbols\NamedTypeSymbol.cs (3)
894
if (this.
IsTupleType
&& !tupleNamesEquals(other, comparison))
1020
return
IsTupleType
? MergeTupleNames((NamedTypeSymbol)other, result) : result;
1040
bool isTuple = typeA.
IsTupleType
;
Symbols\Source\SourceMemberContainerSymbol.cs (3)
1270
return (
IsTupleType
|| IsRecord || IsRecordStruct) ? GetMembers().Select(m => m.Name) : this.declaration.MemberNames;
2837
if (!membersAndInitializers.HaveIndexers && !this.
IsTupleType
&& _lazyEarlyAttributeDecodingMembersDictionary is object)
4866
if (!this.
IsTupleType
)
Symbols\SubstitutedFieldSymbol.cs (1)
66
if (this.ContainingType.
IsTupleType
&& this.IsDefaultTupleElement)
Symbols\SubstitutedNamedTypeSymbol.cs (3)
195
if (
IsTupleType
)
268
if (
IsTupleType
)
330
if (
IsTupleType
)
Symbols\Tuples\TupleErrorFieldSymbol.cs (1)
195
Debug.Assert(newOwner.
IsTupleType
&& newOwner.TupleElementTypesWithAnnotations.Length > TupleElementIndex);
Symbols\Tuples\TupleFieldSymbol.cs (6)
54
Debug.Assert(container.
IsTupleType
);
109
if (!originalContainer.
IsTupleType
)
211
Debug.Assert(newOwner.
IsTupleType
);
267
Debug.Assert(container.
IsTupleType
);
268
Debug.Assert(underlyingField.ContainingType.
IsTupleType
);
332
Debug.Assert(newOwner.
IsTupleType
);
Symbols\Tuples\TupleTypeSymbol.cs (11)
107
Debug.Assert(tupleCompatibleType.
IsTupleType
);
113
if (!
IsTupleType
|| (original._lazyTupleData == null && this._lazyTupleData == null) || TupleData!.EqualsIgnoringTupleUnderlyingType(original.TupleData))
122
=> this._lazyTupleData != null ? this.TupleData!.TupleUnderlyingType : (this.
IsTupleType
? this : null);
166
Debug.Assert(
IsTupleType
);
173
Debug.Assert(
IsTupleType
);
536
if (!
IsTupleType
)
560
=>
IsTupleType
? TupleData!.TupleElementTypesWithAnnotations(this) : default;
563
=>
IsTupleType
? TupleData!.TupleElements(this) : default;
567
return
IsTupleType
? TupleData!.GetTupleMemberSymbolForUnderlyingMember(underlyingMemberOpt) : null;
572
Debug.Assert(
IsTupleType
);
923
Debug.Assert(underlyingType.
IsTupleType
);
Symbols\TypeUnification.cs (1)
279
var typeParts = namedType.
IsTupleType
? namedType.TupleElementTypesWithAnnotations : namedType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics;
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (2)
131
if (
IsTupleType
)
144
if (
IsTupleType
)