84 references to CreateTupleTypeSymbol
Microsoft.CodeAnalysis (1)
Compilation\Compilation.cs (1)
1342
return
CreateTupleTypeSymbol
(elementTypes, elementNames, elementLocations, elementNullableAnnotations: default);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
1583
var type = Compilation.
CreateTupleTypeSymbol
(
2259
Compilation.
CreateTupleTypeSymbol
(elementTypes, elementNames))];
2289
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)
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),
6719
var tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes);
6722
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, default);
6728
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, default, default, default);
6731
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, default(ImmutableArray<string>), default(ImmutableArray<Location>), default(ImmutableArray<CodeAnalysis.NullableAnnotation>));
6734
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementNames: default);
6737
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementLocations: default);
6740
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations: default);
6760
var tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes);
6763
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, default);
6769
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, default, default, default);
6772
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, default(ImmutableArray<string>), default(ImmutableArray<Location>), default(ImmutableArray<CodeAnalysis.NullableAnnotation>));
6775
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementNames: default);
6778
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementLocations: default);
6781
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations: default);
6868
var tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations: default);
6871
var e = Assert.Throws<ArgumentException>(() => comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations: ImmutableArray<CodeAnalysis.NullableAnnotation>.Empty));
6874
tuple2 = comp.
CreateTupleTypeSymbol
(
6880
tuple2 = comp.
CreateTupleTypeSymbol
(
6887
tuple2 = comp.
CreateTupleTypeSymbol
(
6907
var tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations: default);
6911
var e = Assert.Throws<ArgumentException>(() => comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations: CreateAnnotations(CodeAnalysis.NullableAnnotation.NotAnnotated, 8)));
6914
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations: CreateAnnotations(CodeAnalysis.NullableAnnotation.None, 9));
6918
tuple2 = comp.
CreateTupleTypeSymbol
(elementTypes, elementNullableAnnotations: CreateAnnotations(CodeAnalysis.NullableAnnotation.Annotated, 9));
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.CSharp.Test.Utilities (1)
Extensions.cs (1)
792
return comp.
CreateTupleTypeSymbol
(elementTypes.GetPublicSymbols(), elementNames, elementLocations, elementNullableAnnotations);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
1583
var type = Compilation.
CreateTupleTypeSymbol
(
2259
Compilation.
CreateTupleTypeSymbol
(elementTypes, elementNames))];
2289
return Compilation.
CreateTupleTypeSymbol
(elementTypes, elementNames, elementNullableAnnotations: GetNullableAnnotations(elementTypes));
Microsoft.CodeAnalysis.Features (2)
ExtractMethod\MethodExtractor.Analyzer.cs (1)
207
return compilation.
CreateTupleTypeSymbol
(
ExtractMethod\MethodExtractor.CodeGenerator.cs (1)
487
return compilation.
CreateTupleTypeSymbol
(
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))
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
1583
var type = Compilation.
CreateTupleTypeSymbol
(
2259
Compilation.
CreateTupleTypeSymbol
(elementTypes, elementNames))];
2289
return Compilation.
CreateTupleTypeSymbol
(elementTypes, elementNames, elementNullableAnnotations: GetNullableAnnotations(elementTypes));
System.Text.Json.SourceGeneration (1)
Helpers\RoslynExtensions.cs (1)
72
type = compilation.
CreateTupleTypeSymbol
(erasedElements);