35 references to GetCorLibType
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (17)
Emit\EmitMetadata.vb (17)
512Assert.Same([Module].GetCorLibType(SpecialType.System_Array), parameter1Type) 513Assert.Same([Module].GetCorLibType(SpecialType.System_Boolean), m2.Parameters.Single().Type) 514Assert.Same([Module].GetCorLibType(SpecialType.System_Char), m3.Parameters.Single().Type) 518Assert.Same([Module].GetCorLibType(SpecialType.System_Void), m4.ReturnType) 519Assert.Same([Module].GetCorLibType(SpecialType.System_SByte), method4ParamTypes(0)) 520Assert.Same([Module].GetCorLibType(SpecialType.System_Single), method4ParamTypes(1)) 521Assert.Same([Module].GetCorLibType(SpecialType.System_Double), method4ParamTypes(2)) 522Assert.Same([Module].GetCorLibType(SpecialType.System_Int16), method4ParamTypes(3)) 523Assert.Same([Module].GetCorLibType(SpecialType.System_Int32), method4ParamTypes(4)) 524Assert.Same([Module].GetCorLibType(SpecialType.System_Int64), method4ParamTypes(5)) 525Assert.Same([Module].GetCorLibType(SpecialType.System_IntPtr), method4ParamTypes(6)) 526Assert.Same([Module].GetCorLibType(SpecialType.System_String), method4ParamTypes(7)) 527Assert.Same([Module].GetCorLibType(SpecialType.System_Byte), method4ParamTypes(8)) 528Assert.Same([Module].GetCorLibType(SpecialType.System_UInt16), method4ParamTypes(9)) 529Assert.Same([Module].GetCorLibType(SpecialType.System_UInt32), method4ParamTypes(10)) 530Assert.Same([Module].GetCorLibType(SpecialType.System_UInt64), method4ParamTypes(11)) 531Assert.Same([Module].GetCorLibType(SpecialType.System_UIntPtr), method4ParamTypes(12))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (18)
SymbolsTests\Metadata\PE\BaseTypeResolution.vb (2)
295Assert.Equal("System.Object", DirectCast(c1.Assembly.Modules(0), SourceModuleSymbol).GetCorLibType(SpecialType.System_Object).ToTestDisplayString()) 300Assert.Equal("System.Object[missing]", DirectCast(c2.Assembly.Modules(0), SourceModuleSymbol).GetCorLibType(SpecialType.System_Object).ToTestDisplayString())
SymbolsTests\Metadata\PE\LoadingFields.vb (1)
60Assert.Same(DirectCast(module2, PEModuleSymbol).GetCorLibType(SpecialType.System_Int32), f2.Type)
SymbolsTests\Source\FieldTests.vb (8)
113Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Nullable_T), fieldP.Type.OriginalDefinition) 114Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Char), DirectCast(fieldP.Type, NamedTypeSymbol).TypeArguments(0)) 121Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Char), fieldQ.Type) 128Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Object), fieldR.Type) 135Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Int64), fieldS.Type) 142Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Int32), fieldT.Type) 150Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Decimal), DirectCast(fieldU.Type, ArrayTypeSymbol).ElementType) 172Assert.Same(sourceMod.GetCorLibType(SpecialType.System_UInt32), fieldL.Type)
SymbolsTests\Source\TypeBindingTests.vb (7)
48Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Int32), arrayTypeA.ElementType) 49Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Array), arrayTypeA.BaseType) 60Assert.Same(sourceMod.GetCorLibType(SpecialType.System_String), arrayTypeB3.ElementType) 89Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Nullable_T), namedTypeA.OriginalDefinition) 90Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Int32), namedTypeA.TypeArguments(0)) 231Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Int32), fieldB.Type) 445Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Int32), containerTypeB.TypeArguments(0))