361 references to GetSpecialType
Microsoft.CodeAnalysis.VisualBasic (73)
Binding\Binder.vb (1)
442Dim symbol As NamedTypeSymbol = compilation.GetSpecialType(typeId)
Binding\Binder_Attributes.vb (1)
795ReportDiagnostic(diagBag, conv.Operand.Syntax, ERRID.ERR_RequiredAttributeConstConversion2, If(conv.Operand.Type, _binder.Compilation.GetSpecialType(SpecialType.System_Object)), conv.Type)
Binding\Binder_Conversions.vb (3)
381Dim nullableOfT As NamedTypeSymbol = Compilation.GetSpecialType(SpecialType.System_Nullable_T) 382intermediateTargetType = Compilation.GetSpecialType(SpecialType.System_Nullable_T). 737Dim iEnumerable_T As NamedTypeSymbol = Compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T)
Binding\Binder_Lambda.vb (4)
205Compilation.GetSpecialType(SpecialType.System_Void), ' No need to report use-site error. 773Dim targetSignature As New UnboundLambda.TargetSignature(ImmutableArray(Of ParameterSymbol).Empty, Compilation.GetSpecialType(SpecialType.System_Void), returnsByRef:=False) 850commonParameterTypes(i) = Compilation.GetSpecialType(SpecialType.System_Object) 863Compilation.GetSpecialType(SpecialType.System_Void),
Binding\Binder_Lookup.vb (1)
420Dim candidate = binder.Compilation.GetSpecialType(specialType)
Binding\Binder_Statements.vb (5)
2235Compilation.GetSpecialType(SpecialType.System_Void), 2422Dim container = If(exprSymbol IsNot Nothing, exprSymbol.ContainingSymbol, Compilation.GetSpecialType(SpecialType.System_Object)) 3459Dim idisposableType = Compilation.GetSpecialType(SpecialType.System_IDisposable) 4948Return Compilation.GetSpecialType(SpecialType.System_Void) 4952Return Compilation.GetSpecialType(SpecialType.System_Void)
Binding\Binder_XmlLiterals.vb (3)
674memberAccess = BadExpression(syntax, ImmutableArray.Create(receiver, name), Compilation.GetSpecialType(SpecialType.System_String)) 797Return BadExpression(syntax, Compilation.GetSpecialType(SpecialType.System_String)) 903Dim result = BadExpression(syntax, Compilation.GetSpecialType(SpecialType.System_String))
Compilation\VisualBasicCompilation.vb (2)
1967Return GetSpecialType(SpecialType.System_Object) 2795Return Me.GetSpecialType(specialType)
Emit\NoPia\EmbeddedTypesManager.vb (1)
46Dim type = ModuleBeingBuilt.Compilation.GetSpecialType(SpecialType.System_String)
Lowering\IteratorRewriter\IteratorStateMachine.vb (1)
34Dim intType = DeclaringCompilation.GetSpecialType(SpecialType.System_Int32)
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (1)
863result = RewriteFromObjectConversion(rewrittenConversion, Compilation.GetSpecialType(SpecialType.System_Object), underlyingTypeTo)
Lowering\LocalRewriter\LocalRewriter_ForTo.vb (5)
416Debug.Assert(Compilation.GetSpecialType(SpecialType.System_Object) Is rewrittenControlVariable.Type) 445Compilation.GetSpecialType(SpecialType.System_Boolean), 449arguments, Compilation.GetSpecialType(SpecialType.System_Boolean), hasErrors:=True) 500Compilation.GetSpecialType(SpecialType.System_Boolean), 504arguments, Compilation.GetSpecialType(SpecialType.System_Boolean), hasErrors:=True)
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (1)
263Me.Compilation.GetSpecialType(SpecialType.System_Boolean), hasErrors:=True)
Lowering\LocalRewriter\LocalRewriter_RaiseEvent.vb (2)
80Me.Compilation.GetSpecialType(SpecialType.System_Object)), 82Me.Compilation.GetSpecialType(SpecialType.System_Boolean)).MakeCompilerGenerated
Lowering\LocalRewriter\LocalRewriter_RedimClause.vb (1)
95Compilation.GetSpecialType(SpecialType.System_Void)))
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (3)
171Me.ReportBadType(selectCaseExpr, Compilation.GetSpecialType(SpecialType.System_Int32)) 172Me.ReportBadType(selectCaseExpr, Compilation.GetSpecialType(SpecialType.System_UInt32)) 173Me.ReportBadType(selectCaseExpr, Compilation.GetSpecialType(SpecialType.System_String))
Semantics\TypeInference\TypeArgumentInference.vb (4)
2143Dim inferenceSignature As New UnboundLambda.TargetSignature(delegateParams, unboundLambda.Binder.Compilation.GetSpecialType(SpecialType.System_Void), returnsByRef:=False) 2211TypeSymbol.Equals(lambdaReturnNamedType.OriginalDefinition, argument.GetBinderFromLambda().Compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T), TypeCompareKind.ConsiderEverything) OrElse 2212TypeSymbol.Equals(lambdaReturnNamedType.OriginalDefinition, argument.GetBinderFromLambda().Compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerator_T), TypeCompareKind.ConsiderEverything)) 2225unboundLambda.Binder.Compilation.GetSpecialType(SpecialType.System_Void),
Symbols\AnonymousTypes\AnonymousType_SymbolCollection.vb (9)
130Return Compilation.GetSpecialType(SpecialType.System_Boolean) 136Return Compilation.GetSpecialType(SpecialType.System_Int32) 142Return Compilation.GetSpecialType(SpecialType.System_Object) 148Return Compilation.GetSpecialType(SpecialType.System_IntPtr) 154Return Compilation.GetSpecialType(SpecialType.System_IAsyncResult) 160Return Compilation.GetSpecialType(SpecialType.System_AsyncCallback) 166Return Compilation.GetSpecialType(SpecialType.System_MulticastDelegate) 172Return Compilation.GetSpecialType(SpecialType.System_String) 178Return Compilation.GetSpecialType(SpecialType.System_Void)
Symbols\Source\ImplicitNamedTypeSymbol.vb (1)
51Dim baseType = DeclaringCompilation.GetSpecialType(SpecialType.System_Object)
Symbols\Source\SourceAssemblySymbol.vb (5)
1501Dim int32Type = Me.DeclaringCompilation.GetSpecialType(SpecialType.System_Int32) 1519Dim boolType = Me.DeclaringCompilation.GetSpecialType(SpecialType.System_Boolean) 1540Dim int32Type = Me.DeclaringCompilation.GetSpecialType(SpecialType.System_Int32) 1573Dim stringType = _compilation.GetSpecialType(SpecialType.System_String) 1582Dim stringType = _compilation.GetSpecialType(SpecialType.System_String)
Symbols\Source\SourceNamedTypeSymbol.vb (1)
1378ReportUseSiteInfoForBaseType(Me.DeclaringCompilation.GetSpecialType(SpecialType.System_Object), declaredBase, diagnostics)
Symbols\Source\SourceParameterSymbolBase.vb (1)
63ImmutableArray.Create(New TypedConstant(compilation.GetSpecialType(SpecialType.System_Int64),
Symbols\Source\SourceWithEventsBackingFieldSymbol.vb (1)
75ImmutableArray.Create(New TypedConstant(compilation.GetSpecialType(SpecialType.System_String),
Symbols\Source\SynthesizedEntryPointSymbol.vb (2)
25Dim submissionArrayType = compilation.CreateArrayTypeSymbol(compilation.GetSpecialType(SpecialType.System_Object)) 42compilation.GetSpecialType(SpecialType.System_Void),
Symbols\Source\SynthesizedEventAccessorSymbol.vb (2)
82type = compilation.GetSpecialType(SpecialType.System_Void) 281Dim boolType As TypeSymbol = compilation.GetSpecialType(SpecialType.System_Boolean)
Symbols\Source\SynthesizedInteractiveInitializerMethod.vb (1)
167resultType = compilation.GetSpecialType(SpecialType.System_Object)
Symbols\Source\SynthesizedSubmissionConstructorSymbol.vb (4)
33Dim submissionArrayType = compilation.CreateArrayTypeSymbol(compilation.GetSpecialType(SpecialType.System_Object)) 65Dim submissionArrayType = compilation.CreateArrayTypeSymbol(compilation.GetSpecialType(SpecialType.System_Object)) 68Dim intType = compilation.GetSpecialType(SpecialType.System_Int32) 69Dim objectType = compilation.GetSpecialType(SpecialType.System_Object)
Symbols\SynthesizedSymbols\SynthesizedGlobal_StringSwitchHashMethodSymbol.vb (2)
34_parameters = ImmutableArray.Create(Of ParameterSymbol)(New SynthesizedParameterSimpleSymbol(Me, compilation.GetSpecialType(SpecialType.System_String), 0, "s")) 35_returnType = compilation.GetSpecialType(SpecialType.System_UInt32)
Symbols\WellKnownMembers.vb (4)
236Dim specialTypeByte = GetSpecialType(SpecialType.System_Byte) 239Dim specialTypeUInt32 = GetSpecialType(SpecialType.System_UInt32) 327GetSpecialType(CType(descriptor.DeclaringTypeId, SpecialType)), 705Dim stringType = GetSpecialType(SpecialType.System_String)
VisualBasicExtensions.vb (1)
791Return vbcomp.GetSpecialType(typeId)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (53)
Attributes\AttributeTests_Synthesized.vb (1)
1829New TypedConstant(comp.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, "unused"))))
CodeGen\CodeGenTuples.vb (50)
6865Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6888Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6889Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 6917Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6918Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 6940Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6941Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 6960Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6961Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 6980Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6981Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7001Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7019Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7020Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7044Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7045Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7069Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7070Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7094Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7095Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7119Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7120Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7150Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7169Dim intType As NamedTypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7191Dim intType As NamedTypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7219Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7245Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7246Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7268Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7269Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7291Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7292Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7309Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7310Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7327Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7343Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7344Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7364Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7365Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7385Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7386Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7406Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7407Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7433Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7450Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7482Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7503Dim intType = comp.GetSpecialType(SpecialType.System_Int32) 7504Dim stringType = comp.GetSpecialType(SpecialType.System_String) 7530Dim intType As NamedTypeSymbol = comp.GetSpecialType(SpecialType.System_String) 8935Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32)
Emit\CompilationEmitTests.vb (1)
4282compilation.GetSpecialType(SpecialType.System_Int32)
PDB\PDBTests.vb (1)
192Dim stInt = c1.GetSpecialType(SpecialType.System_Int32)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (6)
Binders\PlaceholderLocalBinder.vb (1)
73Dim type = Compilation.GetSpecialType(If(specialType = SpecialType.None, SpecialType.System_Object, specialType))
CompilationContext.vb (3)
95_voidType = Me.Compilation.GetSpecialType(SpecialType.System_Void) 134Dim objectType = Me.Compilation.GetSpecialType(SpecialType.System_Object) 200Dim objectType = Me.Compilation.GetSpecialType(SpecialType.System_Object)
Rewriters\LocalDeclarationRewriter.vb (2)
61Dim stringType = compilation.GetSpecialType(SpecialType.System_String) 64compilation.GetSpecialType(SpecialType.System_Byte),
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (172)
Compilation\CompilationAPITests.vb (38)
325Dim ntSmb = comp.GetSpecialType(typeId:=SpecialType.Count) 328ntSmb = comp.GetSpecialType(CType(31, SpecialType)) 1344comp.GetSpecialType((SpecialType.None)) 1350comp.GetSpecialType(CType(0, SpecialType)) 1355comp.GetSpecialType(CType(100, SpecialType)) 1478Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 1479Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 1494Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 1495Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 1562ImmutableArray.Create(DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol), 1563DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol)), 1575ImmutableArray.Create(DirectCast(Compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol), 1576DirectCast(Compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol)), 1586ImmutableArray.Create(DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol), 1587DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol)), 1607ImmutableArray.Create(DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol), 1608DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol)), 1634ImmutableArray.Create(Of ITypeSymbol)(compilation.GetSpecialType(SpecialType.System_Int32)), 1648ImmutableArray.Create(Of ITypeSymbol)(compilation.GetSpecialType(SpecialType.System_Int32)), 1663ImmutableArray.Create(Of ITypeSymbol)(compilation.GetSpecialType(SpecialType.System_Int32), compilation.GetSpecialType(SpecialType.System_Boolean)), 1746Dim intType = compilation.GetSpecialType(SpecialType.System_Int32) 1761Dim intType = compilation.GetSpecialType(SpecialType.System_Int32) 1762Dim boolType = compilation.GetSpecialType(SpecialType.System_Boolean) 1771Dim stringType = compilation.GetSpecialType(SpecialType.System_String) 1780Dim stringType = compilation.GetSpecialType(SpecialType.System_String) 1781Dim boolType = compilation.GetSpecialType(SpecialType.System_Boolean) 1792Dim doubleType = compilation.GetSpecialType(SpecialType.System_Double) 1808Dim intType = compilation.GetSpecialType(SpecialType.System_Int32) 1817Dim intType = compilation.GetSpecialType(SpecialType.System_Int32) 1818Dim nullableIntType = compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(intType) 1839Dim intType = compilation.GetSpecialType(SpecialType.System_Int32) 1851Dim intType = compilation.GetSpecialType(SpecialType.System_Int32) 1860Dim intType = compilation.GetSpecialType(SpecialType.System_Int32) 1861Dim nullableIntType = compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(intType) 1895Dim intType = compilation.GetSpecialType(SpecialType.System_Int32) 1904Dim intType = compilation.GetSpecialType(SpecialType.System_Int32) 1917Dim intType = Compilation.GetSpecialType(SpecialType.System_Int32)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (11)
2760Assert.Equal(compilation.GetSpecialType(System_Int32), local.Type) 2766Assert.Equal(compilation.GetSpecialType(System_String), local.Type) 2778Assert.Equal(compilation.GetSpecialType(System_DateTime), local.Type) 2784Assert.Equal(compilation.GetSpecialType(System_Decimal), local.Type) 2790Assert.Equal(compilation.GetSpecialType(System_Object), local.Type) 2796Assert.Equal(compilation.GetSpecialType(System_Int32), local.Type) 2802Assert.Equal(compilation.GetSpecialType(System_Char), local.Type) 2808Assert.Equal(compilation.GetSpecialType(System_Boolean), local.Type) 2814Assert.Equal(compilation.GetSpecialType(System_Single), local.Type) 2820Assert.Equal(compilation.GetSpecialType(System_Byte), local.Type) 2826Assert.Equal(compilation.GetSpecialType(System_Int32), local.Type)
Semantics\BinaryOperators.vb (4)
982types(types.Length - 1) = compilation.GetSpecialType(SpecialType.System_String) 1169Dim containerName As String = compilation.GetSpecialType(resultType).ToTestDisplayString() 1184returnName = compilation.GetSpecialType(SpecialType.System_Boolean).ToTestDisplayString() 1189rightName = compilation.GetSpecialType(SpecialType.System_Int32).ToTestDisplayString()
Semantics\Conversions.vb (72)
231Dim objectType = c1.GetSpecialType(System_Object) 232Dim booleanType = c1.GetSpecialType(System_Boolean) 233Dim byteType = c1.GetSpecialType(System_Byte) 234Dim sbyteType = c1.GetSpecialType(System_SByte) 235Dim int16Type = c1.GetSpecialType(System_Int16) 236Dim uint16Type = c1.GetSpecialType(System_UInt16) 237Dim int32Type = c1.GetSpecialType(System_Int32) 238Dim uint32Type = c1.GetSpecialType(System_UInt32) 239Dim int64Type = c1.GetSpecialType(System_Int64) 240Dim uint64Type = c1.GetSpecialType(System_UInt64) 241Dim doubleType = c1.GetSpecialType(System_Double) 242Dim singleType = c1.GetSpecialType(System_Single) 243Dim decimalType = c1.GetSpecialType(System_Decimal) 244Dim dateType = c1.GetSpecialType(System_DateTime) 245Dim stringType = c1.GetSpecialType(System_String) 246Dim charType = c1.GetSpecialType(System_Char) 247Dim intPtrType = c1.GetSpecialType(System_IntPtr) 361Dim nullableType = c1.GetSpecialType(System_Nullable_T) 1082Dim objectType = c1.GetSpecialType(System_Object) 1083Dim booleanType = c1.GetSpecialType(System_Boolean) 1084Dim byteType = c1.GetSpecialType(System_Byte) 1085Dim sbyteType = c1.GetSpecialType(System_SByte) 1086Dim int16Type = c1.GetSpecialType(System_Int16) 1087Dim uint16Type = c1.GetSpecialType(System_UInt16) 1088Dim int32Type = c1.GetSpecialType(System_Int32) 1089Dim uint32Type = c1.GetSpecialType(System_UInt32) 1090Dim int64Type = c1.GetSpecialType(System_Int64) 1091Dim uint64Type = c1.GetSpecialType(System_UInt64) 1092Dim doubleType = c1.GetSpecialType(System_Double) 1093Dim singleType = c1.GetSpecialType(System_Single) 1094Dim decimalType = c1.GetSpecialType(System_Decimal) 1095Dim dateType = c1.GetSpecialType(System_DateTime) 1096Dim stringType = c1.GetSpecialType(System_String) 1097Dim charType = c1.GetSpecialType(System_Char) 1098Dim intPtrType = c1.GetSpecialType(System_IntPtr) 1126Dim nullableType = c1.GetSpecialType(System_Nullable_T) 1472Dim arrayInt32 = c1.CreateArrayTypeSymbol(c1.GetSpecialType(System_Int32)) 1481Dim enumerable = c1.GetSpecialType(System_Collections_Generic_IEnumerable_T) 1592Dim [object] = c1.GetSpecialType(System_Object) 1905Dim void = c1.GetSpecialType(System_Void) 1906Dim valueType = c1.GetSpecialType(System_ValueType) 2024Dim nullable = c1.GetSpecialType(System_Nullable_T) 2027c1.GetSpecialType(System_Byte), 2028c1.GetSpecialType(System_SByte), 2029c1.GetSpecialType(System_UInt16), 2030c1.GetSpecialType(System_Int16), 2031c1.GetSpecialType(System_UInt32), 2032c1.GetSpecialType(System_Int32), 2033c1.GetSpecialType(System_UInt64), 2034c1.GetSpecialType(System_Int64), 2035c1.GetSpecialType(System_Decimal), 2036c1.GetSpecialType(System_Single), 2037c1.GetSpecialType(System_Double), 2038c1.GetSpecialType(System_String), 2039c1.GetSpecialType(System_Char), 2040c1.GetSpecialType(System_Boolean), 2041c1.GetSpecialType(System_DateTime), 2042c1.GetSpecialType(System_Object), 2043nullable.Construct(c1.GetSpecialType(System_Byte)), 2044nullable.Construct(c1.GetSpecialType(System_SByte)), 2045nullable.Construct(c1.GetSpecialType(System_UInt16)), 2046nullable.Construct(c1.GetSpecialType(System_Int16)), 2047nullable.Construct(c1.GetSpecialType(System_UInt32)), 2048nullable.Construct(c1.GetSpecialType(System_Int32)), 2049nullable.Construct(c1.GetSpecialType(System_UInt64)), 2050nullable.Construct(c1.GetSpecialType(System_Int64)), 2051nullable.Construct(c1.GetSpecialType(System_Decimal)), 2052nullable.Construct(c1.GetSpecialType(System_Single)), 2053nullable.Construct(c1.GetSpecialType(System_Double)), 2054nullable.Construct(c1.GetSpecialType(System_Char)), 2055nullable.Construct(c1.GetSpecialType(System_Boolean)), 2056nullable.Construct(c1.GetSpecialType(System_DateTime))
Semantics\ForeachTest.vb (1)
1256Assert.Equal(comp.GetSpecialType(SpecialType.System_Array), loopInfo0.GetEnumeratorMethod.ContainingType) ' Unlike C#, the spec doesn't say that arrays use IEnumerable
Semantics\GetExtendedSemanticInfoTests.vb (26)
6219Dim getEnumerator = DirectCast(DirectCast(compilation.GetSpecialType(System_Array), TypeSymbol).GetMember("GetEnumerator"), MethodSymbol) 6220Dim moveNext = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), MethodSymbol) 6221Dim current = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__Current), PropertySymbol) 6222Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6271Dim getEnumerator = DirectCast(DirectCast(compilation.GetSpecialType(System_Array), TypeSymbol).GetMember("GetEnumerator"), MethodSymbol) 6272Dim moveNext = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), MethodSymbol) 6273Dim current = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__Current), PropertySymbol) 6274Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6319Dim getEnumerator = DirectCast(DirectCast(compilation.GetSpecialType(System_String), TypeSymbol).GetMember("GetEnumerator"), MethodSymbol) 6322Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6460Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6537Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6653Dim getEnumerator = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerable__GetEnumerator), MethodSymbol) 6654Dim moveNext = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), MethodSymbol) 6655Dim current = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__Current), PropertySymbol) 6656Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6709Dim ienumerable = compilation.GetSpecialType(System_Collections_Generic_IEnumerable_T).Construct(ImmutableArray.Create(Of TypeSymbol)(compilation.GetSpecialType(System_Int32))) 6710Dim ienumerator = compilation.GetSpecialType(System_Collections_Generic_IEnumerator_T).Construct(ImmutableArray.Create(Of TypeSymbol)(compilation.GetSpecialType(System_Int32))) 6712Dim moveNext = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), MethodSymbol) 6714Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6756Dim moveNext = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), MethodSymbol) 6757Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6843Dim moveNext = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), MethodSymbol) 6844Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol)
Semantics\GetSemanticInfoTests.vb (5)
5722Dim otherFuncType = comp.GetWellKnownType(WellKnownType.System_Func_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)) 5737Dim otherFuncType = comp.GetWellKnownType(WellKnownType.System_Func_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)) 5944Dim typeInt = comp.GetSpecialType(SpecialType.System_Int32) 6369compilation.GetSpecialType(type) 6394compilation.GetSpecialType(type)
Semantics\OverloadResolution.vb (14)
183Dim TestClass2OfInteger = TestClass2.Construct(c1.GetSpecialType(System_Int32)) 194Dim intZero As BoundExpression = New BoundLiteral(_syntaxNode, ConstantValue.Create(0I), c1.GetSpecialType(System_Int32)) 195Dim longZero As BoundExpression = New BoundLiteral(_syntaxNode, ConstantValue.Create(0L), c1.GetSpecialType(System_Int64)) 196Dim unsignedOne As BoundExpression = New BoundLiteral(_syntaxNode, ConstantValue.Create(1UI), c1.GetSpecialType(System_UInt32)) 197Dim longConst As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(-1L), c1.GetSpecialType(System_Int64), Nothing) 202Dim doubleConst As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(0.0R), c1.GetSpecialType(System_Double), Nothing) 204Dim shortVal As BoundExpression = New BoundRValuePlaceholder(_syntaxNode, c1.GetSpecialType(System_Int16)) 205Dim ushortVal As BoundExpression = New BoundRValuePlaceholder(_syntaxNode, c1.GetSpecialType(System_UInt16)) 206Dim objectVal As BoundExpression = New BoundRValuePlaceholder(_syntaxNode, c1.GetSpecialType(System_Object)) 212Dim stringVal As BoundExpression = New BoundRValuePlaceholder(_syntaxNode, c1.GetSpecialType(System_String)) 2883Dim DoubleMaxValue As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(Double.MaxValue), c1.GetSpecialType(System_Double), Nothing) 2884Dim IntegerMaxValue As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(Integer.MaxValue), c1.GetSpecialType(System_Int32), Nothing) 3074Dim DoubleMaxValue As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(Double.MaxValue), c1.GetSpecialType(System_Double), Nothing) 3075Dim IntegerMaxValue As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(Integer.MaxValue), c1.GetSpecialType(System_Int32), Nothing)
Semantics\UnaryOperators.vb (1)
736Dim containerName As String = compilation.GetSpecialType(resultType).ToTestDisplayString()
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (57)
DocumentationComments\DocCommentTests.vb (4)
4898TestSymbolAndTypeInfoForType(model, names(0), compilation.GetSpecialType(SpecialType.System_UInt16)) 4899TestSymbolAndTypeInfoForType(model, names(1), compilation.GetSpecialType(SpecialType.System_UInt16)) 4926TestSymbolAndTypeInfoForType(model, names(0), compilation.GetSpecialType(SpecialType.System_String)) 4927TestSymbolAndTypeInfoForType(model, names(1), compilation.GetSpecialType(SpecialType.System_String))
SymbolsTests\AssemblyAndNamespaceTests.vb (1)
526Dim objectType = comp.GetSpecialType(SpecialType.System_Object)
SymbolsTests\CorLibrary\Choosing.vb (4)
46Dim obj = corLib.GetSpecialType(SpecialType.System_Object) 61Assert.Same(obj, consumer.GetSpecialType(SpecialType.System_Object)) 76Dim obj = corLib.GetSpecialType(SpecialType.System_Object) 88Assert.True(consumer.GetSpecialType(SpecialType.System_Object).IsErrorType())
SymbolsTests\CorLibrary\CorTypes.vb (2)
146Assert.Throws(Of ArgumentOutOfRangeException)(Function() c1.GetSpecialType(SpecialType.None)) 147Assert.Throws(Of ArgumentOutOfRangeException)(Function() c1.GetSpecialType(CType(SpecialType.Count + 1, SpecialType)))
SymbolsTests\ExtensionMethods\ExtensionMethodTests.vb (1)
2563Dim reducedMethodOnVoid = extensionMethod.ReduceExtensionMethod(compilation.GetSpecialType(SpecialType.System_Void))
SymbolsTests\InstantiatingGenerics.vb (4)
467Dim int = compilation.GetSpecialType(SpecialType.System_Int32) 689Dim int = compilation.GetSpecialType(SpecialType.System_Int32) 690Dim bte = compilation.GetSpecialType(SpecialType.System_Byte) 691Dim chr = compilation.GetSpecialType(SpecialType.System_Char)
SymbolsTests\Metadata\PE\LoadingOperators.vb (1)
2800Dim nullable = compilation.GetSpecialType(SpecialType.System_Nullable_T)
SymbolsTests\Metadata\WinMdEventTest.vb (2)
1605Dim voidType = compilation.GetSpecialType(SpecialType.System_Void) 1632Dim voidType = compilation.GetSpecialType(SpecialType.System_Void)
SymbolsTests\Source\BaseClassTests.vb (3)
2290Dim typeC = comp.GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").Construct(comp.GetSpecialType(SpecialType.System_Int32)) 2325Dim typeC = comp.GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").Construct(comp.GetSpecialType(SpecialType.System_Int32)) 2355Dim typeC = comp.GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").Construct(comp.GetSpecialType(SpecialType.System_Int32))
SymbolsTests\Source\ClsComplianceTests.vb (2)
2560Dim integerType = helper.GetSpecialType(SpecialType.System_Int32) 2568Dim type = helper.GetSpecialType(st)
SymbolsTests\Source\DelegateTests.vb (2)
251Assert.Equal(compilation.GetSpecialType(SpecialType.System_Object), ctor.Parameters(0).Type) 252Assert.Equal(compilation.GetSpecialType(SpecialType.System_IntPtr), ctor.Parameters(1).Type)
SymbolsTests\Source\FieldTests.vb (1)
535Dim substitutedType = type.Construct(compilation.GetSpecialType(SpecialType.System_Int32))
SymbolsTests\Source\ImplementsTests.vb (6)
2532Dim listOfString = listOfT.Construct(comp.GetSpecialType(SpecialType.System_String)) 2535Dim outerOfInt = outerOfX.Construct(comp.GetSpecialType(SpecialType.System_Int32)) 2544Dim iFooOfIntIntListOfString = iFooOfIntTU.Construct(comp.GetSpecialType(SpecialType.System_Int32), listOfString) 2546Dim fooOfIntString = fooOfIntY.Construct(comp.GetSpecialType(SpecialType.System_String)) 2549Dim ifooOfIntIntStringSay1 = (From m In iFooOfIntIntListOfStringMethods Where TypeSymbol.Equals(m.Parameters(0).Type, comp.GetSpecialType(SpecialType.System_Int32), TypeCompareKind.ConsiderEverything)).First() 2550Dim ifooOfIntIntStringSay2 = (From m In iFooOfIntIntListOfStringMethods Where Not TypeSymbol.Equals(m.Parameters(0).Type, comp.GetSpecialType(SpecialType.System_Int32), TypeCompareKind.ConsiderEverything)).First()
SymbolsTests\Source\MethodTests.vb (15)
680Dim constructedC = classC.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_Int32)}).AsImmutableOrNull()) 755Dim constructedM1 = m1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String), compilation.GetSpecialType(SpecialType.System_Boolean)}).AsImmutableOrNull()) 766Assert.Throws(Of InvalidOperationException)(Sub() constructedM1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String), compilation.GetSpecialType(SpecialType.System_Boolean)}).AsImmutableOrNull())) 770Dim constructedM1WrongArity = m1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String)}).AsImmutableOrNull()) 782constructedM1 = m1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String), compilation.GetSpecialType(SpecialType.System_Boolean)}).AsImmutableOrNull()) 784Assert.Throws(Of InvalidOperationException)(Sub() constructedM1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String), compilation.GetSpecialType(SpecialType.System_Boolean)}).AsImmutableOrNull())) 785Dim constructedM1_2 = m1.Construct(compilation.GetSpecialType(SpecialType.System_Byte), compilation.GetSpecialType(SpecialType.System_Boolean)) 786Dim constructedM1_3 = m1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String), compilation.GetSpecialType(SpecialType.System_Boolean)}).AsImmutableOrNull()) 801Dim constructedM3 = m3.Construct(compilation.GetSpecialType(SpecialType.System_String))
SymbolsTests\Source\OverridesTests.vb (1)
2548Dim obj = compilation.GetSpecialType(SpecialType.System_Object)
SymbolsTests\Source\TypeTests.vb (3)
3800Dim modifiers = ImmutableArray.Create(VisualBasicCustomModifier.CreateOptional(compilation.GetSpecialType(SpecialType.System_Object))) 3864Dim modifiers = ImmutableArray.Create(VisualBasicCustomModifier.CreateOptional(compilation.GetSpecialType(SpecialType.System_Object))) 3925Dim modifiers = ImmutableArray.Create(VisualBasicCustomModifier.CreateOptional(compilation.GetSpecialType(SpecialType.System_Object)))
SymbolsTests\TypedConstantTests.vb (2)
27_namedType = _compilation.GetSpecialType(SpecialType.System_Byte) 29_arrayType = _compilation.CreateArrayTypeSymbol(_compilation.GetSpecialType(SpecialType.System_Object))
SymbolsTests\WellKnownTypeValidationTests.vb (3)
37Dim special = comp.GetSpecialType(SpecialType.System_String) 121Dim special = comp.GetSpecialType(SpecialType.System_Nullable_T) 454Dim symbol = comp.GetSpecialType(special)