1 override of IsTupleType
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Tuples\TupleTypeSymbol.cs (1)
535public sealed override bool IsTupleType
59 references to IsTupleType
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Deconstruct.cs (1)
256if (type.IsTupleType)
Binder\Binder_Expressions.cs (1)
1370|| (type.IsTupleType && !type.TupleElementNames.IsDefault))
Binder\Binder_Patterns.cs (3)
981else if (declType.IsTupleType) 1234Debug.Assert(!declType.IsTupleType); 1377else if (strippedInputType.IsTupleType)
Binder\Binder_TupleOperators.cs (2)
332Debug.Assert(targetType.StrippedType().IsTupleType); 362if (type.StrippedType() is { IsTupleType: true } tupleType)
Binder\DecisionDagBuilder.cs (1)
550else 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)
8101if (operandType.Type?.IsTupleType == true || conversionOperand.Kind == BoundKind.TupleLiteral)
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
552if (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)
834if (type.IsTupleType)
Symbols\Metadata\PE\MetadataDecoder.cs (2)
540Debug.Assert(!targetTypeSymbol.IsTupleType); 557if (!targetTypeSymbol.IsTupleType)
Symbols\PublicModel\TypeSymbol.cs (1)
143bool ITypeSymbol.IsTupleType => UnderlyingTypeSymbol.IsTupleType;
Symbols\TypeSymbol.cs (1)
565if (IsTupleType)
Symbols\TypeSymbolExtensions.cs (2)
534if (type.IsTupleType) 1179type.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); 22319Assert.True(methodM.ReturnType.IsTupleType); 22359Assert.True(methodM.ReturnType.IsTupleType); 26793Assert.True(tuple.IsTupleType); 26799Assert.True(tuple.IsTupleType); 26865Assert.True(tuple.IsTupleType);
Microsoft.CodeAnalysis.CSharp.Emit2.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)
4892Assert.True(valueTupleS.IsTupleType);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (6)
TupleTests.cs (6)
56Assert.True(method.ReturnType.IsTupleType); 186Assert.True(method.ReturnType.IsTupleType); 229Assert.True(method.ReturnType.IsTupleType); 278Assert.False(returnType.IsTupleType); 475Assert.False(returnType.IsTupleType); 476Assert.True(((ArrayTypeSymbol)returnType).ElementType.IsTupleType);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\OverloadResolutionTests.cs (1)
721while (type.IsTupleType)