120 references to ConvertChecked
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (120)
CodeGen\CodeGenCheckedTests.cs (120)
2381CheckedConversionInExpressionTree_Implicit("char", "ushort", ConvertMethod.ConvertChecked); 2382CheckedConversionInExpressionTree_Implicit("char", "int", ConvertMethod.ConvertChecked); 2383CheckedConversionInExpressionTree_Implicit("char", "uint", ConvertMethod.ConvertChecked); 2384CheckedConversionInExpressionTree_Implicit("char", "long", ConvertMethod.ConvertChecked); 2385CheckedConversionInExpressionTree_Implicit("char", "ulong", ConvertMethod.ConvertChecked); 2392CheckedConversionInExpressionTree_Implicit("sbyte", "short", ConvertMethod.ConvertChecked); 2393CheckedConversionInExpressionTree_Implicit("sbyte", "int", ConvertMethod.ConvertChecked); 2394CheckedConversionInExpressionTree_Implicit("sbyte", "long", ConvertMethod.ConvertChecked); 2401CheckedConversionInExpressionTree_Implicit("byte", "short", ConvertMethod.ConvertChecked); 2402CheckedConversionInExpressionTree_Implicit("byte", "ushort", ConvertMethod.ConvertChecked); 2403CheckedConversionInExpressionTree_Implicit("byte", "int", ConvertMethod.ConvertChecked); 2404CheckedConversionInExpressionTree_Implicit("byte", "uint", ConvertMethod.ConvertChecked); 2405CheckedConversionInExpressionTree_Implicit("byte", "long", ConvertMethod.ConvertChecked); 2406CheckedConversionInExpressionTree_Implicit("byte", "ulong", ConvertMethod.ConvertChecked); 2413CheckedConversionInExpressionTree_Implicit("short", "int", ConvertMethod.ConvertChecked); 2414CheckedConversionInExpressionTree_Implicit("short", "long", ConvertMethod.ConvertChecked); 2421CheckedConversionInExpressionTree_Implicit("ushort", "int", ConvertMethod.ConvertChecked); 2422CheckedConversionInExpressionTree_Implicit("ushort", "uint", ConvertMethod.ConvertChecked); 2423CheckedConversionInExpressionTree_Implicit("ushort", "long", ConvertMethod.ConvertChecked); 2424CheckedConversionInExpressionTree_Implicit("ushort", "ulong", ConvertMethod.ConvertChecked); 2431CheckedConversionInExpressionTree_Implicit("int", "long", ConvertMethod.ConvertChecked); 2438CheckedConversionInExpressionTree_Implicit("uint", "long", ConvertMethod.ConvertChecked); 2439CheckedConversionInExpressionTree_Implicit("uint", "ulong", ConvertMethod.ConvertChecked); 2487CheckedConversionInExpressionTree_Explicit("char", "sbyte", ConvertMethod.ConvertChecked); 2488CheckedConversionInExpressionTree_Explicit("char", "byte", ConvertMethod.ConvertChecked); 2489CheckedConversionInExpressionTree_Explicit("char", "short", ConvertMethod.ConvertChecked); 2490CheckedConversionInExpressionTree_Explicit("char", "ushort", ConvertMethod.ConvertChecked); 2491CheckedConversionInExpressionTree_Explicit("char", "int", ConvertMethod.ConvertChecked); 2492CheckedConversionInExpressionTree_Explicit("char", "uint", ConvertMethod.ConvertChecked); 2493CheckedConversionInExpressionTree_Explicit("char", "long", ConvertMethod.ConvertChecked); 2494CheckedConversionInExpressionTree_Explicit("char", "ulong", ConvertMethod.ConvertChecked); 2500CheckedConversionInExpressionTree_Explicit("sbyte", "char", ConvertMethod.ConvertChecked); 2502CheckedConversionInExpressionTree_Explicit("sbyte", "byte", ConvertMethod.ConvertChecked); 2503CheckedConversionInExpressionTree_Explicit("sbyte", "short", ConvertMethod.ConvertChecked); 2504CheckedConversionInExpressionTree_Explicit("sbyte", "ushort", ConvertMethod.ConvertChecked); 2505CheckedConversionInExpressionTree_Explicit("sbyte", "int", ConvertMethod.ConvertChecked); 2506CheckedConversionInExpressionTree_Explicit("sbyte", "uint", ConvertMethod.ConvertChecked); 2507CheckedConversionInExpressionTree_Explicit("sbyte", "long", ConvertMethod.ConvertChecked); 2508CheckedConversionInExpressionTree_Explicit("sbyte", "ulong", ConvertMethod.ConvertChecked); 2514CheckedConversionInExpressionTree_Explicit("byte", "char", ConvertMethod.ConvertChecked); 2515CheckedConversionInExpressionTree_Explicit("byte", "sbyte", ConvertMethod.ConvertChecked); 2517CheckedConversionInExpressionTree_Explicit("byte", "short", ConvertMethod.ConvertChecked); 2518CheckedConversionInExpressionTree_Explicit("byte", "ushort", ConvertMethod.ConvertChecked); 2519CheckedConversionInExpressionTree_Explicit("byte", "int", ConvertMethod.ConvertChecked); 2520CheckedConversionInExpressionTree_Explicit("byte", "uint", ConvertMethod.ConvertChecked); 2521CheckedConversionInExpressionTree_Explicit("byte", "long", ConvertMethod.ConvertChecked); 2522CheckedConversionInExpressionTree_Explicit("byte", "ulong", ConvertMethod.ConvertChecked); 2528CheckedConversionInExpressionTree_Explicit("short", "char", ConvertMethod.ConvertChecked); 2529CheckedConversionInExpressionTree_Explicit("short", "sbyte", ConvertMethod.ConvertChecked); 2530CheckedConversionInExpressionTree_Explicit("short", "byte", ConvertMethod.ConvertChecked); 2532CheckedConversionInExpressionTree_Explicit("short", "ushort", ConvertMethod.ConvertChecked); 2533CheckedConversionInExpressionTree_Explicit("short", "int", ConvertMethod.ConvertChecked); 2534CheckedConversionInExpressionTree_Explicit("short", "uint", ConvertMethod.ConvertChecked); 2535CheckedConversionInExpressionTree_Explicit("short", "long", ConvertMethod.ConvertChecked); 2536CheckedConversionInExpressionTree_Explicit("short", "ulong", ConvertMethod.ConvertChecked); 2542CheckedConversionInExpressionTree_Explicit("ushort", "char", ConvertMethod.ConvertChecked); 2543CheckedConversionInExpressionTree_Explicit("ushort", "sbyte", ConvertMethod.ConvertChecked); 2544CheckedConversionInExpressionTree_Explicit("ushort", "byte", ConvertMethod.ConvertChecked); 2545CheckedConversionInExpressionTree_Explicit("ushort", "short", ConvertMethod.ConvertChecked); 2547CheckedConversionInExpressionTree_Explicit("ushort", "int", ConvertMethod.ConvertChecked); 2548CheckedConversionInExpressionTree_Explicit("ushort", "uint", ConvertMethod.ConvertChecked); 2549CheckedConversionInExpressionTree_Explicit("ushort", "long", ConvertMethod.ConvertChecked); 2550CheckedConversionInExpressionTree_Explicit("ushort", "ulong", ConvertMethod.ConvertChecked); 2556CheckedConversionInExpressionTree_Explicit("int", "char", ConvertMethod.ConvertChecked); 2557CheckedConversionInExpressionTree_Explicit("int", "sbyte", ConvertMethod.ConvertChecked); 2558CheckedConversionInExpressionTree_Explicit("int", "byte", ConvertMethod.ConvertChecked); 2559CheckedConversionInExpressionTree_Explicit("int", "short", ConvertMethod.ConvertChecked); 2560CheckedConversionInExpressionTree_Explicit("int", "ushort", ConvertMethod.ConvertChecked); 2562CheckedConversionInExpressionTree_Explicit("int", "uint", ConvertMethod.ConvertChecked); 2563CheckedConversionInExpressionTree_Explicit("int", "long", ConvertMethod.ConvertChecked); 2564CheckedConversionInExpressionTree_Explicit("int", "ulong", ConvertMethod.ConvertChecked); 2570CheckedConversionInExpressionTree_Explicit("uint", "char", ConvertMethod.ConvertChecked); 2571CheckedConversionInExpressionTree_Explicit("uint", "sbyte", ConvertMethod.ConvertChecked); 2572CheckedConversionInExpressionTree_Explicit("uint", "byte", ConvertMethod.ConvertChecked); 2573CheckedConversionInExpressionTree_Explicit("uint", "short", ConvertMethod.ConvertChecked); 2574CheckedConversionInExpressionTree_Explicit("uint", "ushort", ConvertMethod.ConvertChecked); 2575CheckedConversionInExpressionTree_Explicit("uint", "int", ConvertMethod.ConvertChecked); 2577CheckedConversionInExpressionTree_Explicit("uint", "long", ConvertMethod.ConvertChecked); 2578CheckedConversionInExpressionTree_Explicit("uint", "ulong", ConvertMethod.ConvertChecked); 2584CheckedConversionInExpressionTree_Explicit("long", "char", ConvertMethod.ConvertChecked); 2585CheckedConversionInExpressionTree_Explicit("long", "sbyte", ConvertMethod.ConvertChecked); 2586CheckedConversionInExpressionTree_Explicit("long", "byte", ConvertMethod.ConvertChecked); 2587CheckedConversionInExpressionTree_Explicit("long", "short", ConvertMethod.ConvertChecked); 2588CheckedConversionInExpressionTree_Explicit("long", "ushort", ConvertMethod.ConvertChecked); 2589CheckedConversionInExpressionTree_Explicit("long", "int", ConvertMethod.ConvertChecked); 2590CheckedConversionInExpressionTree_Explicit("long", "uint", ConvertMethod.ConvertChecked); 2592CheckedConversionInExpressionTree_Explicit("long", "ulong", ConvertMethod.ConvertChecked); 2598CheckedConversionInExpressionTree_Explicit("ulong", "char", ConvertMethod.ConvertChecked); 2599CheckedConversionInExpressionTree_Explicit("ulong", "sbyte", ConvertMethod.ConvertChecked); 2600CheckedConversionInExpressionTree_Explicit("ulong", "byte", ConvertMethod.ConvertChecked); 2601CheckedConversionInExpressionTree_Explicit("ulong", "short", ConvertMethod.ConvertChecked); 2602CheckedConversionInExpressionTree_Explicit("ulong", "ushort", ConvertMethod.ConvertChecked); 2603CheckedConversionInExpressionTree_Explicit("ulong", "int", ConvertMethod.ConvertChecked); 2604CheckedConversionInExpressionTree_Explicit("ulong", "uint", ConvertMethod.ConvertChecked); 2605CheckedConversionInExpressionTree_Explicit("ulong", "long", ConvertMethod.ConvertChecked); 2626CheckedConversionInExpressionTree_Explicit("float", "char", ConvertMethod.ConvertChecked); 2627CheckedConversionInExpressionTree_Explicit("float", "sbyte", ConvertMethod.ConvertChecked); 2628CheckedConversionInExpressionTree_Explicit("float", "byte", ConvertMethod.ConvertChecked); 2629CheckedConversionInExpressionTree_Explicit("float", "short", ConvertMethod.ConvertChecked); 2630CheckedConversionInExpressionTree_Explicit("float", "ushort", ConvertMethod.ConvertChecked); 2631CheckedConversionInExpressionTree_Explicit("float", "int", ConvertMethod.ConvertChecked); 2632CheckedConversionInExpressionTree_Explicit("float", "uint", ConvertMethod.ConvertChecked); 2633CheckedConversionInExpressionTree_Explicit("float", "long", ConvertMethod.ConvertChecked); 2634CheckedConversionInExpressionTree_Explicit("float", "ulong", ConvertMethod.ConvertChecked); 2640CheckedConversionInExpressionTree_Explicit("double", "char", ConvertMethod.ConvertChecked); 2641CheckedConversionInExpressionTree_Explicit("double", "sbyte", ConvertMethod.ConvertChecked); 2642CheckedConversionInExpressionTree_Explicit("double", "byte", ConvertMethod.ConvertChecked); 2643CheckedConversionInExpressionTree_Explicit("double", "short", ConvertMethod.ConvertChecked); 2644CheckedConversionInExpressionTree_Explicit("double", "ushort", ConvertMethod.ConvertChecked); 2645CheckedConversionInExpressionTree_Explicit("double", "int", ConvertMethod.ConvertChecked); 2646CheckedConversionInExpressionTree_Explicit("double", "uint", ConvertMethod.ConvertChecked); 2647CheckedConversionInExpressionTree_Explicit("double", "long", ConvertMethod.ConvertChecked); 2648CheckedConversionInExpressionTree_Explicit("double", "ulong", ConvertMethod.ConvertChecked); 2654CheckedConversionInExpressionTree_Explicit("E", "int", ConvertMethod.ConvertChecked, "enum E { }"); 2655CheckedConversionInExpressionTree_Explicit("int", "E", ConvertMethod.ConvertChecked, "enum E { }"); 2656CheckedConversionInExpressionTree_Explicit("E", "int", ConvertMethod.ConvertChecked, "enum E : short { }"); 2657CheckedConversionInExpressionTree_Explicit("int", "E", ConvertMethod.ConvertChecked, "enum E : short { }"); 2697case ConvertMethod.ConvertChecked: 2744case ConvertMethod.ConvertChecked: 2784expectedMethod == ConvertMethod.ConvertChecked);