5 writes to Type
Microsoft.CodeAnalysis.CSharp.Test.Utilities (5)
CompilationTestUtils.cs (5)
238
summary.
Type
= typeInfo.Type;
249
summary.
Type
= typeInfo.Type;
266
summary.
Type
= typeInfo.Type;
275
summary.
Type
= typeInfo.Type;
312
summary.
Type
= typeInfo.Type;
926 references to Type
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (148)
Semantics\ExpressionBodiedMemberTests.cs (11)
75
Assert.Equal(SpecialType.System_Int32, semanticInfo.
Type
.SpecialType);
139
Assert.Equal(SpecialType.System_Int32, semanticInfo.
Type
.SpecialType);
157
Assert.Equal("C", semanticInfo.
Type
.Name);
178
Assert.Equal(SpecialType.System_String, semanticInfo.
Type
.SpecialType);
226
Assert.Equal(SpecialType.System_Int32, semanticInfo.
Type
.SpecialType);
259
Assert.Equal(TypeKind.TypeParameter, semanticInfo.
Type
.TypeKind);
260
Assert.Equal("T", semanticInfo.
Type
.Name);
264
Assert.Equal(m.TypeParameters[0], semanticInfo.
Type
.GetSymbol());
266
Assert.Equal(m, semanticInfo.
Type
.ContainingSymbol.GetSymbol());
282
Assert.Equal("Program", semanticInfo.
Type
.Name);
315
Assert.Equal(SpecialType.System_Int32, semanticInfo.
Type
.SpecialType);
Semantics\FunctionPointerTests.cs (2)
3966
Assert.Equal("delegate*<?, System.Void>", semanticInfo.
Type
.ToTestDisplayString());
3967
Assert.Equal(semanticInfo.
Type
, semanticInfo.ConvertedType, SymbolEqualityComparer.IncludeNullability);
Semantics\InteractiveSemanticModelTests.cs (17)
85
Assert.NotNull(bindInfo.
Type
);
86
Assert.Equal("System.Void", bindInfo.
Type
.ToTestDisplayString());
95
Assert.Null(bindInfo.
Type
);
107
Assert.NotNull(bindInfo.
Type
);
108
Assert.Equal("System.Boolean", bindInfo.
Type
.ToTestDisplayString());
126
Assert.Equal(SpecialType.System_Int32, bindInfo.
Type
.SpecialType);
141
Assert.Equal(SpecialType.System_Int32, bindInfo.
Type
.SpecialType);
157
Assert.Equal("System.Random", semanticInfo.
Type
.ToTestDisplayString());
158
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
182
Assert.Equal("var", semanticInfo.
Type
.ToTestDisplayString());
183
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
208
Assert.Equal("Script.var", semanticInfo.
Type
.ToTestDisplayString());
209
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
236
Assert.Equal("Script.var", semanticInfo.
Type
.ToTestDisplayString());
237
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
268
Assert.Equal(SpecialType.System_Char, semanticInfo.
Type
.SpecialType);
350
Assert.NotNull(bindInfo.
Type
);
Semantics\InterpolationTests.cs (3)
4607
Assert.Equal(SpecialType.System_String, semanticInfo.
Type
.SpecialType);
4827
Assert.Equal("CustomHandler", semanticInfo.
Type
.ToTestDisplayString());
4834
Assert.Equal(SpecialType.System_String, semanticInfo.
Type
.SpecialType);
Semantics\QueryTests.cs (5)
2179
Assert.Equal(SpecialType.System_Int32, info.
Type
.SpecialType);
2209
Assert.Equal(SpecialType.System_Int32, info.
Type
.SpecialType);
2236
Assert.Equal(SpecialType.System_Int32, info.
Type
.SpecialType);
2242
Assert.Equal(SpecialType.System_Int32, info.
Type
.SpecialType);
2248
Assert.Equal(SpecialType.System_Int32, info2.
Type
.SpecialType);
Semantics\RawInterpolationTests_Handler.cs (3)
2908
Assert.Equal(SpecialType.System_String, semanticInfo.
Type
.SpecialType);
3128
Assert.Equal("CustomHandler", semanticInfo.
Type
.ToTestDisplayString());
3135
Assert.Equal(SpecialType.System_String, semanticInfo.
Type
.SpecialType);
Semantics\ScriptSemanticsTests.cs (2)
251
Assert.Equal(TypeKind.Error, summary.
Type
.TypeKind);
568
Assert.Equal(TypeKind.Error, summary.
Type
.TypeKind);
Semantics\StackAllocInitializerTests.cs (57)
374
Assert.Equal("System.String*", stackallocInfo.
Type
.ToTestDisplayString());
380
Assert.Equal("System.String", element0Info.
Type
.ToTestDisplayString());
388
Assert.Equal("<empty anonymous type>*", stackallocInfo.
Type
.ToTestDisplayString());
394
Assert.Equal("<empty anonymous type>", element0Info.
Type
.ToTestDisplayString());
402
Assert.Equal("Test.S*", stackallocInfo.
Type
.ToTestDisplayString());
408
Assert.Equal("Test.S", element0Info.
Type
.ToTestDisplayString());
450
Assert.Equal("System.Span<System.String>", stackallocInfo.
Type
.ToTestDisplayString());
456
Assert.Equal("System.String", element0Info.
Type
.ToTestDisplayString());
464
Assert.Equal("System.Span<<empty anonymous type>>", stackallocInfo.
Type
.ToTestDisplayString());
470
Assert.Equal("<empty anonymous type>", element0Info.
Type
.ToTestDisplayString());
478
Assert.Equal("System.Span<Test.S>", stackallocInfo.
Type
.ToTestDisplayString());
484
Assert.Equal("Test.S", element0Info.
Type
.ToTestDisplayString());
1054
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj1Value.
Type
).PointedAtType.SpecialType);
1062
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.
Type
).PointedAtType.SpecialType);
1070
Assert.Equal("Span", obj3Value.
Type
.Name);
1078
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.
Type
).PointedAtType.SpecialType);
1086
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj5Value.
Type
).PointedAtType.SpecialType);
1157
Assert.Equal("Span", obj1Value.
Type
.Name);
1165
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.
Type
).PointedAtType.SpecialType);
1173
Assert.Equal("Span", obj3Value.
Type
.Name);
1181
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.
Type
).PointedAtType.SpecialType);
1189
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj5Value.
Type
).PointedAtType.SpecialType);
2366
Assert.Equal("System.Double*", stackallocInfo.
Type
.ToTestDisplayString());
2372
Assert.Equal("System.Int32", element0Info.
Type
.ToTestDisplayString());
2378
Assert.Equal("System.Double", element1Info.
Type
.ToTestDisplayString());
2384
Assert.Equal("System.Int32", sizeInfo.
Type
.ToTestDisplayString());
2394
Assert.Equal("System.Span<System.Double>", stackallocInfo.
Type
.ToTestDisplayString());
2400
Assert.Equal("System.Int32", element0Info.
Type
.ToTestDisplayString());
2406
Assert.Equal("System.Double", element1Info.
Type
.ToTestDisplayString());
2412
Assert.Equal("System.Int32", sizeInfo.
Type
.ToTestDisplayString());
2422
Assert.Equal("System.Span<System.Double>", stackallocInfo.
Type
.ToTestDisplayString());
2428
Assert.Equal("System.Int32", element0Info.
Type
.ToTestDisplayString());
2434
Assert.Equal("System.Double", element1Info.
Type
.ToTestDisplayString());
2440
Assert.Equal("System.Int32", sizeInfo.
Type
.ToTestDisplayString());
2472
Assert.Equal("System.Double*", stackallocInfo.
Type
.ToTestDisplayString());
2478
Assert.Equal("System.Int32", element0Info.
Type
.ToTestDisplayString());
2484
Assert.Equal("System.Double", element1Info.
Type
.ToTestDisplayString());
2494
Assert.Equal("System.Span<System.Double>", stackallocInfo.
Type
.ToTestDisplayString());
2500
Assert.Equal("System.Int32", element0Info.
Type
.ToTestDisplayString());
2506
Assert.Equal("System.Double", element1Info.
Type
.ToTestDisplayString());
2516
Assert.Equal("System.Span<System.Double>", stackallocInfo.
Type
.ToTestDisplayString());
2522
Assert.Equal("System.Int32", element0Info.
Type
.ToTestDisplayString());
2528
Assert.Equal("System.Double", element1Info.
Type
.ToTestDisplayString());
2572
Assert.Equal("System.Double*", stackallocInfo.
Type
.ToTestDisplayString());
2578
Assert.Equal("System.Int16", element0Info.
Type
.ToTestDisplayString());
2584
Assert.Equal("System.Int16", element1Info.
Type
.ToTestDisplayString());
2590
Assert.Equal("System.Int16", sizeInfo.
Type
.ToTestDisplayString());
2600
Assert.Equal("System.Double*", stackallocInfo.
Type
.ToTestDisplayString());
2606
Assert.Equal("System.Int16", element0Info.
Type
.ToTestDisplayString());
2612
Assert.Equal("System.Int32", element1Info.
Type
.ToTestDisplayString());
2618
Assert.Equal("System.Int32", sizeInfo.
Type
.ToTestDisplayString());
2656
Assert.Equal("System.Double*", stackallocInfo.
Type
.ToTestDisplayString());
2662
Assert.Equal("System.Double", element0Info.
Type
.ToTestDisplayString());
2668
Assert.Equal("System.Double", element1Info.
Type
.ToTestDisplayString());
2678
Assert.Equal("System.Span<System.Double>", stackallocInfo.
Type
.ToTestDisplayString());
2684
Assert.Equal("System.Double", element0Info.
Type
.ToTestDisplayString());
2690
Assert.Equal("System.Int32", element1Info.
Type
.ToTestDisplayString());
Semantics\StackAllocSpanExpressionsTests.cs (10)
60
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj1Value.
Type
).PointedAtType.SpecialType);
68
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.
Type
).PointedAtType.SpecialType);
76
Assert.Equal("Span", obj3Value.
Type
.Name);
84
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.
Type
).PointedAtType.SpecialType);
92
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj5Value.
Type
).PointedAtType.SpecialType);
135
Assert.Equal("Span", obj1Value.
Type
.Name);
143
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.
Type
).PointedAtType.SpecialType);
151
Assert.Equal("Span", obj3Value.
Type
.Name);
159
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.
Type
).PointedAtType.SpecialType);
167
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj5Value.
Type
).PointedAtType.SpecialType);
Semantics\UnsafeTests.cs (38)
7864
Assert.Equal(structPointerType, receiverSummary.
Type
.GetSymbol());
7873
Assert.Null(methodGroupSummary.
Type
);
7882
Assert.Equal(SpecialType.System_Void, callSummary.
Type
.SpecialType);
7931
Assert.Equal(structType, receiverSummary.
Type
.GetSymbol());
7938
Assert.Null(methodGroupSummary.
Type
);
7945
Assert.Equal(SpecialType.System_Void, callSummary.
Type
.SpecialType);
7946
Assert.Equal(callSummary.
Type
, callSummary.ConvertedType);
8175
Assert.Equal(intPointerType, receiverSummary.
Type
.GetSymbol());
8187
Assert.Equal(intType, indexSummary.
Type
.GetSymbol());
8196
Assert.Equal(intType, accessSummary.
Type
.GetSymbol());
8242
Assert.Equal(intPointerType, receiverSummary.
Type
.GetSymbol());
8255
Assert.Equal(intType, accessSummary.
Type
.GetSymbol());
8300
Assert.Equal(intPointerType, receiverSummary.
Type
.GetSymbol());
8313
Assert.Equal(intType, accessSummary.
Type
.GetSymbol());
8882
Assert.Equal(pointerType, summary.
Type
.GetSymbol());
8917
Assert.Equal(SpecialType.System_Int64, summary.
Type
.SpecialType);
9344
Assert.Equal(SpecialType.System_Boolean, summary.
Type
.SpecialType);
10244
Assert.Equal(charPointerSymbol, summary0.
Type
.GetSymbol());
10249
Assert.Equal(arraySymbol.Type, summary1.
Type
.GetSymbol());
10253
Assert.Equal(stringSymbol, summary2.
Type
.GetSymbol());
10311
Assert.Equal(charPointerSymbol, summary0.
Type
.GetSymbol());
10318
Assert.Equal(arraySymbol.Type, summary1.
Type
.GetSymbol());
10324
Assert.Equal(stringSymbol, summary2.
Type
.GetSymbol());
10637
Assert.Equal(type, typeSummary.
Type
);
10649
Assert.Equal(SpecialType.System_Int32, sizeOfSummary.
Type
.SpecialType);
10650
Assert.Equal(sizeOfSummary.
Type
, sizeOfSummary.ConvertedType);
10699
Assert.Equal(type, typeSummary.
Type
);
10711
Assert.Equal(SpecialType.System_Int32, sizeOfSummary.
Type
.SpecialType);
10712
Assert.Equal(sizeOfSummary.
Type
, sizeOfSummary.ConvertedType);
10759
Assert.Equal(type, typeSummary.
Type
);
10771
Assert.Equal(SpecialType.System_Int32, sizeOfSummary.
Type
.SpecialType);
10772
Assert.Equal(sizeOfSummary.
Type
, sizeOfSummary.ConvertedType);
11311
Assert.Equal(SpecialType.System_Char, ((IPointerTypeSymbol)stackAllocSummary.
Type
).PointedAtType.SpecialType);
11323
Assert.Equal(SpecialType.System_Char, typeSummary.
Type
.SpecialType);
11324
Assert.Equal(typeSummary.
Type
, typeSummary.ConvertedType);
11326
Assert.Equal(typeSummary.Symbol, typeSummary.
Type
);
11335
Assert.Equal(SpecialType.System_Int16, countSummary.
Type
.SpecialType);
11339
Assert.Equal(countSummary.
Type
, countSymbol.Type);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (769)
Compilation\GetSemanticInfoTests.cs (15)
979
Assert.Equal("Boolean", info.
Type
.Name);
1143
Assert.Equal(SpecialType.System_Boolean, info.
Type
.SpecialType);
1167
Assert.Equal(systemActionType, bindInfo.
Type
);
1196
Assert.Equal(systemActionType, bindInfo.
Type
);
1221
Assert.Equal(systemActionType, bindInfo.
Type
);
1244
Assert.Null(bindInfo.
Type
);
1270
Assert.Equal(systemActionType, bindInfo.
Type
);
1298
Assert.Equal(systemActionType, bindInfo.
Type
);
1325
Assert.Equal(SpecialType.System_Void, bindInfo.
Type
.SpecialType);
1352
Assert.Equal(SpecialType.System_Void, bindInfo.
Type
.SpecialType);
1380
Assert.Equal(SpecialType.System_Void, bindInfo.
Type
.SpecialType);
1422
Assert.Equal(SpecialType.System_Int32, bindInfo.
Type
.SpecialType);
1463
Assert.Equal(SpecialType.System_Int32, bindInfo.
Type
.SpecialType); //still have the type since all candidates agree
1497
Assert.Equal(TypeKind.Error, bindInfo.
Type
.TypeKind);
4305
Assert.Null(info.
Type
);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (27)
2257
Assert.NotNull(info.
Type
);
2258
Assert.Equal("String", info.
Type
.Name);
2293
Assert.NotNull(info.
Type
);
2294
Assert.Equal("String", info.
Type
.Name);
2330
Assert.Equal(TypeKind.Error, info.
Type
.TypeKind);
2366
Assert.NotNull(info.
Type
);
2403
Assert.Null(info.
Type
);
2432
Assert.NotNull(info.
Type
);
2433
Assert.Equal("C", info.
Type
.Name);
2464
Assert.NotNull(info.
Type
);
2465
Assert.Equal("C", info.
Type
.Name);
2472
Assert.NotNull(info.
Type
);
2473
Assert.Equal("Int32", info.
Type
.Name);
2502
Assert.Null(info.
Type
);
2538
Assert.NotNull(info.
Type
);
2540
Assert.Equal("D", info.
Type
.Name);
2541
Assert.Equal("N", info.
Type
.ContainingNamespace.Name);
2568
Assert.NotNull(info.
Type
);
2569
Assert.Equal("String", info.
Type
.Name);
2598
Assert.Null(info.
Type
);
3240
Assert.NotNull(info.
Type
);
3241
Assert.Equal("strin", info.
Type
.Name);
3242
Assert.Equal(compilation.Assembly.GlobalNamespace, info.
Type
.ContainingSymbol); //error type resides in global namespace
3273
Assert.Null(initInfo.
Type
);
3288
Assert.Null(argInfo.
Type
);
4093
Assert.Equal("System.Int32", semanticInfoExpression.
Type
.ToTestDisplayString());
4098
Assert.Equal("System.Console", semanticInfoExpression.
Type
.ToTestDisplayString());
Compilation\SemanticModelGetSemanticInfoTests.cs (663)
47
Assert.Null(semanticInfo.
Type
);
84
Assert.Equal("K<System.Int32>", semanticInfo.
Type
.ToTestDisplayString());
85
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
115
Assert.Equal("K<T>", semanticInfo.
Type
.ToTestDisplayString());
116
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
149
Assert.Equal("K<T>", semanticInfo.
Type
.ToTestDisplayString());
150
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
190
Assert.Equal("K<T>", semanticInfo.
Type
.ToTestDisplayString());
191
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
231
Assert.Equal("K<T>", semanticInfo.
Type
.ToTestDisplayString());
232
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
271
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
272
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
308
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
309
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
342
Assert.Equal(SpecialType.System_String, semanticInfo.
Type
.SpecialType);
404
Assert.Null(semanticInfo.
Type
);
430
Assert.Equal(SpecialType.System_String, semanticInfo.
Type
.SpecialType);
461
Assert.Equal("K", semanticInfo.
Type
.ToTestDisplayString());
462
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
501
Assert.Equal("?", semanticInfo.
Type
.ToTestDisplayString());
502
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
544
Assert.Equal("N1.A", semanticInfo.
Type
.ToTestDisplayString());
545
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
592
Assert.Equal("N1.A", semanticInfo.
Type
.ToTestDisplayString());
593
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
640
Assert.Equal("N1.A<System.Int32>", semanticInfo.
Type
.ToTestDisplayString());
641
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
693
Assert.Equal("I1.P", semanticInfo.
Type
.ToTestDisplayString());
694
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
724
Assert.Equal("System.Object", semanticInfo.
Type
.ToTestDisplayString());
725
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
760
Assert.Equal("System.Object", semanticInfo.
Type
.ToTestDisplayString());
761
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
796
Assert.Null(semanticInfo.
Type
);
1642
Assert.Equal("C", semanticInfo.
Type
.ToTestDisplayString());
1643
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
1688
Assert.Null(semanticInfo.
Type
);
1718
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
1719
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
1748
Assert.Null(semanticInfo.
Type
);
1778
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
1779
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
1807
Assert.Equal("System.Boolean", semanticInfo.
Type
.ToTestDisplayString());
1808
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
1837
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
1838
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
1867
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
1868
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
1897
Assert.Equal("System.String", semanticInfo.
Type
.ToTestDisplayString());
1898
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
1926
Assert.Equal("System.String", semanticInfo.
Type
.ToTestDisplayString());
1927
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
1956
Assert.Equal("System.String", semanticInfo.
Type
.ToTestDisplayString());
1957
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
1986
Assert.Equal("System.UInt32", semanticInfo.
Type
.ToTestDisplayString());
1987
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
2016
Assert.Equal("System.UInt64?", semanticInfo.
Type
.ToTestDisplayString());
2017
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
2048
Assert.Equal("System.Boolean", semanticInfo.
Type
.ToTestDisplayString());
2049
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
2080
Assert.Equal("System.Boolean", semanticInfo.
Type
.ToTestDisplayString());
2081
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
2117
Assert.Equal("System.Exception", semanticInfo.
Type
.ToTestDisplayString());
2118
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
2150
Assert.Equal("System.Void", semanticInfo.
Type
.ToTestDisplayString());
2151
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
2190
Assert.Equal("N1.I1", semanticInfo.
Type
.ToTestDisplayString());
2191
Assert.Equal(TypeKind.Interface, semanticInfo.
Type
.TypeKind);
2220
Assert.Null(semanticInfo.
Type
);
2262
Assert.Equal("A.Goo", semanticInfo.
Type
.ToTestDisplayString());
2263
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
2297
Assert.Equal("System.String", semanticInfo.
Type
.ToTestDisplayString());
2298
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
2347
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
2348
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
2393
Assert.Equal("System.Void", semanticInfo.
Type
.ToTestDisplayString());
2394
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
2436
Assert.Equal("System.Void", semanticInfo.
Type
.ToTestDisplayString());
2437
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
2491
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
2492
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
2543
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
2544
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
2575
Assert.Equal("Program", semanticInfo.
Type
.ToTestDisplayString());
2576
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
2613
Assert.Null(semanticInfo.
Type
);
2648
Assert.Equal("A", semanticInfo.
Type
.ToTestDisplayString());
2649
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
2689
Assert.Equal("System.Void", semanticInfo.
Type
.ToTestDisplayString());
2690
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
2732
Assert.Null(semanticInfo.
Type
);
2782
Assert.Null(semanticInfo.
Type
);
2828
Assert.Null(semanticInfo.
Type
);
2869
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
2870
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
2907
Assert.Null(semanticInfo.
Type
);
2945
Assert.Equal("System.Void", semanticInfo.
Type
.ToTestDisplayString());
2946
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
2981
Assert.Equal("Test.NestedTest.NestedNestedTest", semanticInfo.
Type
.ToTestDisplayString());
2982
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
3017
Assert.Null(semanticInfo.
Type
);
3071
Assert.Equal("System.String", semanticInfo.
Type
.ToTestDisplayString());
3072
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
3116
Assert.Equal("System.String", semanticInfo.
Type
.ToTestDisplayString());
3117
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
3158
Assert.Null(semanticInfo.
Type
);
3200
Assert.Null(semanticInfo.
Type
);
3246
Assert.Null(semanticInfo.
Type
);
3285
Assert.Null(semanticInfo.
Type
);
3321
Assert.Null(semanticInfo.
Type
);
3358
Assert.Null(semanticInfo.
Type
);
3393
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
3394
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
3424
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
3425
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
3456
Assert.Equal("System.Byte", semanticInfo.
Type
.ToTestDisplayString());
3457
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
3491
Assert.Equal("System.Void", semanticInfo.
Type
.ToTestDisplayString());
3492
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
3522
Assert.Equal("B", semanticInfo.
Type
.ToTestDisplayString());
3523
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
3556
Assert.Null(semanticInfo.
Type
);
3588
Assert.Equal("N1.N2.A1", semanticInfo.
Type
.ToTestDisplayString());
3589
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
3626
Assert.Equal("H<A>", semanticInfo.
Type
.ToTestDisplayString());
3627
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
3670
Assert.Equal("H<H<A>, H<A>>", semanticInfo.
Type
.ToTestDisplayString());
3671
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
3704
Assert.Equal("N1.N2.A2.A1", semanticInfo.
Type
.ToTestDisplayString());
3705
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
3738
Assert.Equal("N1.NC1.A1", semanticInfo.
Type
.ToTestDisplayString());
3739
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
3772
Assert.Equal("A.B", semanticInfo.
Type
.ToTestDisplayString());
3773
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
3802
Assert.Equal("DateTime", semanticInfo.
Type
.ToTestDisplayString());
3803
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
3834
Assert.Equal("C<System.Int32>.Field", semanticInfo.
Type
.ToTestDisplayString());
3835
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
3863
Assert.Equal("C", semanticInfo.
Type
.ToTestDisplayString());
3864
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
3898
Assert.Equal("T.T", semanticInfo.
Type
.ToTestDisplayString());
3899
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
3936
Assert.Null(semanticInfo.
Type
);
3971
Assert.Equal("B.Y.Z", semanticInfo.
Type
.ToTestDisplayString());
3972
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
4006
Assert.Equal("A<B.Y.Z>", semanticInfo.
Type
.ToTestDisplayString());
4007
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
4037
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
4038
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
4068
Assert.Equal("C", semanticInfo.
Type
.ToTestDisplayString());
4069
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
4107
Assert.Null(semanticInfo.
Type
);
4134
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
4135
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
4158
Assert.Equal("List<System.Int32>", semanticInfo.
Type
.ToTestDisplayString());
4159
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
4184
Assert.Equal("List<System.Int32>", semanticInfo.
Type
.ToTestDisplayString());
4185
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
4214
Assert.Null(semanticInfo.
Type
);
4245
Assert.Equal("C<T1>", semanticInfo.
Type
.ToTestDisplayString());
4246
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
4279
Assert.Equal("System.Void", semanticInfo.
Type
.ToTestDisplayString());
4280
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
4317
Assert.Equal("System.Void", semanticInfo.
Type
.ToTestDisplayString());
4318
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
4371
Assert.Equal("F", semanticInfo.
Type
.ToTestDisplayString());
4372
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
4385
Assert.Equal(SymbolKind.Namespace, semanticInfo.
Type
.ContainingSymbol.Kind);
4386
Assert.True(((INamespaceSymbol)semanticInfo.
Type
.ContainingSymbol).IsGlobalNamespace);
4404
Assert.Null(semanticInfo.
Type
);
4442
Assert.Equal("System.String", semanticInfo.
Type
.ToTestDisplayString());
4443
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
4473
Assert.Equal("System.Object", semanticInfo.
Type
.ToTestDisplayString());
4474
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
4502
Assert.Equal("System.String", semanticInfo.
Type
.ToTestDisplayString());
4520
Assert.Equal("System.Int16", semanticInfo.
Type
.ToTestDisplayString());
4543
Assert.Null(semanticInfo.
Type
);
4568
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
4569
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
4606
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
4607
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
4642
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
4643
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
4672
Assert.Equal("E", semanticInfo.
Type
.ToTestDisplayString());
4673
Assert.Equal(TypeKind.Enum, semanticInfo.
Type
.TypeKind);
4710
Assert.Equal("E", semanticInfo.
Type
.ToTestDisplayString());
4711
Assert.Equal(TypeKind.Enum, semanticInfo.
Type
.TypeKind);
4746
Assert.Equal("E", semanticInfo.
Type
.ToTestDisplayString());
4747
Assert.Equal(TypeKind.Enum, semanticInfo.
Type
.TypeKind);
4782
Assert.Equal("E", semanticInfo.
Type
.ToTestDisplayString());
4783
Assert.Equal(TypeKind.Enum, semanticInfo.
Type
.TypeKind);
4813
Assert.Equal("E", semanticInfo.
Type
.ToTestDisplayString());
4814
Assert.Equal(TypeKind.Enum, semanticInfo.
Type
.TypeKind);
4850
Assert.Equal("System.String", semanticInfo.
Type
.ToTestDisplayString());
4851
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
4877
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
4878
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
4918
Assert.Null(semanticInfo.
Type
);
4963
Assert.Equal("Class1", semanticInfo.
Type
.ToTestDisplayString());
4964
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
5015
Assert.Equal("Class1", semanticInfo.
Type
.ToTestDisplayString());
5016
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
5068
Assert.Null(semanticInfo.
Type
);
5105
Assert.Equal("Class1", semanticInfo.
Type
.ToTestDisplayString());
5106
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
5152
Assert.Equal("Class1", semanticInfo.
Type
.ToTestDisplayString());
5153
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
5198
Assert.Equal("Class1", semanticInfo.
Type
.ToTestDisplayString());
5199
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
5240
Assert.Null(semanticInfo.
Type
);
5277
Assert.Equal("Class1", semanticInfo.
Type
.ToTestDisplayString());
5278
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
5319
Assert.Equal("Class1", semanticInfo.
Type
.ToTestDisplayString());
5320
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
5356
Assert.Equal(SpecialType.System_Int32, semanticInfo.
Type
.SpecialType);
5381
Assert.Equal(SpecialType.System_Int32, semanticInfo.
Type
.SpecialType);
5403
Assert.Null(semanticInfo.
Type
);
5443
Assert.Equal("C", semanticInfo.
Type
.ToTestDisplayString());
5444
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
5479
Assert.Equal("System.Boolean", semanticInfo.
Type
.ToTestDisplayString());
5480
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
5508
Assert.Equal("System.Boolean", semanticInfo.
Type
.ToTestDisplayString());
5509
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
5541
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
5542
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
5573
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
5574
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
5605
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
5606
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
5636
Assert.Null(semanticInfo.
Type
);
5656
Assert.Null(semanticInfo.
Type
);
5692
Assert.Null(semanticInfo.
Type
);
5727
Assert.Equal("System.Type", semanticInfo.
Type
.ToTestDisplayString());
5728
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
5760
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
5761
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
5794
Assert.Equal("System.Boolean", semanticInfo.
Type
.ToTestDisplayString());
5795
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
5827
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
5828
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
5861
Assert.Equal("System.Boolean", semanticInfo.
Type
.ToTestDisplayString());
5862
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
5895
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
5896
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
5930
Assert.Equal("System.Boolean", semanticInfo.
Type
.ToTestDisplayString());
5931
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
5963
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
5964
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
5997
Assert.Equal("System.Boolean", semanticInfo.
Type
.ToTestDisplayString());
5998
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
6030
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
6031
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
6058
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
6059
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
6089
Assert.Equal("System.Void", semanticInfo.
Type
.ToTestDisplayString());
6090
Assert.Equal(SpecialType.System_Void, semanticInfo.
Type
.SpecialType);
6091
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
6116
Assert.Equal("System.Void", semanticInfo.
Type
.ToTestDisplayString());
6117
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
6143
Assert.Equal("System.Void", semanticInfo.
Type
.ToTestDisplayString());
6144
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
6176
Assert.Equal("System.Void", semanticInfo.
Type
.ToTestDisplayString());
6177
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
6209
Assert.Equal(SpecialType.System_Int32, semanticInfo.
Type
.SpecialType);
6229
Assert.Equal(SpecialType.System_String, ((IArrayTypeSymbol)semanticInfo.
Type
).ElementType.SpecialType);
6251
Assert.Equal(SpecialType.System_String, semanticInfo.
Type
.SpecialType);
6304
Assert.Equal(typeDisplayString, semanticInfo.
Type
.ToTestDisplayString());
6328
Assert.Equal("Outer.Inner", semanticInfo.
Type
.ToTestDisplayString());
6329
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
6348
Assert.NotEqual(semanticInfo.
Type
, param.Type);
6364
Assert.Equal("Struct", semanticInfo.
Type
.ToTestDisplayString());
6365
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
6397
Assert.Null(semanticInfo.
Type
);
6435
Assert.Null(semanticInfo.
Type
);
6518
Assert.Equal("System.String", semanticInfo.
Type
.ToTestDisplayString());
6519
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
6553
Assert.Equal("System.String", semanticInfo.
Type
.ToTestDisplayString());
6554
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
6590
Assert.Equal("N1.var", semanticInfo.
Type
.ToTestDisplayString());
6591
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
6642
Assert.Null(semanticInfo.
Type
);
6674
Assert.Equal("C", semanticInfo.
Type
.ToTestDisplayString());
6675
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
6712
Assert.Equal("int", semanticInfo.
Type
.ToString());
6737
Assert.Null(semanticInfo.
Type
);
6757
Assert.Null(semanticInfo.
Type
);
6780
Assert.Null(semanticInfo.
Type
);
6805
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
6806
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
6841
Assert.NotNull(semanticInfo.
Type
);
6842
Assert.Equal("int", semanticInfo.
Type
.ToString());
6874
Assert.Equal("System.String", semanticInfo.
Type
.ToTestDisplayString());
6875
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
6919
Assert.Equal("System.Double", semanticInfo.
Type
.ToTestDisplayString());
6920
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
6964
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
6965
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
6999
Assert.Null(semanticInfo.
Type
);
7027
Assert.Null(semanticInfo.
Type
);
7048
Assert.Null(semanticInfo.
Type
);
7077
Assert.Equal("Struct", semanticInfo.
Type
.ToTestDisplayString());
7078
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
7105
Assert.Equal("MyAttribute", semanticInfo.
Type
.ToTestDisplayString());
7106
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
7136
Assert.Equal("N1.MyAttribute", semanticInfo.
Type
.ToTestDisplayString());
7137
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
7168
Assert.Equal("D", semanticInfo.
Type
.ToTestDisplayString());
7169
Assert.Equal(TypeKind.Delegate, semanticInfo.
Type
.TypeKind);
7200
Assert.Equal("?", semanticInfo.
Type
.ToTestDisplayString());
7201
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
7232
Assert.Equal("System.Func<System.Int32, System.Int32>", semanticInfo.
Type
.ToTestDisplayString());
7233
Assert.Equal(TypeKind.Delegate, semanticInfo.
Type
.TypeKind);
7263
Assert.Null(semanticInfo.
Type
);
7287
Assert.Equal("System.Void", semanticInfo.
Type
.ToTestDisplayString());
7288
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
7315
Assert.Equal("System.Void", semanticInfo.
Type
.ToTestDisplayString());
7316
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
7342
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
7343
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
7377
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
7378
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
7398
Assert.Equal("System.Int64", semanticInfo.
Type
.ToTestDisplayString());
7399
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
7426
Assert.Null(semanticInfo.
Type
);
7454
Assert.Null(semanticInfo.
Type
);
7481
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
7482
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
7525
Assert.Equal(SymbolKind.NamedType, semanticInfo.
Type
.Kind);
7526
Assert.Equal(TypeKind.Enum, semanticInfo.
Type
.TypeKind);
7530
Assert.Equal(semanticInfo.
Type
, semanticInfo.ConvertedType);
7553
Assert.Null(semanticInfo.
Type
);
7586
Assert.Null(semanticInfo.
Type
);
7624
Assert.Null(semanticInfo.
Type
);
7661
Assert.Null(semanticInfo.
Type
);
7697
Assert.Equal("System.String", semanticInfo.
Type
.ToTestDisplayString());
7698
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
7726
Assert.Equal("S", semanticInfo.
Type
.ToTestDisplayString());
7727
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
7777
Assert.NotNull(semanticInfo.
Type
);
7778
Assert.Equal(SymbolKind.ErrorType, semanticInfo.
Type
.Kind);
7796
Assert.NotNull(semanticInfo.
Type
);
7797
Assert.Equal(SymbolKind.ErrorType, semanticInfo.
Type
.Kind);
7819
Assert.Null(semanticInfo.
Type
);
7850
Assert.Equal("C.MyDelegate", semanticInfo.
Type
.ToTestDisplayString());
7851
Assert.Equal(TypeKind.Delegate, semanticInfo.
Type
.TypeKind);
7884
Assert.Null(semanticInfo.
Type
);
7916
Assert.Equal("C.MyDelegate", semanticInfo.
Type
.ToTestDisplayString());
7917
Assert.Equal(TypeKind.Delegate, semanticInfo.
Type
.TypeKind);
7950
Assert.Null(semanticInfo.
Type
);
7982
Assert.Equal("System.Action", semanticInfo.
Type
.ToTestDisplayString());
7983
Assert.Equal(TypeKind.Delegate, semanticInfo.
Type
.TypeKind);
8020
Assert.Null(semanticInfo.
Type
);
8036
Assert.Null(semanticInfo.
Type
);
8073
Assert.Null(semanticInfo.
Type
);
8089
Assert.Null(semanticInfo.
Type
);
8123
Assert.NotNull(semanticInfo.
Type
);
8124
Assert.Equal(SymbolKind.ErrorType, semanticInfo.
Type
.Kind);
8147
Assert.NotNull(semanticInfo.
Type
);
8148
Assert.Equal(SymbolKind.ErrorType, semanticInfo.
Type
.Kind);
8172
Assert.NotNull(semanticInfo.
Type
);
8173
Assert.Equal(SpecialType.System_Int32, semanticInfo.
Type
.SpecialType);
8196
Assert.NotNull(semanticInfo.
Type
);
8197
Assert.Equal(SpecialType.System_Int32, semanticInfo.
Type
.SpecialType);
8217
Assert.NotNull(semanticInfo.
Type
);
8218
Assert.Equal(SpecialType.System_Int32, semanticInfo.
Type
.SpecialType);
8240
Assert.NotNull(semanticInfo.
Type
);
8241
Assert.Equal(SymbolKind.ErrorType, semanticInfo.
Type
.Kind);
8302
Assert.NotNull(semanticInfo.
Type
);
8303
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
8334
Assert.Equal(SpecialType.System_Int32, semanticInfo.
Type
.SpecialType);
8350
Assert.NotNull(semanticInfo.
Type
);
8351
Assert.Equal("AttributeUsageAttribute", semanticInfo.
Type
.Name);
8368
Assert.Equal("Gen<T>", semanticInfo.
Type
.ToTestDisplayString());
8369
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
8402
Assert.Equal("Goo", semanticInfo.
Type
.ToTestDisplayString());
8403
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
8439
Assert.Null(semanticInfo.
Type
);
8463
Assert.Null(semanticInfo.
Type
);
8485
Assert.Equal("MyDelegate", semanticInfo.
Type
.ToTestDisplayString());
8513
Assert.Equal("System.Boolean", semanticInfo.
Type
.ToTestDisplayString());
8514
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
8559
Assert.Equal("System.String", semanticInfo.
Type
.ToTestDisplayString());
8560
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
8604
Assert.Equal("System.String", semanticInfo.
Type
.ToTestDisplayString());
8605
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
8644
Assert.Null(semanticInfo.
Type
);
8684
Assert.Null(semanticInfo.
Type
);
8725
Assert.Equal("System.Double", semanticInfo.
Type
.ToTestDisplayString());
8726
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
8768
Assert.Null(semanticInfo.
Type
);
8808
Assert.Equal("System.Boolean", semanticInfo.
Type
.ToTestDisplayString());
8809
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
8850
Assert.Equal("System.Boolean", semanticInfo.
Type
.ToTestDisplayString());
8851
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
8892
Assert.Equal("System.Boolean", semanticInfo.
Type
.ToTestDisplayString());
8893
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
8932
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
8933
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
9062
Assert.Null(semanticInfo.
Type
);
9096
Assert.Equal(SpecialType.System_Int32, semanticInfo.
Type
.SpecialType);
9122
Assert.Equal("A.B", semanticInfo.
Type
.ToTestDisplayString());
9123
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
9159
var type = semanticInfo.
Type
;
9183
var type = semanticInfo.
Type
;
9211
var type = semanticInfo.
Type
;
9235
var type = semanticInfo.
Type
;
9265
var type = (INamedTypeSymbol)semanticInfo.
Type
;
9357
Assert.Equal("Blue.DescriptionAttribute", semanticInfo.
Type
.ToTestDisplayString());
9358
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
9416
Assert.Equal("Blue.DescriptionAttribute", semanticInfo.
Type
.ToTestDisplayString());
9417
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
9455
Assert.Equal("System.ObsoleteAttribute", semanticInfo.
Type
.ToTestDisplayString());
9456
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
9613
Assert.Equal("ValidWithoutSuffix.Description", semanticInfo.
Type
.ToTestDisplayString());
9614
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
9668
Assert.Equal("ValidWithSuffix_And_ValidWithoutSuffix.Description", semanticInfo.
Type
.ToTestDisplayString());
9669
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
9719
Assert.Equal("ValidWithSuffix_And_ValidWithoutSuffix.DescriptionAttribute", semanticInfo.
Type
.ToTestDisplayString());
9720
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
9779
Assert.Equal("ValidWithSuffix_And_ValidWithoutSuffix.Description", semanticInfo.
Type
.ToTestDisplayString());
9780
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
9830
Assert.Equal("InvalidWithoutSuffix.Description", semanticInfo.
Type
.ToTestDisplayString());
9831
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
9885
Assert.Equal("InvalidWithSuffix_And_InvalidWithoutSuffix.Description", semanticInfo.
Type
.ToTestDisplayString());
9886
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
9916
Assert.Equal("A1", semanticInfo.
Type
.ToTestDisplayString());
9917
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
9950
Assert.Equal("System.ObsoleteAttribute", semanticInfo.
Type
.ToTestDisplayString());
9951
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
9986
Assert.Equal("System.ObsoleteAttribute", semanticInfo.
Type
.ToTestDisplayString());
9987
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
10022
Assert.Equal("System.ObsoleteAttribute", semanticInfo.
Type
.ToTestDisplayString());
10023
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
10058
Assert.Equal("System.ObsoleteAttribute", semanticInfo.
Type
.ToTestDisplayString());
10059
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
10102
Assert.Equal("AttributeClass", semanticInfo.
Type
.ToTestDisplayString());
10103
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
10139
Assert.Equal("AttributeClass", semanticInfo.
Type
.ToTestDisplayString());
10140
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
10176
Assert.Equal("AttributeClass.NonAttributeClass", semanticInfo.
Type
.ToTestDisplayString());
10177
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
10215
Assert.Equal("AttributeClass.NonAttributeClass", semanticInfo.
Type
.ToTestDisplayString());
10216
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
10246
Assert.Equal("C", semanticInfo.
Type
.ToTestDisplayString());
10247
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
10281
Assert.Equal("Gen<System.Int32>", semanticInfo.
Type
.ToTestDisplayString());
10282
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
10316
Assert.Equal("A", semanticInfo.
Type
.ToTestDisplayString());
10317
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
10350
Assert.Equal("Goo", semanticInfo.
Type
.ToTestDisplayString());
10351
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
10384
Assert.Equal("Goo", semanticInfo.
Type
.ToTestDisplayString());
10385
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
10465
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
10466
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
10493
Assert.Equal("MyClass", semanticInfo.
Type
.ToTestDisplayString());
10494
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
10522
Assert.Equal("System.Object", semanticInfo.
Type
.ToTestDisplayString());
10523
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
10557
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
10558
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
10599
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
10600
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
10636
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
10637
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
10673
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
10674
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
10712
Assert.Equal("System.Action", semanticInfo.
Type
.ToTestDisplayString());
10713
Assert.Equal(TypeKind.Delegate, semanticInfo.
Type
.TypeKind);
10755
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
10756
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
10797
Assert.Equal("System.Object", semanticInfo.
Type
.ToTestDisplayString());
10798
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
10834
Assert.Equal("Gen<T>", semanticInfo.
Type
.ToTestDisplayString());
10835
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
10903
Assert.Equal("System.Int32[]", semanticInfo.
Type
.ToTestDisplayString());
10904
Assert.Equal(TypeKind.Array, semanticInfo.
Type
.TypeKind);
10941
Assert.Equal("Program", semanticInfo.
Type
.Name);
10985
Assert.Equal(SpecialType.System_Int32, semanticInfo.
Type
.SpecialType);
11010
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
11011
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
11041
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
11042
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
11074
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
11075
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
11107
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
11108
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
11143
Assert.Equal("System.ObsoleteAttribute", semanticInfo.
Type
.ToTestDisplayString());
11144
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
11189
Assert.Null(semanticInfo.
Type
);
11221
Assert.Equal("Goo", semanticInfo.
Type
.ToTestDisplayString());
11222
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
11265
Assert.Equal("System.Int16", semanticInfo.
Type
.ToTestDisplayString());
11266
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
11302
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
11303
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
11339
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
11340
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
11379
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
11380
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
11401
var type = (INamedTypeSymbol)semanticInfo.
Type
;
11426
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
11427
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
11459
Assert.Equal("System.Boolean", semanticInfo.
Type
.ToTestDisplayString());
11460
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
11496
Assert.Equal("U", semanticInfo.
Type
.ToTestDisplayString());
11497
Assert.Equal(TypeKind.TypeParameter, semanticInfo.
Type
.TypeKind);
11536
Assert.Null(semanticInfo.
Type
);
11571
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
11572
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
11608
Assert.Equal("System.Runtime.CompilerServices.IndexerNameAttribute", semanticInfo.
Type
.ToTestDisplayString());
11639
Assert.Null(semanticInfo.
Type
);
11673
Assert.Null(semanticInfo.
Type
);
11709
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
11710
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
11764
Assert.Null(semanticInfo.
Type
);
11794
Assert.Equal("System.Int32[]", semanticInfo.
Type
.ToTestDisplayString());
11795
Assert.Equal(TypeKind.Array, semanticInfo.
Type
.TypeKind);
11830
Assert.Equal("System.Int32[]", semanticInfo.
Type
.ToTestDisplayString());
11831
Assert.Equal(TypeKind.Array, semanticInfo.
Type
.TypeKind);
11865
Assert.Equal("System.Int32[,,]", semanticInfo.
Type
.ToTestDisplayString());
11866
Assert.Equal(TypeKind.Array, semanticInfo.
Type
.TypeKind);
11900
Assert.Equal("System.Int32[][,,]", semanticInfo.
Type
.ToTestDisplayString());
11901
Assert.Equal(TypeKind.Array, semanticInfo.
Type
.TypeKind);
11936
Assert.Equal("?[]", semanticInfo.
Type
.ToTestDisplayString());
11937
Assert.Equal(TypeKind.Array, semanticInfo.
Type
.TypeKind);
11972
Assert.Equal("?[]", semanticInfo.
Type
.ToTestDisplayString());
11973
Assert.Equal(TypeKind.Array, semanticInfo.
Type
.TypeKind);
12007
Assert.Equal("?[,,]", semanticInfo.
Type
.ToTestDisplayString());
12008
Assert.Equal(TypeKind.Array, semanticInfo.
Type
.TypeKind);
12042
Assert.Equal("?[,,]", semanticInfo.
Type
.ToTestDisplayString());
12043
Assert.Equal(TypeKind.Array, semanticInfo.
Type
.TypeKind);
12078
Assert.Equal("System.Int32[]", semanticInfo.
Type
.ToTestDisplayString());
12079
Assert.Equal(TypeKind.Array, semanticInfo.
Type
.TypeKind);
12106
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
12153
Assert.Null(semanticInfo.
Type
);
12185
Assert.Equal("Stat", semanticInfo.
Type
.ToTestDisplayString());
12186
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
12220
Assert.Null(semanticInfo.
Type
);
12255
Assert.Equal("X", semanticInfo.
Type
.ToTestDisplayString());
12256
Assert.Equal(TypeKind.Interface, semanticInfo.
Type
.TypeKind);
12288
Assert.Null(semanticInfo.
Type
);
12321
Assert.Equal("T", semanticInfo.
Type
.ToTestDisplayString());
12322
Assert.Equal(TypeKind.TypeParameter, semanticInfo.
Type
.TypeKind);
12356
Assert.Null(semanticInfo.
Type
);
12392
Assert.Null(semanticInfo.
Type
);
12425
Assert.Equal("X", semanticInfo.
Type
.ToTestDisplayString());
12426
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
12454
Assert.Null(semanticInfo.
Type
);
12483
Assert.Equal("dynamic", semanticInfo.
Type
.ToTestDisplayString());
12484
Assert.Equal(TypeKind.Dynamic, semanticInfo.
Type
.TypeKind);
12525
Assert.Equal("Conv", semanticInfo.
Type
.ToTestDisplayString());
12526
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
12571
Assert.Equal("Conv?", semanticInfo.
Type
.ToTestDisplayString());
12572
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
12609
Assert.Equal("Conv", semanticInfo.
Type
.ToTestDisplayString());
12610
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
12643
Assert.Equal("Conv", semanticInfo.
Type
.ToTestDisplayString());
12644
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
12675
Assert.Equal("MemberInitializerTest", semanticInfo.
Type
.ToTestDisplayString());
12676
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
12708
Assert.Null(semanticInfo.
Type
);
12738
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
12739
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
12770
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
12771
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
12802
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
12803
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
12845
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
12846
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
12884
Assert.Null(semanticInfo.
Type
);
12921
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
12922
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
12957
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
12958
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
12995
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
12996
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
13036
Assert.Equal("MemberInitializerTest", semanticInfo.
Type
.ToTestDisplayString());
13037
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
13068
Assert.Null(semanticInfo.
Type
);
13097
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
13098
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
13128
Assert.Equal("MemberInitializerTest", semanticInfo.
Type
.ToTestDisplayString());
13129
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
13162
Assert.Equal("MemberInitializerTest", semanticInfo.
Type
.ToTestDisplayString());
13163
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
13196
Assert.Equal("MemberInitializerTest", semanticInfo.
Type
.ToTestDisplayString());
13197
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
13229
Assert.Null(semanticInfo.
Type
);
13262
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
13263
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
13322
Assert.Equal("B", semanticInfo.
Type
.ToTestDisplayString());
13323
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
13383
Assert.Null(semanticInfo.
Type
);
13441
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
13442
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
13502
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
13503
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
13562
Assert.Null(semanticInfo.
Type
);
13592
Assert.Null(semanticInfo.
Type
);
13657
Assert.Null(semanticInfo.
Type
);
13686
Assert.Null(semanticInfo.
Type
);
13742
Assert.Null(semanticInfo.
Type
);
13775
Assert.Null(semanticInfo.
Type
);
13803
Assert.Equal("?", semanticInfo.
Type
.ToTestDisplayString());
13804
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
13838
Assert.Equal("System.Int32", semanticInfo.
Type
.ToTestDisplayString());
13839
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
13872
Assert.Equal("Gen<T>", semanticInfo.
Type
.ToTestDisplayString());
13873
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
13911
Assert.Equal("Gen2<T>", semanticInfo.
Type
.ToTestDisplayString());
13912
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
13950
Assert.Equal("System.Random", semanticInfo.
Type
.ToTestDisplayString());
13951
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
13977
Assert.Equal("var", semanticInfo.
Type
.ToTestDisplayString());
13978
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
14004
Assert.Equal("var", semanticInfo.
Type
.ToTestDisplayString());
14005
Assert.Equal(TypeKind.Error, semanticInfo.
Type
.TypeKind);
14043
Assert.Null(semanticInfo.
Type
);
14080
Assert.Equal("InterfaceType", semanticInfo.
Type
.ToTestDisplayString());
14081
Assert.Equal(TypeKind.Interface, semanticInfo.
Type
.TypeKind);
14118
Assert.Equal("InterfaceType", semanticInfo.
Type
.ToTestDisplayString());
14119
Assert.Equal(TypeKind.Interface, semanticInfo.
Type
.TypeKind);
14158
Assert.Equal("InterfaceType[]", semanticInfo.
Type
.ToTestDisplayString());
14159
Assert.Equal(TypeKind.Array, semanticInfo.
Type
.TypeKind);
14202
Assert.Null(semanticInfo.
Type
);
14244
Assert.Equal("NonGenericInterfaceType", semanticInfo.
Type
.ToTestDisplayString());
14245
Assert.Equal(TypeKind.Interface, semanticInfo.
Type
.TypeKind);
14292
Assert.Null(semanticInfo.
Type
);
14336
Assert.Equal("Wrapper.InterfaceType", semanticInfo.
Type
.ToTestDisplayString());
14337
Assert.Equal(TypeKind.Interface, semanticInfo.
Type
.TypeKind);
14379
Assert.Equal("InterfaceType", semanticInfo.
Type
.ToTestDisplayString());
14380
Assert.Equal(TypeKind.Interface, semanticInfo.
Type
.TypeKind);
14419
Assert.Null(semanticInfo.
Type
);
14508
Assert.Null(semanticInfo.
Type
);
14540
Assert.Equal("System.IFormattable", semanticInfo.
Type
.ToTestDisplayString());
14541
Assert.Equal(TypeKind.Interface, semanticInfo.
Type
.TypeKind);
14569
Assert.NotNull(semanticInfo.
Type
);
14578
Assert.True(((ITypeSymbol)semanticInfo.
Type
).IsErrorType());
14597
Assert.Null(semanticInfo.
Type
);
14625
Assert.Equal("System.Void", semanticInfo.
Type
.ToTestDisplayString());
14626
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
14665
Assert.Null(semanticInfo.
Type
);
15083
Assert.Equal("int", semanticInfo.
Type
.ToDisplayString());
15084
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
15114
Assert.Null(semanticInfo.
Type
);
15151
Assert.Equal("string", semanticInfo.
Type
.ToDisplayString());
15152
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
15182
Assert.Equal("int", semanticInfo.
Type
.ToDisplayString());
15183
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
15213
Assert.Equal("int", semanticInfo.
Type
.ToDisplayString());
15214
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
15244
Assert.Equal("int", semanticInfo.
Type
.ToDisplayString());
15245
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
15275
Assert.Equal("char", semanticInfo.
Type
.ToDisplayString());
15276
Assert.Equal(TypeKind.Struct, semanticInfo.
Type
.TypeKind);
15306
Assert.Null(semanticInfo.
Type
);
15337
Assert.Equal("dynamic", semanticInfo.
Type
.ToDisplayString());
15338
Assert.Equal(TypeKind.Dynamic, semanticInfo.
Type
.TypeKind);
15404
Assert.Equal("K", semanticInfo.
Type
.ToTestDisplayString());
15405
Assert.Equal(TypeKind.Class, semanticInfo.
Type
.TypeKind);
15436
Assert.Equal("C", info.
Type
.Name);
Compilation\SemanticModelGetSemanticInfoTests_LateBound.cs (26)
40
Assert.Equal("C", semanticInfo.
Type
.Name);
64
Assert.Equal("C", semanticInfo.
Type
.Name);
85
Assert.Equal("C", semanticInfo.
Type
.Name);
111
Assert.Equal("C", semanticInfo.
Type
.Name);
140
Assert.True(semanticInfo.
Type
.IsDynamic());
166
Assert.True(semanticInfo.
Type
.IsDynamic());
201
Assert.True(semanticInfo.
Type
.IsDynamic());
228
Assert.True(semanticInfo.
Type
.IsDynamic());
268
Assert.True(semanticInfo.
Type
.IsDynamic());
291
Assert.Null(semanticInfo.
Type
);
318
Assert.Null(semanticInfo.
Type
);
347
Assert.True(semanticInfo.
Type
.IsDynamic());
379
Assert.Equal(SpecialType.System_Int32, semanticInfo.
Type
.SpecialType);
419
Assert.Null(semanticInfo.
Type
);
514
Assert.True(semanticInfo.
Type
.IsDynamic());
551
Assert.True(semanticInfo.
Type
.IsDynamic());
586
Assert.True(semanticInfo.
Type
.IsDynamic());
614
Assert.True(semanticInfo.
Type
.IsDynamic());
651
Assert.True(semanticInfo.
Type
.IsDynamic());
678
Assert.True(semanticInfo.
Type
.IsDynamic());
706
Assert.True(semanticInfo.
Type
.IsDynamic());
741
Assert.True(semanticInfo.
Type
.IsDynamic());
770
Assert.True(semanticInfo.
Type
.IsDynamic());
797
Assert.True(semanticInfo.
Type
.IsDynamic());
825
Assert.True(semanticInfo.
Type
.IsDynamic());
856
Assert.Equal("System.Void", semanticInfo.
Type
.ToTestDisplayString());
Symbols\AnonymousTypesSemanticsTests.cs (28)
80
Assert.Equal("AnonymousTypePublicSymbol", info0.
Type
.GetSymbol().GetType().Name);
81
Assert.False(((INamedTypeSymbol)info0.
Type
).IsSerializable);
83
Assert.Equal(info0.
Type
, info2.
Type
);
84
Assert.NotEqual(info0.
Type
, info1.
Type
);
90
Assert.Equal(info3.
Type
, info4.
Type
);
318
info0.
Type
.ToTestDisplayString());
425
Assert.Equal("<anonymous type: D1 module>", info0.
Type
.ToTestDisplayString());
487
Assert.Equal("<anonymous type: System.Func<System.Int32, System.Int32> F>", info0.
Type
.ToTestDisplayString());
544
Assert.Equal("<anonymous type: System.Type F123>", info0.
Type
.ToTestDisplayString());
720
var type = info0.
Type
;
739
var type = info0.
Type
;
844
Assert.Equal("<anonymous type: System.Int32 x, System.String y>", info0.
Type
.ToTestDisplayString());
1049
CheckAnonymousType(info0.
Type
, "", "");
1054
CheckAnonymousType(info0.
Type
, "", "");
1151
Assert.Equal("<anonymous type: ? aa, System.String BB, SSS CCC>", info0.
Type
.ToTestDisplayString());
1152
Assert.Equal("<anonymous type: SSS aa, System.Double BB, <anonymous type: ? aa, ? BB, ? CCC> CCC>", info1.
Type
.ToTestDisplayString());
1153
Assert.Equal("<anonymous type: ? aa, ? BB, ? CCC>", info2.
Type
.ToTestDisplayString());
1339
Assert.Equal("<empty anonymous type>", info0.
Type
.ToTestDisplayString());
1404
Assert.Equal("<anonymous type: System.Int32 aa, System.String $1, System.Double bb>", info0.
Type
.ToTestDisplayString());
1406
var properties = (from m in info0.
Type
.GetMembers() where m.Kind == SymbolKind.Property select m).ToArray();
1492
Assert.Equal("<anonymous type: System.String aa, System.Double abc>", info0.
Type
.ToTestDisplayString());
1495
var syms = data.Model.LookupSymbols(pos, container: info0.
Type
).Select(x => x.ToTestDisplayString()).OrderBy(x => x).ToArray();
1511
Assert.Equal("<empty anonymous type>", info0.
Type
.ToTestDisplayString());
1514
syms = data.Model.LookupSymbols(pos, container: info0.
Type
).Select(x => x.ToTestDisplayString()).OrderBy(x => x).ToArray();
1986
var type = info.
Type
;
Symbols\Source\UsingAliasTests.cs (10)
61
Assert.Equal("System.Object", info2.
Type
.ToDisplayString(format: SymbolDisplayFormat.TestFormat));
67
Assert.Equal("System.Object", info3.
Type
.ToDisplayString(format: SymbolDisplayFormat.TestFormat));
121
Assert.Equal("System.Object", info2.
Type
.ToDisplayString(format: SymbolDisplayFormat.TestFormat));
127
Assert.Equal("System.Object", info3.
Type
.ToDisplayString(format: SymbolDisplayFormat.TestFormat));
166
Assert.Equal("System.Object", info1.
Type
.ToDisplayString(format: SymbolDisplayFormat.TestFormat));
176
Assert.Equal("System.Object", info2.
Type
.ToDisplayString(format: SymbolDisplayFormat.TestFormat));
182
Assert.Equal("System.Object", info3.
Type
.ToDisplayString(format: SymbolDisplayFormat.TestFormat));
224
Assert.Equal("System.Object", info1.
Type
.ToDisplayString(format: SymbolDisplayFormat.TestFormat));
234
Assert.Equal("System.Object", info2.
Type
.ToDisplayString(format: SymbolDisplayFormat.TestFormat));
240
Assert.Equal("System.Object", info3.
Type
.ToDisplayString(format: SymbolDisplayFormat.TestFormat));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (9)
FunctionPointerUtilities.cs (9)
152
Assert.Null(semanticInfo.
Type
);
156
exprType = semanticInfo.
Type
;
157
AssertEx.Equal(expectedType, semanticInfo.
Type
.ToTestDisplayString(includeNonNullable: false));
162
Assert.Equal(semanticInfo.
Type
, semanticInfo.ConvertedType, SymbolEqualityComparer.IncludeNullability);
194
Assert.Null(semanticInfo.
Type
);
255
Assert.Equal<ISymbol>(signatureType, semanticInfo.
Type
, SymbolEqualityComparer.Default);
256
Assert.Equal(semanticInfo.
Type
, semanticInfo.ConvertedType, SymbolEqualityComparer.IncludeNullability);
259
Assert.Equal(signatureType, semanticInfo.
Type
, SymbolEqualityComparer.Default);
264
var paramPtrType = (IFunctionPointerTypeSymbol)semanticInfo.
Type
!;