80 references to GetSpecialType
Microsoft.CodeAnalysis.VisualBasic (63)
Binding\Binder_Lookup.vb (3)
1471Dim obj As NamedTypeSymbol = binder.SourceModule.ContainingAssembly.GetSpecialType(SpecialType.System_Object) 2006binder.SourceModule.ContainingAssembly.GetSpecialType(SpecialType.System_Object), 2163Return typeParameter.ContainingAssembly.GetSpecialType(If(typeParameter.HasValueTypeConstraint, SpecialType.System_ValueType, SpecialType.System_Object))
Binding\Binder_Statements.vb (1)
4326Dim valueTypeSymbol = interfaceType.ContainingAssembly.GetSpecialType(SpecialType.System_ValueType)
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (4)
264accessor.ContainingAssembly.GetSpecialType(SpecialType.System_Object)), 266accessor.ContainingAssembly.GetSpecialType(SpecialType.System_Boolean))).MakeCompilerGenerated, 344accessor.ContainingAssembly.GetSpecialType(SpecialType.System_Object)), 346accessor.ContainingAssembly.GetSpecialType(SpecialType.System_Boolean))).MakeCompilerGenerated,
Binding\SyntheticBoundTrees\SynthesizedStringSwitchHashMethod.vb (4)
57Dim i As LocalSymbol = F.SynthesizedLocal(Me.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)) 58Dim hashCode As LocalSymbol = F.SynthesizedLocal(Me.ContainingAssembly.GetSpecialType(SpecialType.System_UInt32)) 98F.Binary(BinaryOperatorKind.IsNot, Me.ContainingAssembly.GetSpecialType(SpecialType.System_Boolean), 119F.Binary(BinaryOperatorKind.LessThan, Me.ContainingAssembly.GetSpecialType(SpecialType.System_Boolean),
BoundTree\BoundAssignmentOperator.vb (2)
42left.GetPropertyOrXmlProperty().ContainingAssembly.GetSpecialType(SpecialType.System_Void), 44left.Type.ContainingAssembly.GetSpecialType(SpecialType.System_Void),
Compilation\MethodCompiler.vb (2)
1865Dim objectType = constructor.ContainingAssembly.GetSpecialType(SpecialType.System_Object) 2030Dim voidType As NamedTypeSymbol = constructor.ContainingAssembly.GetSpecialType(SpecialType.System_Void)
Compilation\VisualBasicCompilation.vb (1)
1949Dim result = Assembly.GetSpecialType(typeId)
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (1)
81_deepTranslator = New VisualBasicSymbolMatcher.DeepTranslator(sourceAssembly.GetSpecialType(SpecialType.System_Object))
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (1)
34_symbols = New MatchSymbols(anonymousTypeMap, sourceAssembly, otherAssembly, otherSynthesizedMembersOpt, otherDeletedMembersOpt, New DeepTranslator(otherAssembly.GetSpecialType(SpecialType.System_Object)))
Emit\NamedTypeSymbolAdapter.vb (1)
233baseType = AdaptedNamedTypeSymbol.ContainingAssembly.GetSpecialType(Microsoft.CodeAnalysis.SpecialType.System_Object)
Emit\NoPia\EmbeddedTypesManager.vb (1)
109ImmutableArray.Create(New TypedConstant(ctor.Parameters(0).Type, TypedConstantKind.Type, ctor.ContainingAssembly.GetSpecialType(SpecialType.System_Object))),
Emit\PEModuleBuilder.vb (1)
600Dim typeSymbol = SourceModule.ContainingAssembly.GetSpecialType(specialType)
Lowering\AsyncRewriter\AsyncStateMachine.vb (1)
22asyncMethod.ContainingAssembly.GetSpecialType(If(typeKind = TypeKind.Struct, SpecialType.System_ValueType, SpecialType.System_Object)),
Lowering\IteratorRewriter\IteratorRewriter.vb (2)
37Me._elementType = method.ContainingAssembly.GetSpecialType(SpecialType.System_Object) 68elementType = method.ContainingAssembly.GetSpecialType(SpecialType.System_Object)
Lowering\IteratorRewriter\IteratorStateMachine.vb (6)
29iteratorMethod.ContainingAssembly.GetSpecialType(SpecialType.System_Object), 51interfaces.Add(containingAssembly.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(elementType)) 52interfaces.Add(containingAssembly.GetSpecialType(SpecialType.System_Collections_IEnumerable)) 55interfaces.Add(containingAssembly.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerator_T).Construct(elementType)) 56interfaces.Add(containingAssembly.GetSpecialType(SpecialType.System_IDisposable)) 57interfaces.Add(containingAssembly.GetSpecialType(SpecialType.System_Collections_IEnumerator))
Lowering\LambdaRewriter\LambdaFrame.vb (2)
178Dim type = ContainingAssembly.GetSpecialType(SpecialType.System_Object) 190Dim type = ContainingAssembly.GetSpecialType(SpecialType.System_Object)
Lowering\LambdaRewriter\LambdaRewriter.vb (2)
430Dim bool = frame.ContainingAssembly.GetSpecialType(SpecialType.System_Boolean) 434Dim obj = frame.ContainingAssembly.GetSpecialType(SpecialType.System_Object)
Lowering\LocalRewriter\LocalRewriter.vb (2)
560Dim result As NamedTypeSymbol = Me._topMethod.ContainingAssembly.GetSpecialType(specialType) 566Dim result As NamedTypeSymbol = Me._topMethod.ContainingAssembly.GetSpecialType(specialType)
Semantics\Conversions.vb (4)
1477Dim nullableOfT As NamedTypeSymbol = booleanType.ContainingAssembly.GetSpecialType(SpecialType.System_Nullable_T) 2062Dim valueType = typeParameter.ContainingAssembly.GetSpecialType(SpecialType.System_ValueType) 3752Dim valueType = typeParameter.ContainingAssembly.GetSpecialType(SpecialType.System_ValueType) 3912Dim valueType = typeParameter.ContainingAssembly.GetSpecialType(SpecialType.System_ValueType)
Semantics\Operators.vb (1)
3163Dim nullableOfT As NamedTypeSymbol = opSet(0).ContainingAssembly.GetSpecialType(SpecialType.System_Nullable_T)
Symbols\ArrayTypeSymbol.vb (4)
48Dim systemArray = declaringAssembly.GetSpecialType(Microsoft.CodeAnalysis.SpecialType.System_Array) 73declaringAssembly.GetSpecialType(Microsoft.CodeAnalysis.SpecialType.System_Array), 80Dim iListOfT = declaringAssembly.GetSpecialType(SpecialType.System_Collections_Generic_IList_T) 81Dim iReadOnlyListOfT = declaringAssembly.GetSpecialType(SpecialType.System_Collections_Generic_IReadOnlyList_T)
Symbols\AssemblySymbol.vb (4)
370GetSpecialType(SpecialType.System_Runtime_CompilerServices_PreserveBaseOverridesAttribute).IsClassType() 412Dim runtimeFeature = GetSpecialType(SpecialType.System_Runtime_CompilerServices_RuntimeFeature) 483Return GetSpecialType(SpecialType.System_Object) 494Return GetSpecialType(SpecialTypes.GetTypeFromMetadataName(type))
Symbols\EventSymbol.vb (1)
160Return ContainingAssembly.GetSpecialType(SpecialType.System_Void)
Symbols\Metadata\PE\SymbolFactory.vb (1)
34Return moduleSymbol.ContainingAssembly.GetSpecialType(specialType)
Symbols\Source\SourceAssemblySymbol.vb (1)
912Dim obj = GetSpecialType(SpecialType.System_Object)
Symbols\Source\SourceFieldSymbol.vb (1)
666Dim specialTypeInt64 = Me.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)
Symbols\Source\SourceMemberFieldSymbol.vb (2)
254constantType = ContainingAssembly.GetSpecialType(SpecialType.System_Object) 259constantType = ContainingAssembly.GetSpecialType(SpecialType.System_Object)
Symbols\Source\SourceNamedTypeSymbol.vb (1)
1413Return ContainingModule.ContainingAssembly.GetSpecialType(type)
Symbols\Source\SynthesizedMainTypeEntryPoint.vb (1)
44Return ContainingAssembly.GetSpecialType(SpecialType.System_Void)
Symbols\Source\SynthesizedMyGroupCollectionPropertyAccessorSymbol.vb (1)
212Return ContainingAssembly.GetSpecialType(SpecialType.System_Void)
Symbols\SynthesizedSymbols\SynthesizedConstructorBase.vb (1)
52m_voidType = ContainingAssembly.GetSpecialType(SpecialType.System_Void)
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (1)
240Return _containingType.ContainingAssembly.GetSpecialType(Microsoft.CodeAnalysis.SpecialType.System_MulticastDelegate)
Symbols\SynthesizedSymbols\SynthesizedMethod.vb (1)
96Dim type = ContainingAssembly.GetSpecialType(SpecialType.System_Void)
Symbols\TypeSymbolExtensions.vb (1)
682Dim genericIEnumerable = typeWithContainingAssembly.ContainingAssembly.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Attributes\AttributeTests.vb (1)
2199Dim classYOfInt As NamedTypeSymbol = classY.Construct(ImmutableArray.Create(Of TypeSymbol)(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\AccessCheckTests.vb (1)
795Assert.Equal(sourceAssem.GetSpecialType(SpecialType.System_Object), sourceAssem.ObjectType)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (14)
SymbolsTests\AssemblyAndNamespaceTests.vb (2)
530Assert.Equal(objectType, comp.Assembly.GetSpecialType(SpecialType.System_Object)) 531Assert.Equal(objectType, comp.Assembly.CorLibrary.GetSpecialType(SpecialType.System_Object))
SymbolsTests\CompilationCreationTests.vb (1)
95Dim type As NamedTypeSymbol = c1.Assembly.GetSpecialType(CType(i, SpecialType))
SymbolsTests\CorLibrary\CorTypes.vb (7)
21Dim t = noMsCorLibRef.GetSpecialType(CType(i, SpecialType)) 44Dim t = msCorLibRef.GetSpecialType(CType(i, SpecialType)) 94Dim t = msCorLibRef.GetSpecialType(CType(i, SpecialType)) 129Dim t = c1.Assembly.GetSpecialType(CType(i, SpecialType)) 144Assert.Same(system_object, c1.Assembly.GetSpecialType(SpecialType.System_Object)) 148Assert.Throws(Of ArgumentOutOfRangeException)(Function() msCorLibRef.GetSpecialType(SpecialType.None)) 149Assert.Throws(Of ArgumentOutOfRangeException)(Function() msCorLibRef.GetSpecialType(CType(SpecialType.Count + 1, SpecialType)))
SymbolsTests\Metadata\PE\MissingTypeReferences.vb (4)
421Assert.Equal(asm1.GetSpecialType(SpecialType.System_Boolean), asm1.GetSpecialType(SpecialType.System_Boolean)) 422Assert.Equal(asm2.GetSpecialType(SpecialType.System_Boolean), asm1.GetSpecialType(SpecialType.System_Boolean))
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
MetadataHelpers.vb (1)
13Return this.ContainingAssembly.GetSpecialType(typeId)