92 references to GetSpecialType
Microsoft.CodeAnalysis.CSharp (54)
Binder\Binder_Patterns.cs (1)
825
expressionType = conversions.CorLibrary.
GetSpecialType
(SpecialType.System_Object);
Binder\Semantics\Conversions\ConversionsBase.cs (3)
1619
var multicastDelegateType = corLibrary.
GetSpecialType
(SpecialType.System_MulticastDelegate);
1756
TypeSymbol expectedAttributeType = corLibrary.
GetSpecialType
(SpecialType.System_Int32);
1783
TypeSymbol expectedAttributeType = corLibrary.
GetSpecialType
(SpecialType.System_String);
Compilation\CSharpCompilation.cs (1)
1676
result = Assembly.
GetSpecialType
(specialType);
Compilation\CSharpSemanticModel.cs (1)
3876
var objectType = binaryOperator.Type.ContainingAssembly.
GetSpecialType
(SpecialType.System_Object);
Compiler\MethodBodySynthesizer.cs (1)
38
var objectType = constructor.ContainingAssembly.
GetSpecialType
(SpecialType.System_Object);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
34
_visitor = new Visitor(sourceAssembly, otherAssembly, synthesizedTypes, otherSynthesizedMembers, otherDeletedMembers, new DeepTranslator(otherAssembly.
GetSpecialType
(SpecialType.System_Object)));
280
return _otherAssembly.
GetSpecialType
(SpecialType.System_Object);
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
73
_deepTranslator = new CSharpSymbolMatcher.DeepTranslator(sourceAssembly.
GetSpecialType
(SpecialType.System_Object));
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
295
baseType = AdaptedNamedTypeSymbol.ContainingAssembly.
GetSpecialType
(Microsoft.CodeAnalysis.SpecialType.System_Object);
Emitter\Model\ParameterSymbolAdapter.cs (1)
90
type = AdaptedParameterSymbol.ContainingAssembly.
GetSpecialType
(constant.SpecialType);
Emitter\Model\PEModuleBuilder.cs (1)
818
var typeSymbol = SourceModule.ContainingAssembly.
GetSpecialType
(specialType);
Emitter\NoPia\EmbeddedTypesManager.cs (1)
147
ImmutableArray.Create(new TypedConstant(ctor.Parameters[0].Type, TypedConstantKind.Type, ctor.ContainingAssembly.
GetSpecialType
(SpecialType.System_Object))),
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
147
get { return TypeWithAnnotations.Create(ContainingAssembly.
GetSpecialType
(SpecialType.System_Void)); }
Lowering\IteratorRewriter\IteratorStateMachine.cs (6)
34
interfaces.Add(ContainingAssembly.
GetSpecialType
(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(ElementType.Type));
35
interfaces.Add(ContainingAssembly.
GetSpecialType
(SpecialType.System_Collections_IEnumerable));
38
interfaces.Add(ContainingAssembly.
GetSpecialType
(SpecialType.System_Collections_Generic_IEnumerator_T).Construct(ElementType.Type));
39
interfaces.Add(ContainingAssembly.
GetSpecialType
(SpecialType.System_IDisposable));
40
interfaces.Add(ContainingAssembly.
GetSpecialType
(SpecialType.System_Collections_IEnumerator));
61
internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => ContainingAssembly.
GetSpecialType
(SpecialType.System_Object);
Lowering\LocalRewriter\LocalRewriter.cs (1)
630
TypeSymbol container = compilation.Assembly.
GetSpecialType
(type);
Symbols\AbstractTypeMap.cs (1)
391
dynamicEraser = new DynamicTypeEraser(owner.ContainingAssembly.CorLibrary.
GetSpecialType
(SpecialType.System_Object));
Symbols\ArrayTypeSymbol.cs (4)
73
return CreateMDArray(elementType, rank, sizes, lowerBounds, declaringAssembly.
GetSpecialType
(SpecialType.System_Array));
95
return CreateSZArray(elementType, declaringAssembly.
GetSpecialType
(SpecialType.System_Array), GetSZArrayInterfaces(elementType, declaringAssembly));
113
var iListOfT = declaringAssembly.
GetSpecialType
(SpecialType.System_Collections_Generic_IList_T);
119
var iReadOnlyListOfT = declaringAssembly.
GetSpecialType
(SpecialType.System_Collections_Generic_IReadOnlyList_T);
Symbols\AssemblySymbol.cs (4)
501
return
GetSpecialType
(SpecialType.System_Runtime_CompilerServices_RuntimeFeature) is { TypeKind: TypeKind.Class, IsStatic: true } &&
524
GetSpecialType
(SpecialType.System_Runtime_CompilerServices_PreserveBaseOverridesAttribute) is { TypeKind: TypeKind.Class };
625
return
GetSpecialType
(SpecialType.System_Object);
636
return
GetSpecialType
(SpecialTypes.GetTypeFromMetadataName(type));
Symbols\ConstraintsHelper.cs (4)
143
NamedTypeSymbol effectiveBaseClass = corLibrary.
GetSpecialType
(typeParameter.HasValueTypeConstraint ? SpecialType.System_ValueType : SpecialType.System_Object);
258
constraintEffectiveBase = corLibrary.
GetSpecialType
(SpecialType.System_ValueType);
264
constraintEffectiveBase = corLibrary.
GetSpecialType
(SpecialType.System_Enum);
270
constraintEffectiveBase = corLibrary.
GetSpecialType
(SpecialType.System_Array);
Symbols\Metadata\PE\DynamicTypeDecoder.cs (1)
176
: _containingAssembly.
GetSpecialType
(SpecialType.System_Object);
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
710
return this.ContainingAssembly.
GetSpecialType
(SpecialType.System_Object);
Symbols\Metadata\PE\SymbolFactory.cs (1)
31
return moduleSymbol.ContainingAssembly.
GetSpecialType
(specialType);
Symbols\Source\SourceAssemblySymbol.cs (1)
1894
var obj =
GetSpecialType
(SpecialType.System_Object);
Symbols\Source\SourceFieldSymbol.cs (1)
89
CSharpCustomModifier.CreateRequired(this.ContainingAssembly.
GetSpecialType
(SpecialType.System_Runtime_CompilerServices_IsVolatile)));
Symbols\Source\SourceFixedFieldSymbol.cs (1)
238
=> ContainingAssembly.
GetSpecialType
(SpecialType.System_ValueType);
Symbols\Source\SourceTypeParameterSymbol.cs (1)
347
return this.ContainingAssembly.
GetSpecialType
(SpecialType.System_Object);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
200
internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => ContainingAssembly.
GetSpecialType
(SpecialType.System_Object);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (2)
61
internal override TypeSymbol GetDeducedBaseType(ConsList<TypeParameterSymbol> inProgress) => ContainingAssembly.
GetSpecialType
(SpecialType.System_Object);
63
internal override NamedTypeSymbol GetEffectiveBaseClass(ConsList<TypeParameterSymbol> inProgress) => ContainingAssembly.
GetSpecialType
(SpecialType.System_Object);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
877
internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => ContainingAssembly.
GetSpecialType
(SpecialType.System_Object);
Symbols\Synthesized\SynthesizedContainer.cs (1)
161
internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => ContainingAssembly.
GetSpecialType
(this.TypeKind == TypeKind.Struct ? SpecialType.System_ValueType : SpecialType.System_Object);
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (3)
131
internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => ContainingAssembly.
GetSpecialType
(SpecialType.System_ValueType);
261
internal override TypeSymbol GetDeducedBaseType(ConsList<TypeParameterSymbol> inProgress) => ContainingAssembly.
GetSpecialType
(SpecialType.System_Object);
263
internal override NamedTypeSymbol GetEffectiveBaseClass(ConsList<TypeParameterSymbol> inProgress) => ContainingAssembly.
GetSpecialType
(SpecialType.System_Object);
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
156
get { return TypeWithAnnotations.Create(ContainingAssembly.
GetSpecialType
(SpecialType.System_Void)); }
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
139
return TypeWithAnnotations.Create(ContainingAssembly.
GetSpecialType
(SpecialType.System_Void));
Utilities\TypeSymbolExtensions.cs (2)
280
return compilation.Assembly.
GetSpecialType
(SpecialType.System_Object);
284
return compilation.Assembly.
GetSpecialType
(SpecialType.System_ValueType);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests.cs (1)
5517
NamedTypeSymbol classYOfInt = classY.ConstructIfGeneric(ImmutableArray.Create(TypeWithAnnotations.Create(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int32))));
Semantics\InlineArrayTests.cs (1)
192
var bufferOfInt = buffer.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int32));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (35)
Symbols\AssemblyAndNamespaceTests.cs (2)
385
Assert.Equal(objectType, comp.Assembly.
GetSpecialType
(SpecialType.System_Object));
386
Assert.Equal(objectType, comp.Assembly.CorLibrary.
GetSpecialType
(SpecialType.System_Object));
Symbols\CorLibrary\CorTypes.cs (5)
36
var t = noMsCorLibRef.
GetSpecialType
((SpecialType)i);
65
var t = msCorLibRef.
GetSpecialType
((SpecialType)i);
82
var t = msCorLibRef.
GetSpecialType
((InternalSpecialType)i);
145
var t = msCorLibRef.
GetSpecialType
((SpecialType)i);
164
var t = msCorLibRef.
GetSpecialType
((InternalSpecialType)i);
Symbols\DefaultInterfaceImplementationTests.cs (21)
34842
var test1i1 = i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int32));
34843
var test1i1m1 = i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int32)).GetMember<MethodSymbol>("M1");
34844
var test1i1m2 = i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int32)).GetMember<MethodSymbol>("M2");
34846
var test2i1 = i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64));
34847
var test2i1m1 = i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64)).GetMember<MethodSymbol>("M1");
34848
var test2i1m2 = i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64)).GetMember<MethodSymbol>("M2");
34849
var test2i2 = i2.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64));
34850
var test2i2m1 = i2.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64)).GetMember<MethodSymbol>("I1<T>.M1");
34851
var test2i2m2 = i2.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64)).GetMember<MethodSymbol>("I1<T>.M2");
39139
var test1i1 = i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int32));
39140
var test1i1m1 = GetSingleProperty(i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int32)));
39142
var test2i1 = i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64));
39143
var test2i1m1 = GetSingleProperty(i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64)));
39144
var test2i2 = i2.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64));
39145
var test2i2m1 = GetSingleProperty(i2.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64)));
41815
var test1i1 = i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int32));
41816
var test1i1m1 = GetSingleEvent(i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int32)));
41818
var test2i1 = i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64));
41819
var test2i1m1 = GetSingleEvent(i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64)));
41820
var test2i2 = i2.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64));
41821
var test2i2m1 = GetSingleEvent(i2.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64)));
Symbols\Metadata\PE\DynamicTransformsTests.cs (3)
47
_objectType = _assembly.CorLibrary.
GetSpecialType
(SpecialType.System_Object);
48
_intType = _assembly.CorLibrary.
GetSpecialType
(SpecialType.System_Int32);
373
var nullableStruct = _assembly.CorLibrary.
GetSpecialType
(SpecialType.System_Nullable_T).Construct(structType);
Symbols\Metadata\PE\MissingTypeReferences.cs (4)
319
Assert.Equal(asm1.
GetSpecialType
(SpecialType.System_Boolean), asm1.
GetSpecialType
(SpecialType.System_Boolean));
320
Assert.Equal(asm1.
GetSpecialType
(SpecialType.System_Boolean), asm2.
GetSpecialType
(SpecialType.System_Boolean));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
MetadataTestHelpers.cs (1)
18
return module.ContainingAssembly.
GetSpecialType
(typeId);