49 references to CreateTupleTypeSymbol
Microsoft.CodeAnalysis (1)
Compilation\Compilation.cs (1)
1341
return
CreateTupleTypeSymbol
(elementTypes, elementNames, elementLocations, elementNullableAnnotations: default);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (31)
CodeGen\CodeGenReadonlyStructTests.cs (2)
905
iNamedType = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create<ITypeSymbol>(comp.ObjectType.GetPublicSymbol(), comp.ObjectType.GetPublicSymbol()));
1069
iNamedType = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create<ITypeSymbol>(comp.ObjectType.GetPublicSymbol(), comp.ObjectType.GetPublicSymbol()));
CodeGen\CodeGenTupleTest.cs (29)
6341
Assert.Throws<ArgumentNullException>(() => comp.
CreateTupleTypeSymbol
(default(ImmutableArray<ITypeSymbol>), default(ImmutableArray<string>)));
6344
Assert.Throws<ArgumentException>(() => comp.
CreateTupleTypeSymbol
(ImmutableArray<ITypeSymbol>.Empty, default(ImmutableArray<string>)));
6586
Assert.Throws<ArgumentException>(() => comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, vbType), default(ImmutableArray<string>)));
6610
var tuple3 = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create<ITypeSymbol>(intType, intType, intType, intType, intType, intType, intType, stringType, stringType),
18865
var int_string2 = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
18866
var int_stringNamed = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType), ImmutableArray.Create("a", "b"));
18884
var int_int = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, intType));
18885
var int_int_int = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, intType, intType));
18886
var string_string = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(stringType, stringType));
18925
var int_string1 = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
18926
var int_object1 = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, objectType));
18951
var int_string1 = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
18952
var int_string2 = tupleComp2.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
18954
var int_object = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, objectType));
18976
var int_string1 = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
18977
var int_string2 = tupleComp2.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
18978
var int_object = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, objectType));
19001
var int_string1 = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
19002
var int_string2 = tupleComp2.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
19003
var int_object = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, objectType));
19027
var int_string1 = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
19028
var int_string2 = tupleComp2.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
19029
var int_object = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, objectType));
19069
var int_string1 = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
19070
var int_object = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, objectType));
19071
var int_object_object = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, objectType, objectType));
19108
var int_string1 = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
19109
var int_object = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, objectType));
19110
var int_object_object = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, objectType, objectType));
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (16)
CodeGen\CodeGenTuples.vb (16)
7220
Assert.Throws(Of ArgumentNullException)(Sub() comp.
CreateTupleTypeSymbol
(elementTypes:=Nothing, elementNames:=Nothing))
7223
Assert.Throws(Of ArgumentException)(Sub() comp.
CreateTupleTypeSymbol
(elementTypes:=ImmutableArray(Of ITypeSymbol).Empty, elementNames:=Nothing))
7224
Assert.Throws(Of ArgumentException)(Sub() comp.
CreateTupleTypeSymbol
(elementTypes:=ImmutableArray.Create(intType), elementNames:=Nothing))
7227
Assert.Throws(Of ArgumentException)(Sub() comp.
CreateTupleTypeSymbol
(elementTypes:=ImmutableArray.Create(intType, intType), elementNames:=ImmutableArray.Create("Item1")))
7230
Assert.Throws(Of ArgumentNullException)(Sub() comp.
CreateTupleTypeSymbol
(elementTypes:=ImmutableArray.Create(intType, Nothing), elementNames:=Nothing))
7246
Dim tupleWithoutNames = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType), ImmutableArray.Create(Of String)(Nothing, Nothing))
7293
Dim tupleWithoutNames = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType), Nothing)
7311
Dim tupleWithoutNames = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType), ImmutableArray.Create("Alice", "Bob"))
7328
Dim tupleWithoutNames = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, intType), ImmutableArray.Create("Item2", "Item1"))
7345
Dim tuple8WithoutNames = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType, intType, stringType, intType, stringType, intType, stringType),
7366
Dim tuple8WithNames = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType, intType, stringType, intType, stringType, intType, stringType),
7387
Dim tuple9WithoutNames = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType, intType, stringType, intType, stringType, intType, stringType, intType),
7408
Dim tuple9WithNames = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType, intType, stringType, intType, stringType, intType, stringType, intType),
7452
Dim tuple2 = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, intType), ImmutableArray.Create("123", " "))
7456
Dim tuple3 = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, intType), ImmutableArray.Create("return", "class"))
7483
Assert.Throws(Of ArgumentException)(Sub() comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(stringType, csType), Nothing))
System.Text.Json.SourceGeneration (1)
Helpers\RoslynExtensions.cs (1)
72
type = compilation.
CreateTupleTypeSymbol
(erasedElements);