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