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