1 override of IsTupleType
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Tuples\TupleTypeSymbol.cs (1)
528public sealed override bool IsTupleType
53 references to IsTupleType
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Deconstruct.cs (1)
256if (type.IsTupleType)
Binder\Binder_Expressions.cs (1)
1413|| (type.IsTupleType && !type.TupleElementNames.IsDefault))
Binder\Binder_Patterns.cs (3)
991else if (declType.IsTupleType) 1244Debug.Assert(!declType.IsTupleType); 1387else if (strippedInputType.IsTupleType)
Binder\Binder_TupleOperators.cs (2)
332Debug.Assert(targetType.StrippedType().IsTupleType); 362if (type.StrippedType() is { IsTupleType: true } tupleType)
Binder\DecisionDagBuilder.cs (1)
553else if (inputType.IsTupleType)
Binder\PatternExplainer.cs (1)
469if (input.Type.IsTupleType &&
BoundTree\TupleBinaryOperatorInfo.cs (2)
111Debug.Assert(leftConvertedTypeOpt is null || leftConvertedTypeOpt.StrippedType().IsTupleType); 112Debug.Assert(rightConvertedTypeOpt is null || rightConvertedTypeOpt.StrippedType().IsTupleType);
FlowAnalysis\NullableWalker.cs (1)
9463if (operandType.Type?.IsTupleType == true || conversionOperand.Kind == BoundKind.TupleLiteral)
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
556if (loweredInput.Type.IsTupleType &&
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (2)
319if (right.Type.IsTupleType) 338Debug.Assert(expression.Type.IsTupleType);
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
524Debug.Assert(tuple.Type is { IsTupleType: true });
Symbols\Compilation_WellKnownMembers.cs (1)
864if (type.IsTupleType)
Symbols\Metadata\PE\MetadataDecoder.cs (2)
540Debug.Assert(!targetTypeSymbol.IsTupleType); 557if (!targetTypeSymbol.IsTupleType)
Symbols\PublicModel\TypeSymbol.cs (1)
148bool ITypeSymbol.IsTupleType => UnderlyingTypeSymbol.IsTupleType;
Symbols\TypeSymbol.cs (1)
579if (IsTupleType)
Symbols\TypeSymbolExtensions.cs (2)
599if (type.IsTupleType) 1269type.VisitType((TypeSymbol t, object? _1, bool _2) => t.IsTupleType, null) is object;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (23)
CodeGen\CodeGenTupleTest.cs (23)
494Assert.True(typeArg.IsTupleType); 509Assert.True(typeArg.IsTupleType); 521Assert.True(typeArg.IsTupleType); 533Assert.True(typeArg.IsTupleType); 696Assert.True(typeArg.IsTupleType); 712Assert.True(typeArg.IsTupleType); 839Assert.True(validField.Type.IsTupleType); 844Assert.False(validFieldWithAttribute.Type.IsTupleType); 932Assert.True(validField.Type.IsTupleType); 937Assert.False(validFieldWithAttribute.Type.IsTupleType); 942Assert.True(partialNames.Type.IsTupleType); 947Assert.True(allNullNames.Type.IsTupleType); 953Assert.True(partialParamType.Type.IsTupleType); 959Assert.True(allNullParamType.Type.IsTupleType); 998Assert.True(field1.Type.IsTupleType); 1006Assert.True(first.IsTupleType); 1011Assert.True(second.IsTupleType); 1618Assert.True(xSymbol.IsTupleType); 22287Assert.True(methodM.ReturnType.IsTupleType); 22327Assert.True(methodM.ReturnType.IsTupleType); 26755Assert.True(tuple.IsTupleType); 26761Assert.True(tuple.IsTupleType); 26827Assert.True(tuple.IsTupleType);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Attributes\AttributeTests_Tuples.cs (5)
489Assert.True(firstTuple.IsTupleType); 493Assert.True(secondTuple.IsTupleType); 500Assert.True(field7.Type.IsTupleType); 941Assert.True(typeArg.IsTupleType); 1041Assert.True(typeArg.IsTupleType);
Attributes\AttributeTests_WellKnownAttributes.cs (1)
4981Assert.True(valueTupleS.IsTupleType);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\OverloadResolutionTests.cs (1)
719while (type.IsTupleType)