19 references to GetWellKnownType
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (12)
CodeGen\CodeGenTupleTest.cs (12)
6600
var twoStrings = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_T2).Construct(stringType, stringType);
6602
var tuple2Underlying = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_TRest).Construct(intType, intType, intType, intType, intType, intType, intType, twoStringsWithNames);
18870
var int_string1 = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_T2).Construct(intType, stringType);
18894
var int_int1 = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_T2).Construct(intType, intType);
18934
var int_string2 = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_T2).Construct(intType, stringType);
18935
var int_object2 = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_T2).Construct(intType, objectType);
19153
var int_string1 = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_T2).Construct(intType, stringType);
19154
var int_object = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_T2).Construct(intType, objectType);
19155
var int_object_object = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_T3).Construct(intType, objectType, objectType);
19192
var int_string1 = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_T2).Construct(intType, stringType);
19193
var int_object = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_T2).Construct(intType, objectType);
19194
var int_object_object = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_T3).Construct(intType, objectType, objectType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Compilation\GetSemanticInfoBrokenCodeTests.cs (1)
248
Assert.Equal(comp.
GetWellKnownType
(WellKnownType.System_Type), info.Type);
Compilation\GetSemanticInfoTests.cs (5)
5523
var otherFuncType = comp.
GetWellKnownType
(WellKnownType.System_Func_T).Construct(comp.GetSpecialType(SpecialType.System_Int32));
5537
var otherFuncType = comp.
GetWellKnownType
(WellKnownType.System_Func_T).Construct(comp.GetSpecialType(SpecialType.System_Int32));
5623
var typeFuncB = comp.
GetWellKnownType
(WellKnownType.System_Func_T).Construct(typeB);
5670
var typeFuncC = comp.
GetWellKnownType
(WellKnownType.System_Func_T).Construct(typeC);
5728
var typeFunc = comp.
GetWellKnownType
(WellKnownType.System_Func_T2);
Compilation\SemanticModelAPITests.cs (1)
3746
var actionType = comp.
GetWellKnownType
(WellKnownType.System_Action_T).Construct(stringType);