19 references to GetWellKnownType
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (12)
CodeGen\CodeGenTupleTest.cs (12)
6605
var twoStrings = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_T2).Construct(stringType, stringType);
6607
var tuple2Underlying = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_TRest).Construct(intType, intType, intType, intType, intType, intType, intType, twoStringsWithNames);
18864
var int_string1 = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_T2).Construct(intType, stringType);
18888
var int_int1 = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_T2).Construct(intType, intType);
18928
var int_string2 = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_T2).Construct(intType, stringType);
18929
var int_object2 = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_T2).Construct(intType, objectType);
19147
var int_string1 = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_T2).Construct(intType, stringType);
19148
var int_object = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_T2).Construct(intType, objectType);
19149
var int_object_object = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_T3).Construct(intType, objectType, objectType);
19186
var int_string1 = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_T2).Construct(intType, stringType);
19187
var int_object = comp.
GetWellKnownType
(WellKnownType.System_ValueTuple_T2).Construct(intType, objectType);
19188
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)
3777
var actionType = comp.
GetWellKnownType
(WellKnownType.System_Action_T).Construct(stringType);