95 references to CreateTupleTypeSymbol
Microsoft.CodeAnalysis (1)
Compilation\Compilation.cs (1)
1310
return
CreateTupleTypeSymbol
(elementTypes, elementNames, elementLocations, elementNullableAnnotations: default);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
CSharpTypeInferenceService.TypeInferrer.cs (3)
1611
var type = Compilation.
CreateTupleTypeSymbol
(
2313
Compilation.
CreateTupleTypeSymbol
(
2347
return Compilation.
CreateTupleTypeSymbol
(elementTypes, elementNames, elementNullableAnnotations: GetNullableAnnotations(elementTypes));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (54)
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 (52)
6336
Assert.Throws<ArgumentNullException>(() => comp.
CreateTupleTypeSymbol
(default(ImmutableArray<ITypeSymbol>), default(ImmutableArray<string>)));
6339
Assert.Throws<ArgumentException>(() => comp.
CreateTupleTypeSymbol
(ImmutableArray<ITypeSymbol>.Empty, default(ImmutableArray<string>)));
6581
Assert.Throws<ArgumentException>(() => comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, vbType), default(ImmutableArray<string>)));
6605
var tuple3 = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create<ITypeSymbol>(intType, intType, intType, intType, intType, intType, intType, stringType, stringType),
6714
var tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes);
6717
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, default);
6723
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, default, default, default);
6726
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, default(ImmutableArray<string>), default(ImmutableArray<Location>), default(ImmutableArray<CodeAnalysis.NullableAnnotation>));
6729
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementNames: default);
6732
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementLocations: default);
6735
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations: default);
6755
var tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes);
6758
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, default);
6764
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, default, default, default);
6767
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, default(ImmutableArray<string>), default(ImmutableArray<Location>), default(ImmutableArray<CodeAnalysis.NullableAnnotation>));
6770
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementNames: default);
6773
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementLocations: default);
6776
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations: default);
6863
var tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations: default);
6866
var e = Assert.Throws<ArgumentException>(() => comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations: ImmutableArray<CodeAnalysis.NullableAnnotation>.Empty));
6869
tuple2 = comp.
CreateTupleTypeSymbol
(
6875
tuple2 = comp.
CreateTupleTypeSymbol
(
6882
tuple2 = comp.
CreateTupleTypeSymbol
(
6902
var tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations: default);
6906
var e = Assert.Throws<ArgumentException>(() => comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations: CreateAnnotations(CodeAnalysis.NullableAnnotation.NotAnnotated, 8)));
6909
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations: CreateAnnotations(CodeAnalysis.NullableAnnotation.None, 9));
6913
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations: CreateAnnotations(CodeAnalysis.NullableAnnotation.Annotated, 9));
18871
var int_string2 = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
18872
var int_stringNamed = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType), ImmutableArray.Create("a", "b"));
18890
var int_int = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, intType));
18891
var int_int_int = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, intType, intType));
18892
var string_string = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(stringType, stringType));
18931
var int_string1 = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
18932
var int_object1 = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, objectType));
18957
var int_string1 = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
18958
var int_string2 = tupleComp2.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
18960
var int_object = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, objectType));
18982
var int_string1 = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
18983
var int_string2 = tupleComp2.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
18984
var int_object = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, objectType));
19007
var int_string1 = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
19008
var int_string2 = tupleComp2.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
19009
var int_object = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, objectType));
19033
var int_string1 = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
19034
var int_string2 = tupleComp2.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
19035
var int_object = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, objectType));
19075
var int_string1 = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
19076
var int_object = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, objectType));
19077
var int_object_object = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, objectType, objectType));
19114
var int_string1 = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType));
19115
var int_object = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, objectType));
19116
var int_object_object = tupleComp1.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, objectType, objectType));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
752
return comp.
CreateTupleTypeSymbol
(elementTypes.GetPublicSymbols(), elementNames, elementLocations, elementNullableAnnotations);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
CSharpTypeInferenceService.TypeInferrer.cs (3)
1611
var type = Compilation.
CreateTupleTypeSymbol
(
2313
Compilation.
CreateTupleTypeSymbol
(
2347
return Compilation.
CreateTupleTypeSymbol
(elementTypes, elementNames, elementNullableAnnotations: GetNullableAnnotations(elementTypes));
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (33)
CodeGen\CodeGenTuples.vb (33)
7221
Assert.Throws(Of ArgumentNullException)(Sub() comp.
CreateTupleTypeSymbol
(elementTypes:=Nothing, elementNames:=Nothing))
7224
Assert.Throws(Of ArgumentException)(Sub() comp.
CreateTupleTypeSymbol
(elementTypes:=ImmutableArray(Of ITypeSymbol).Empty, elementNames:=Nothing))
7225
Assert.Throws(Of ArgumentException)(Sub() comp.
CreateTupleTypeSymbol
(elementTypes:=ImmutableArray.Create(intType), elementNames:=Nothing))
7228
Assert.Throws(Of ArgumentException)(Sub() comp.
CreateTupleTypeSymbol
(elementTypes:=ImmutableArray.Create(intType, intType), elementNames:=ImmutableArray.Create("Item1")))
7231
Assert.Throws(Of ArgumentNullException)(Sub() comp.
CreateTupleTypeSymbol
(elementTypes:=ImmutableArray.Create(intType, Nothing), elementNames:=Nothing))
7247
Dim tupleWithoutNames = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType), ImmutableArray.Create(Of String)(Nothing, Nothing))
7294
Dim tupleWithoutNames = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType), Nothing)
7312
Dim tupleWithoutNames = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType), ImmutableArray.Create("Alice", "Bob"))
7329
Dim tupleWithoutNames = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, intType), ImmutableArray.Create("Item2", "Item1"))
7346
Dim tuple8WithoutNames = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType, intType, stringType, intType, stringType, intType, stringType),
7367
Dim tuple8WithNames = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType, intType, stringType, intType, stringType, intType, stringType),
7388
Dim tuple9WithoutNames = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType, intType, stringType, intType, stringType, intType, stringType, intType),
7409
Dim tuple9WithNames = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, stringType, intType, stringType, intType, stringType, intType, stringType, intType),
7434
Dim tupleWithoutNames = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, ErrorTypeSymbol.UnknownResultType), Nothing)
7453
Dim tuple2 = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, intType), ImmutableArray.Create("123", " "))
7457
Dim tuple3 = comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(intType, intType), ImmutableArray.Create("return", "class"))
7484
Assert.Throws(Of ArgumentException)(Sub() comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(stringType, csType), Nothing))
7511
Dim tuple3 = DirectCast(comp.
CreateTupleTypeSymbol
(ImmutableArray.Create(Of ITypeSymbol)(intType, intType, intType, intType, intType, intType, intType, stringType, stringType),
7580
Dim tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes)
7583
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, Nothing)
7589
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, Nothing, Nothing, Nothing)
7592
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementNames:=Nothing)
7595
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementLocations:=Nothing)
7598
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations:=Nothing)
7673
Dim tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations:=Nothing)
7676
Dim ex = Assert.Throws(Of ArgumentException)(Function() comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations:=ImmutableArray(Of NullableAnnotation).Empty))
7679
tuple2 = comp.
CreateTupleTypeSymbol
(
7685
tuple2 = comp.
CreateTupleTypeSymbol
(
7691
tuple2 = comp.
CreateTupleTypeSymbol
(
7708
Dim tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations:=Nothing)
7712
Dim ex = Assert.Throws(Of ArgumentException)(Function() comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations:=CreateAnnotations(CodeAnalysis.NullableAnnotation.NotAnnotated, 8)))
7715
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations:=CreateAnnotations(CodeAnalysis.NullableAnnotation.None, 9))
7719
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations:=CreateAnnotations(CodeAnalysis.NullableAnnotation.Annotated, 9))