57 references to GetSpecialType
Microsoft.CodeAnalysis.CSharp (57)
Binder\Binder_Patterns.cs (1)
1425
expressionType = conversions.CorLibrary.
GetSpecialType
(SpecialType.System_Object);
Binder\Semantics\Conversions\ConversionsBase.cs (3)
1634
var multicastDelegateType = corLibrary.
GetSpecialType
(SpecialType.System_MulticastDelegate);
1771
TypeSymbol expectedAttributeType = corLibrary.
GetSpecialType
(SpecialType.System_Int32);
1798
TypeSymbol expectedAttributeType = corLibrary.
GetSpecialType
(SpecialType.System_String);
Compilation\CSharpCompilation.cs (1)
1759
result = Assembly.
GetSpecialType
(specialType);
Compilation\CSharpSemanticModel.cs (1)
3889
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)
39
new DeepTranslator(otherAssembly.
GetSpecialType
(SpecialType.System_Object)));
288
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)
297
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)
970
var typeSymbol = SourceModule.ContainingAssembly.
GetSpecialType
(specialType);
Emitter\NoPia\EmbeddedTypesManager.cs (1)
189
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)
640
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 (5)
521
=>
GetSpecialType
(InternalSpecialType.System_Runtime_CompilerServices_AsyncHelpers) is { TypeKind: TypeKind.Class, IsStatic: true };
528
return
GetSpecialType
(SpecialType.System_Runtime_CompilerServices_RuntimeFeature) is { TypeKind: TypeKind.Class, IsStatic: true } &&
551
GetSpecialType
(SpecialType.System_Runtime_CompilerServices_PreserveBaseOverridesAttribute) is { TypeKind: TypeKind.Class };
652
return
GetSpecialType
(SpecialType.System_Object);
663
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)
721
return this.ContainingAssembly.
GetSpecialType
(SpecialType.System_Object);
Symbols\Metadata\PE\SymbolFactory.cs (1)
31
return moduleSymbol.ContainingAssembly.
GetSpecialType
(specialType);
Symbols\Source\ExtensionGroupingInfo.cs (2)
743
protected override ITypeReference? ObjectType => ExtensionMarkerTypes[0].UnderlyingExtensions[0].ContainingAssembly.
GetSpecialType
(SpecialType.System_Object).GetCciAdapter();
893
protected override ITypeReference? ObjectType => UnderlyingExtensions[0].ContainingAssembly.
GetSpecialType
(SpecialType.System_Object).GetCciAdapter();
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)
215
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)
928
internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => ContainingAssembly.
GetSpecialType
(SpecialType.System_Object);
Symbols\Synthesized\SynthesizedContainer.cs (1)
168
internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => ContainingAssembly.
GetSpecialType
(this.TypeKind == TypeKind.Struct ? SpecialType.System_ValueType : SpecialType.System_Object);
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (3)
136
internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => ContainingAssembly.
GetSpecialType
(SpecialType.System_ValueType);
266
internal override TypeSymbol GetDeducedBaseType(ConsList<TypeParameterSymbol> inProgress) => ContainingAssembly.
GetSpecialType
(SpecialType.System_Object);
268
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);