55 references to CreateTupleTypeSymbol
Microsoft.CodeAnalysis (1)
Compilation\Compilation.cs (1)
1437
return
CreateTupleTypeSymbol
(underlyingType, elementNames, elementLocations, elementNullableAnnotations: default);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (30)
CodeGen\CodeGenTupleTest.cs (30)
5791
Assert.Throws<ArgumentNullException>(() => comp.
CreateTupleTypeSymbol
(null, default(ImmutableArray<string>)));
6213
Assert.Throws<ArgumentException>(() => comp.
CreateTupleTypeSymbol
(underlyingType: vt2));
6256
Assert.Equal("(System.Int32, System.Int32)[missing]", comp.
CreateTupleTypeSymbol
(underlyingType: vt2).ToTestDisplayString());
6259
Assert.Equal("(System.Int32, System.Int32)[missing]", comp.
CreateTupleTypeSymbol
(underlyingType: vt2).ToTestDisplayString());
6262
Assert.Equal("(System.Int32, System.Int32)[missing]", comp.
CreateTupleTypeSymbol
(underlyingType: vt2).ToTestDisplayString());
6314
var e = Assert.Throws<ArgumentException>(() => comp.
CreateTupleTypeSymbol
(vbType, default(ImmutableArray<string>)));
6613
var tuple4 = comp.
CreateTupleTypeSymbol
(tuple1, ImmutableArray.Create("Item1", "Item2", "Item3", "Item4", "Item5", "Item6", "Item7", "a", "b"));
6639
var tuple2 = comp.
CreateTupleTypeSymbol
(underlyingType);
6642
tuple2 = comp.
CreateTupleTypeSymbol
(underlyingType, default);
6648
tuple2 = comp.
CreateTupleTypeSymbol
(underlyingType, default, default, default);
6651
tuple2 = comp.
CreateTupleTypeSymbol
(underlyingType, default(ImmutableArray<string>), default(ImmutableArray<Location>), default(ImmutableArray<CodeAnalysis.NullableAnnotation>));
6654
tuple2 = comp.
CreateTupleTypeSymbol
(underlyingType, elementNames: default);
6657
tuple2 = comp.
CreateTupleTypeSymbol
(underlyingType, elementLocations: default);
6660
tuple2 = comp.
CreateTupleTypeSymbol
(underlyingType, elementNullableAnnotations: default);
6681
var tuple2 = comp.
CreateTupleTypeSymbol
(underlyingType);
6684
tuple2 = comp.
CreateTupleTypeSymbol
(underlyingType, default);
6690
tuple2 = comp.
CreateTupleTypeSymbol
(underlyingType, default, default, default);
6693
tuple2 = comp.
CreateTupleTypeSymbol
(underlyingType, default(ImmutableArray<string>), default(ImmutableArray<Location>), default(ImmutableArray<CodeAnalysis.NullableAnnotation>));
6696
tuple2 = comp.
CreateTupleTypeSymbol
(underlyingType, elementNames: default);
6699
tuple2 = comp.
CreateTupleTypeSymbol
(underlyingType, elementLocations: default);
6702
tuple2 = comp.
CreateTupleTypeSymbol
(underlyingType, elementNullableAnnotations: default);
6799
var tuple2 = comp.
CreateTupleTypeSymbol
(underlyingType, elementNullableAnnotations: default);
6802
var e = Assert.Throws<ArgumentException>(() => comp.
CreateTupleTypeSymbol
(underlyingType, elementNullableAnnotations: ImmutableArray<CodeAnalysis.NullableAnnotation>.Empty));
6805
tuple2 = comp.
CreateTupleTypeSymbol
(
6811
tuple2 = comp.
CreateTupleTypeSymbol
(
6818
tuple2 = comp.
CreateTupleTypeSymbol
(
6838
var tuple2 = comp.
CreateTupleTypeSymbol
(underlyingType, elementNullableAnnotations: default);
6842
var e = Assert.Throws<ArgumentException>(() => comp.
CreateTupleTypeSymbol
(underlyingType, elementNullableAnnotations: CreateAnnotations(CodeAnalysis.NullableAnnotation.NotAnnotated, 8)));
6845
tuple2 = comp.
CreateTupleTypeSymbol
(underlyingType, elementNullableAnnotations: CreateAnnotations(CodeAnalysis.NullableAnnotation.None, 9));
6849
tuple2 = comp.
CreateTupleTypeSymbol
(underlyingType, elementNullableAnnotations: CreateAnnotations(CodeAnalysis.NullableAnnotation.Annotated, 9));
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (22)
CodeGen\CodeGenTuples.vb (22)
6866
Assert.Throws(Of ArgumentNullException)(Sub() comp.
CreateTupleTypeSymbol
(underlyingType:=Nothing, elementNames:=Nothing))
6868
Dim ex = Assert.Throws(Of ArgumentException)(Function() comp.
CreateTupleTypeSymbol
(vt2, ImmutableArray.Create("Item1")))
6873
ex = Assert.Throws(Of ArgumentException)(Function() comp.
CreateTupleTypeSymbol
(vt2, elementLocations:=ImmutableArray.Create(loc1)))
6890
Dim tupleWithoutNames = comp.
CreateTupleTypeSymbol
(vt2, ImmutableArray.Create(Of String)(Nothing, Nothing))
6943
Dim tupleWithoutNames = comp.
CreateTupleTypeSymbol
(vt2, Nothing)
6963
Dim tupleWithoutNames = comp.
CreateTupleTypeSymbol
(vt2, ImmutableArray.Create("Alice", "Bob"))
6984
Dim tupleWithSomeNames = comp.
CreateTupleTypeSymbol
(vt3, ImmutableArray.Create(Nothing, "Item2", "Charlie"))
7003
Dim tupleWithoutNames = comp.
CreateTupleTypeSymbol
(vt2, ImmutableArray.Create("Item2", "Item1"))
7025
Dim tuple8WithoutNames = comp.
CreateTupleTypeSymbol
(vt8, Nothing)
7050
Dim tuple8WithNames = comp.
CreateTupleTypeSymbol
(vt8, ImmutableArray.Create("Alice1", "Alice2", "Alice3", "Alice4", "Alice5", "Alice6", "Alice7", "Alice8"))
7075
Dim tuple9WithoutNames = comp.
CreateTupleTypeSymbol
(vt9, Nothing)
7100
Dim tuple9WithNames = comp.
CreateTupleTypeSymbol
(vt9, ImmutableArray.Create("Alice1", "Alice2", "Alice3", "Alice4", "Alice5", "Alice6", "Alice7", "Alice8", "Alice9"))
7125
Dim tuple9WithNames = comp.
CreateTupleTypeSymbol
(vt9, ImmutableArray.Create("Item1", "Item2", "Item3", "Item4", "Item5", "Item6", "Item7", "Item8", "Item9"))
7151
Dim tupleWithoutNames = comp.
CreateTupleTypeSymbol
(vt2, Nothing)
7173
Dim tuple2 = comp.
CreateTupleTypeSymbol
(vt3, ImmutableArray.Create("123", " ", Nothing))
7177
Dim tuple3 = comp.
CreateTupleTypeSymbol
(vt2, ImmutableArray.Create("return", "class"))
7194
Dim ex = Assert.Throws(Of ArgumentException)(Function() comp.
CreateTupleTypeSymbol
(vt2, ImmutableArray.Create("123", "")))
7210
Dim ex = Assert.Throws(Of ArgumentException)(Function() comp.
CreateTupleTypeSymbol
(csType, Nothing))
8937
Assert.Throws(Of ArgumentException)(Function() comp.
CreateTupleTypeSymbol
(underlyingType:=vt2))
8980
Assert.Equal("(System.Int32, System.Int32)", comp.
CreateTupleTypeSymbol
(underlyingType:=vt2).ToTestDisplayString())
8983
Assert.Equal("(System.Int32, System.Int32)", comp.
CreateTupleTypeSymbol
(underlyingType:=vt2).ToTestDisplayString())
8986
Assert.Equal("(System.Int32, System.Int32)", comp.
CreateTupleTypeSymbol
(underlyingType:=vt2).ToTestDisplayString())
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Compilation\CompilationAPITests.vb (2)
1482
Dim tupleWithoutNames = comp.
CreateTupleTypeSymbol
(vt2, Nothing)
1498
Dim tupleWithNames = comp.
CreateTupleTypeSymbol
(vt2, ImmutableArray.Create("Alice", "Bob"))