82 references to GetSpecialType
Microsoft.CodeAnalysis.CSharp (47)
Binder\Binder_Patterns.cs (1)
815
expressionType = conversions.CorLibrary.
GetSpecialType
(SpecialType.System_Object);
Binder\Semantics\Conversions\ConversionsBase.cs (3)
1543
var multicastDelegateType = corLibrary.
GetSpecialType
(SpecialType.System_MulticastDelegate);
1616
TypeSymbol expectedAttributeType = corLibrary.
GetSpecialType
(SpecialType.System_Int32);
1643
TypeSymbol expectedAttributeType = corLibrary.
GetSpecialType
(SpecialType.System_String);
Compilation\CSharpCompilation.cs (1)
1561
result = Assembly.
GetSpecialType
(specialType);
Compilation\CSharpSemanticModel.cs (1)
3852
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)
40
_symbols = new MatchSymbols(anonymousTypeMap, anonymousDelegates, anonymousDelegatesWithIndexedNames, sourceAssembly, otherAssembly, otherSynthesizedMembers, otherDeletedMembers, new DeepTranslator(otherAssembly.
GetSpecialType
(SpecialType.System_Object)));
486
return _otherAssembly.
GetSpecialType
(SpecialType.System_Object);
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
95
_deepTranslator = new CSharpSymbolMatcher.DeepTranslator(sourceAssembly.
GetSpecialType
(SpecialType.System_Object));
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
291
baseType = AdaptedNamedTypeSymbol.ContainingAssembly.
GetSpecialType
(Microsoft.CodeAnalysis.SpecialType.System_Object);
Emitter\Model\ParameterSymbolAdapter.cs (1)
87
type = AdaptedParameterSymbol.ContainingAssembly.
GetSpecialType
(constant.SpecialType);
Emitter\Model\PEModuleBuilder.cs (1)
799
var typeSymbol = SourceModule.ContainingAssembly.
GetSpecialType
(specialType);
Emitter\NoPia\EmbeddedTypesManager.cs (1)
148
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)
560
TypeSymbol container = compilation.Assembly.
GetSpecialType
(type);
Symbols\AbstractTypeMap.cs (1)
390
dynamicEraser = new DynamicTypeEraser(owner.ContainingAssembly.CorLibrary.
GetSpecialType
(SpecialType.System_Object));
Symbols\ArrayTypeSymbol.cs (4)
71
return CreateMDArray(elementType, rank, sizes, lowerBounds, declaringAssembly.
GetSpecialType
(SpecialType.System_Array));
93
return CreateSZArray(elementType, declaringAssembly.
GetSpecialType
(SpecialType.System_Array), GetSZArrayInterfaces(elementType, declaringAssembly));
111
var iListOfT = declaringAssembly.
GetSpecialType
(SpecialType.System_Collections_Generic_IList_T);
117
var iReadOnlyListOfT = declaringAssembly.
GetSpecialType
(SpecialType.System_Collections_Generic_IReadOnlyList_T);
Symbols\AssemblySymbol.cs (4)
473
return
GetSpecialType
(SpecialType.System_Runtime_CompilerServices_RuntimeFeature) is { TypeKind: TypeKind.Class, IsStatic: true } &&
496
GetSpecialType
(SpecialType.System_Runtime_CompilerServices_PreserveBaseOverridesAttribute) is { TypeKind: TypeKind.Class };
588
return
GetSpecialType
(SpecialType.System_Object);
599
return
GetSpecialType
(SpecialTypes.GetTypeFromMetadataName(type));
Symbols\ConstraintsHelper.cs (4)
114
NamedTypeSymbol effectiveBaseClass = corLibrary.
GetSpecialType
(typeParameter.HasValueTypeConstraint ? SpecialType.System_ValueType : SpecialType.System_Object);
229
constraintEffectiveBase = corLibrary.
GetSpecialType
(SpecialType.System_ValueType);
235
constraintEffectiveBase = corLibrary.
GetSpecialType
(SpecialType.System_Enum);
241
constraintEffectiveBase = corLibrary.
GetSpecialType
(SpecialType.System_Array);
Symbols\Metadata\PE\DynamicTypeDecoder.cs (1)
176
: _containingAssembly.
GetSpecialType
(SpecialType.System_Object);
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
701
return this.ContainingAssembly.
GetSpecialType
(SpecialType.System_Object);
Symbols\Metadata\PE\SymbolFactory.cs (1)
31
return moduleSymbol.ContainingAssembly.
GetSpecialType
(specialType);
Symbols\Source\SourceAssemblySymbol.cs (1)
1884
var obj =
GetSpecialType
(SpecialType.System_Object);
Symbols\Source\SourceFieldSymbol.cs (1)
88
CSharpCustomModifier.CreateRequired(this.ContainingAssembly.
GetSpecialType
(SpecialType.System_Runtime_CompilerServices_IsVolatile)));
Symbols\Source\SourceFixedFieldSymbol.cs (1)
237
=> ContainingAssembly.
GetSpecialType
(SpecialType.System_ValueType);
Symbols\Source\SourceTypeParameterSymbol.cs (1)
342
return this.ContainingAssembly.
GetSpecialType
(SpecialType.System_Object);
Symbols\Synthesized\SynthesizedContainer.cs (1)
156
internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => ContainingAssembly.
GetSpecialType
(this.TypeKind == TypeKind.Struct ? SpecialType.System_ValueType : 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)
270
return compilation.Assembly.
GetSpecialType
(SpecialType.System_Object);
274
return compilation.Assembly.
GetSpecialType
(SpecialType.System_ValueType);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Attributes\AttributeTests.cs (1)
5219
NamedTypeSymbol classYOfInt = classY.ConstructIfGeneric(ImmutableArray.Create(TypeWithAnnotations.Create(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int32))));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (33)
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 (3)
35
var t = noMsCorLibRef.
GetSpecialType
((SpecialType)i);
63
var t = msCorLibRef.
GetSpecialType
((SpecialType)i);
125
var t = msCorLibRef.
GetSpecialType
((SpecialType)i);
Symbols\DefaultInterfaceImplementationTests.cs (21)
34657
var test1i1 = i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int32));
34658
var test1i1m1 = i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int32)).GetMember<MethodSymbol>("M1");
34659
var test1i1m2 = i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int32)).GetMember<MethodSymbol>("M2");
34661
var test2i1 = i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64));
34662
var test2i1m1 = i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64)).GetMember<MethodSymbol>("M1");
34663
var test2i1m2 = i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64)).GetMember<MethodSymbol>("M2");
34664
var test2i2 = i2.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64));
34665
var test2i2m1 = i2.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64)).GetMember<MethodSymbol>("I1<T>.M1");
34666
var test2i2m2 = i2.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64)).GetMember<MethodSymbol>("I1<T>.M2");
38954
var test1i1 = i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int32));
38955
var test1i1m1 = GetSingleProperty(i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int32)));
38957
var test2i1 = i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64));
38958
var test2i1m1 = GetSingleProperty(i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64)));
38959
var test2i2 = i2.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64));
38960
var test2i2m1 = GetSingleProperty(i2.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64)));
41630
var test1i1 = i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int32));
41631
var test1i1m1 = GetSingleEvent(i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int32)));
41633
var test2i1 = i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64));
41634
var test2i1m1 = GetSingleEvent(i1.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64)));
41635
var test2i2 = i2.Construct(m.ContainingAssembly.
GetSpecialType
(SpecialType.System_Int64));
41636
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)
318
Assert.Equal(asm1.
GetSpecialType
(SpecialType.System_Boolean), asm1.
GetSpecialType
(SpecialType.System_Boolean));
319
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);