1 override of TupleElementTypesWithAnnotations
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Tuples\TupleTypeSymbol.cs (1)
558public sealed override ImmutableArray<TypeWithAnnotations> TupleElementTypesWithAnnotations
37 references to TupleElementTypesWithAnnotations
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Deconstruct.cs (1)
259tupleOrDeconstructedTypes = type.TupleElementTypesWithAnnotations.SelectAsArray(TypeMap.AsTypeSymbol);
Binder\Binder_Patterns.cs (2)
994BindValueTupleSubpatterns(positionalClause, declType, declType.TupleElementTypesWithAnnotations, permitDesignations, ref hasErrors, patternsBuilder, diagnostics); 1390addSubpatternsForTuple(strippedInputType.TupleElementTypesWithAnnotations);
Binder\Binder_TupleOperators.cs (2)
364return tupleType.TupleElementTypesWithAnnotations.Length; 384ImmutableArray<BoundExpression> placeholders = tupleType.TupleElementTypesWithAnnotations
Binder\DecisionDagBuilder.cs (1)
556ImmutableArray<TypeWithAnnotations> elementTypes = inputType.TupleElementTypesWithAnnotations;
Binder\Semantics\Conversions\ConversionsBase.cs (1)
2337var targetElementTypes = destination.TupleElementTypesWithAnnotations;
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (1)
340var tupleElementTypes = tupleType.TupleElementTypesWithAnnotations;
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (4)
63var resultTypes = conversion.Type.TupleElementTypesWithAnnotations; 108var destElementTypes = expr.Type.TupleElementTypesWithAnnotations; 444var types = expr.Type.GetNullableUnderlyingType().TupleElementTypesWithAnnotations; 445int tupleCardinality = operand.Type.TupleElementTypesWithAnnotations.Length;
Symbols\Compilation_WellKnownMembers.cs (1)
886namesBuilder.AddMany(null, type.TupleElementTypesWithAnnotations.Length);
Symbols\Tuples\TupleTypeSymbol.cs (1)
984var extensionTupleElementTypes = tuple.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[ValueTupleRestPosition - 1].Type.TupleElementTypesWithAnnotations;
Symbols\TypeSymbol.cs (1)
581return TupleElementTypesWithAnnotations.Length == targetCardinality;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (17)
CodeGen\CodeGenTupleTest.cs (17)
496Assert.Equal(2, typeArg.TupleElementTypesWithAnnotations.Length); 497Assert.All(typeArg.TupleElementTypesWithAnnotations, 510Assert.Equal(2, typeArg.TupleElementTypesWithAnnotations.Length); 511Assert.All(typeArg.TupleElementTypesWithAnnotations, 522Assert.Equal(2, typeArg.TupleElementTypesWithAnnotations.Length); 523Assert.All(typeArg.TupleElementTypesWithAnnotations, 534Assert.Equal(2, typeArg.TupleElementTypesWithAnnotations.Length); 535Assert.All(typeArg.TupleElementTypesWithAnnotations, 697Assert.Equal(2, typeArg.TupleElementTypesWithAnnotations.Length); 698Assert.All(typeArg.TupleElementTypesWithAnnotations, 713Assert.Equal(2, typeArg.TupleElementTypesWithAnnotations.Length); 714Assert.All(typeArg.TupleElementTypesWithAnnotations, 1007Assert.Equal(1, first.TupleElementTypesWithAnnotations.Length); 1010var second = first.TupleElementTypesWithAnnotations[0].Type; 1013Assert.Equal(2, second.TupleElementTypesWithAnnotations.Length); 1014Assert.All(second.TupleElementTypesWithAnnotations, t => 1620Assert.Equal(new[] { "System.Int32", "System.String" }, xSymbol.TupleElementTypesWithAnnotations.SelectAsArray(t => t.ToTestDisplayString()));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Attributes\AttributeTests_Tuples.cs (4)
491Assert.Equal(2, firstTuple.TupleElementTypesWithAnnotations.Length); 492var secondTuple = firstTuple.TupleElementTypesWithAnnotations[1].Type; 495Assert.Equal(2, secondTuple.TupleElementTypesWithAnnotations.Length); 501Assert.Empty(field7.Type.TupleElementTypesWithAnnotations);
Semantics\ExtensionTests2.cs (1)
23153var tupleElements = extension.ExtensionParameter.Type.TupleElementTypesWithAnnotations;