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