8 interfaces inheriting from ITypeReference
Microsoft.CodeAnalysis (8)
PEWriter\Types.cs (8)
30internal interface IArrayTypeReference : ITypeReference 176internal interface IGenericParameterReference : ITypeReference, INamedEntity, IParameterListEntry 209internal interface IGenericTypeInstanceReference : ITypeReference 250internal interface INamedTypeReference : ITypeReference, INamedEntity 377internal interface IModifiedTypeReference : ITypeReference 393internal interface IPointerTypeReference : ITypeReference 404internal interface IFunctionPointerTypeReference : ITypeReference 449internal interface ITypeDefinition : IDefinition, ITypeReference
369 references to ITypeReference
Microsoft.CodeAnalysis (365)
CodeGen\ArrayMembers.cs (8)
150public override Cci.ITypeReference GetType(EmitContext context) 164public override Cci.ITypeReference GetType(EmitContext context) 178public override Cci.ITypeReference GetType(EmitContext context) 194public override Cci.ITypeReference GetType(EmitContext context) 258public virtual Cci.ITypeReference GetType(EmitContext context) 280public override Cci.ITypeReference GetType(EmitContext context) 299public abstract Cci.ITypeReference GetType(EmitContext context); 344public Cci.ITypeReference GetContainingType(EmitContext context)
CodeGen\ILBuilder.cs (1)
1106internal void OpenLocalScope(ScopeType scopeType = ScopeType.Variable, Cci.ITypeReference exceptionType = null)
CodeGen\LocalConstantDefinition.cs (1)
42public Cci.ITypeReference Type => CompileTimeValue.Type;
CodeGen\LocalDefinition.cs (3)
26private readonly Cci.ITypeReference _type; 64Cci.ITypeReference type, 136public Cci.ITypeReference Type => _type;
CodeGen\LocalScopeManager.cs (7)
37internal ScopeInfo OpenScope(ScopeType scopeType, Cci.ITypeReference exceptionType) 205Microsoft.Cci.ITypeReference exceptionType, 327Cci.ITypeReference exceptionType, 548private readonly Microsoft.Cci.ITypeReference _exceptionType; 559public ExceptionHandlerScope(ExceptionHandlerContainerScope containingScope, ScopeType type, Microsoft.Cci.ITypeReference exceptionType) 573public Microsoft.Cci.ITypeReference ExceptionType => _exceptionType; 696Microsoft.Cci.ITypeReference exceptionType,
CodeGen\LocalSlotManager.cs (5)
39private readonly Cci.ITypeReference _type; 42internal LocalSignature(Cci.ITypeReference valType, LocalSlotConstraints constraints) 121Cci.ITypeReference type, 166Cci.ITypeReference type, 189Cci.ITypeReference type,
CodeGen\MetadataConstant.cs (2)
14public Cci.ITypeReference Type { get; } 17public MetadataConstant(Cci.ITypeReference type, object? value)
CodeGen\MetadataCreateArray.cs (3)
19public Cci.ITypeReference ElementType { get; } 22public MetadataCreateArray(Cci.IArrayTypeReference arrayType, Cci.ITypeReference elementType, ImmutableArray<Cci.IMetadataExpression> initializers) 29Cci.ITypeReference Cci.IMetadataExpression.Type => ArrayType;
CodeGen\MetadataNamedArgument.cs (3)
17private readonly Cci.ITypeReference _type; 20public MetadataNamedArgument(ISymbolInternal entity, Cci.ITypeReference type, Cci.IMetadataExpression value) 48Cci.ITypeReference Cci.IMetadataExpression.Type => _type;
CodeGen\MetadataTypeOf.cs (6)
12private readonly Cci.ITypeReference _typeToGet; 13private readonly Cci.ITypeReference _systemType; 15public MetadataTypeOf(Cci.ITypeReference typeToGet, Cci.ITypeReference systemType) 24public Cci.ITypeReference TypeToGet 37Cci.ITypeReference Cci.IMetadataExpression.Type
CodeGen\MethodBody.cs (3)
44private readonly ImmutableArray<Cci.ITypeReference?> _stateMachineAwaiterSlots; 71ImmutableArray<Cci.ITypeReference?> stateMachineAwaiterSlots, 151ImmutableArray<Cci.ITypeReference?> Cci.IMethodBody.StateMachineAwaiterSlots
CodeGen\PermissionSetAttribute.cs (5)
66Cci.ITypeReference stringType = context.Module.GetPlatformType(Cci.PlatformType.SystemString, context); 159public Cci.ITypeReference GetType(EmitContext context) => _sourceAttribute.GetType(context); 165private readonly Cci.ITypeReference _type; 168public HexPropertyMetadataNamedArgument(Cci.ITypeReference type, Cci.IMetadataExpression value) 178Cci.ITypeReference Cci.IMetadataExpression.Type { get { return _type; } }
CodeGen\PrivateImplementationDetails.cs (31)
49private readonly Cci.ITypeReference _systemObject; //base type 50private readonly Cci.ITypeReference _systemValueType; //base for nested structs 52private readonly Cci.ITypeReference _systemInt8Type; //for metadata init of byte arrays 53private readonly Cci.ITypeReference _systemInt16Type; //for metadata init of short arrays 54private readonly Cci.ITypeReference _systemInt32Type; //for metadata init of int arrays 55private readonly Cci.ITypeReference _systemInt64Type; //for metadata init of long arrays 94private ImmutableArray<Cci.ITypeReference> _orderedProxyTypes; 95private readonly ConcurrentDictionary<(uint Size, ushort Alignment), Cci.ITypeReference> _proxyTypes = new ConcurrentDictionary<(uint Size, ushort Alignment), Cci.ITypeReference>(); 101Cci.ITypeReference systemObject, 102Cci.ITypeReference systemValueType, 103Cci.ITypeReference systemInt8Type, 104Cci.ITypeReference systemInt16Type, 105Cci.ITypeReference systemInt32Type, 106Cci.ITypeReference systemInt64Type, 255Cci.ITypeReference type = _proxyTypes.GetOrAdd( 299internal Cci.IFieldReference GetModuleVersionId(Cci.ITypeReference mvidType) 311internal Cci.IFieldReference GetModuleCancellationToken(Cci.ITypeReference cancellationTokenType) 323internal Cci.IFieldReference GetOrAddInstrumentationPayloadRoot(int analysisKind, Cci.ITypeReference payloadRootType) 419public override Cci.ITypeReference GetBaseClass(EmitContext context) => _systemObject; 570private readonly Cci.ITypeReference _sysValueType; 572internal ExplicitSizeStruct(uint size, ushort alignment, PrivateImplementationDetails containingType, Cci.ITypeReference sysValueType) 587public override Cci.ITypeReference GetBaseClass(EmitContext context) => _sysValueType; 608public Cci.ITypeReference GetContainingType(EmitContext context) => _containingType; 618private readonly Cci.ITypeReference _type; 621internal SynthesizedStaticField(string name, Cci.INamedTypeDefinition containingType, Cci.ITypeReference type) 667public Cci.ITypeReference GetContainingType(EmitContext context) => _containingType; 688public Cci.ITypeReference GetType(EmitContext context) => _type; 694internal Cci.ITypeReference Type => _type; 720internal ModuleVersionIdField(Cci.INamedTypeDefinition containingType, Cci.ITypeReference type) 732internal sealed class ModuleCancellationTokenField(Cci.INamedTypeDefinition containingType, Cci.ITypeReference type)
CodeGen\ReferenceDependencyWalker.cs (5)
23var typeReference = reference as Cci.ITypeReference; 45private static void VisitTypeReference(Cci.ITypeReference typeReference, EmitContext context) 89foreach (var arg in genericInstance.GetGenericArguments(context)) 112foreach (var arg in genericInstance.GetGenericArguments(context))
CodeGen\SignatureOnlyLocalDefinition.cs (1)
76public Cci.ITypeReference Type
CodeGen\VariableSlotAllocator.cs (3)
19Cci.ITypeReference type, 36Cci.ITypeReference currentType, 54public abstract bool TryGetPreviousAwaiterSlotIndex(Cci.ITypeReference currentType, DiagnosticBag diagnostics, out int slotIndex);
Emit\CommonPEModuleBuilder.cs (12)
105internal abstract Cci.ITypeReference Translate(ITypeSymbolInternal symbol, SyntaxNode syntaxOpt, DiagnosticBag diagnostics); 114internal abstract Cci.ITypeReference EncTranslateType(ITypeSymbolInternal type, DiagnosticBag diagnostics); 158public abstract Cci.ITypeReference GetPlatformType(Cci.PlatformType platformType, EmitContext context); 159public abstract bool IsPlatformType(Cci.ITypeReference typeRef, Cci.PlatformType platformType); 616internal sealed override Cci.ITypeReference EncTranslateType(ITypeSymbolInternal type, DiagnosticBag diagnostics) 621internal virtual Cci.ITypeReference EncTranslateLocalVariableType(TTypeSymbol type, DiagnosticBag diagnostics) 705internal abstract Cci.ITypeReference Translate(TTypeSymbol symbol, TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics); 713internal sealed override Cci.ITypeReference Translate(ITypeSymbolInternal symbol, SyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics) 742internal Cci.IFieldReference GetModuleVersionId(Cci.ITypeReference mvidType, TSyntaxNode syntaxOpt, DiagnosticBag diagnostics) 750internal Cci.IFieldReference GetModuleCancellationToken(Cci.ITypeReference cancellationTokenType, TSyntaxNode syntaxOpt, DiagnosticBag diagnostics) 753internal Cci.IFieldReference GetInstrumentationPayloadRoot(int analysisKind, Cci.ITypeReference payloadType, TSyntaxNode syntaxOpt, DiagnosticBag diagnostics) 1089public sealed override Cci.ITypeReference GetPlatformType(Cci.PlatformType platformType, EmitContext context)
Emit\EditAndContinue\AddedOrChangedMethodInfo.cs (4)
26public readonly ImmutableArray<Cci.ITypeReference?> StateMachineAwaiterSlotsOpt; 36ImmutableArray<Cci.ITypeReference?> stateMachineAwaiterSlotsOpt, 81var typeRef = map.MapReference(info.Type); 94var typeRef = map.MapReference(info.Type);
Emit\EditAndContinue\DefinitionMap.cs (6)
203out IReadOnlyDictionary<Cci.ITypeReference, int> awaiterMap, 229IReadOnlyDictionary<Cci.ITypeReference, int>? awaiterMap = null; 493ImmutableArray<Cci.ITypeReference?> hoistedAwaiters, 495out IReadOnlyDictionary<Cci.ITypeReference, int> awaiterMap) 498var awaiters = new Dictionary<Cci.ITypeReference, int>(Cci.SymbolEquivalentEqualityComparer.Instance); 514var slot = hoistedAwaiters[slotIndex];
Emit\EditAndContinue\DeletedMethodBody.cs (1)
51public ImmutableArray<Cci.ITypeReference> StateMachineAwaiterSlots => default;
Emit\EditAndContinue\DeletedPEMethodDefinition.cs (2)
164public Cci.ITypeReference GetContainingType(EmitContext context) 176public Cci.ITypeReference GetType(EmitContext context)
Emit\EditAndContinue\DeletedSourceDefinition.cs (2)
57protected ITypeReference? WrapType(ITypeReference? typeReference)
Emit\EditAndContinue\DeletedSourceMethodDefinition.cs (2)
114public ITypeReference GetContainingType(EmitContext context) 136public ITypeReference GetType(EmitContext context)
Emit\EditAndContinue\DeletedSourceParameterDefinition.cs (1)
50public ITypeReference GetType(EmitContext context)
Emit\EditAndContinue\DeletedSourceTypeDefinition.cs (1)
107public ITypeReference? GetBaseClass(EmitContext context)
Emit\EditAndContinue\DeltaMetadataWriter.cs (9)
72private readonly InstanceAndStructuralReferenceIndex<ITypeReference> _typeSpecIndex; 132_typeSpecIndex = new InstanceAndStructuralReferenceIndex<ITypeReference>(this, new TypeSpecComparer(this), lastRowId: sizes[(int)TableIndex.TypeSpec]); 455protected override bool TryGetTypeReferenceHandle(ITypeReference reference, out TypeReferenceHandle handle) 463protected override TypeReferenceHandle GetOrAddTypeReferenceHandle(ITypeReference reference) 468protected override IReadOnlyList<ITypeReference> GetTypeRefs() 473protected override TypeSpecificationHandle GetOrAddTypeSpecificationHandle(ITypeReference reference) 478protected override IReadOnlyList<ITypeReference> GetTypeSpecs() 800foreach (var typeRef in GetTypeRefs()) 885ITypeReference translatedType = localDef.Type;
Emit\EditAndContinue\EncHoistedLocalInfo.cs (2)
16public readonly Cci.ITypeReference? Type; 24public EncHoistedLocalInfo(LocalSlotDebugInfo slotInfo, Cci.ITypeReference type)
Emit\EditAndContinue\EncHoistedLocalMetadata.cs (2)
12public readonly Cci.ITypeReference Type; 15public EncHoistedLocalMetadata(string name, Cci.ITypeReference type, SynthesizedLocalKind synthesizedKind)
Emit\EditAndContinue\EncLocalInfo.cs (2)
16public readonly Cci.ITypeReference? Type; 32public EncLocalInfo(LocalSlotDebugInfo slotInfo, Cci.ITypeReference type, LocalSlotConstraints constraints, byte[]? signature)
Emit\EditAndContinue\EncVariableSlotAllocator.cs (8)
36private readonly IReadOnlyDictionary<Cci.ITypeReference, int>? _awaiterMap; 58IReadOnlyDictionary<Cci.ITypeReference, int>? awaiterMap, 144Cci.ITypeReference currentType, 164var previousType = _symbolMap.MapReference(currentType); 196Cci.ITypeReference currentType, 215var previousType = _symbolMap.MapReference(currentType); 232public override bool TryGetPreviousAwaiterSlotIndex(Cci.ITypeReference currentType, DiagnosticBag diagnostics, out int slotIndex) 241var typeRef = _symbolMap.MapReference(currentType);
Emit\EditAndContinue\SymbolMatcher.cs (2)
17public abstract Cci.ITypeReference? MapReference(Cci.ITypeReference reference);
Emit\ErrorType.cs (14)
68bool Cci.ITypeReference.IsEnum 76bool Cci.ITypeReference.IsValueType 84Cci.ITypeDefinition Cci.ITypeReference.GetResolvedType(EmitContext context) 89Cci.PrimitiveTypeCode Cci.ITypeReference.TypeCode 97TypeDefinitionHandle Cci.ITypeReference.TypeDef 105Cci.IGenericMethodParameterReference Cci.ITypeReference.AsGenericMethodParameterReference 113Cci.IGenericTypeInstanceReference Cci.ITypeReference.AsGenericTypeInstanceReference 121Cci.IGenericTypeParameterReference Cci.ITypeReference.AsGenericTypeParameterReference 129Cci.INamespaceTypeDefinition Cci.ITypeReference.AsNamespaceTypeDefinition(EmitContext context) 134Cci.INamespaceTypeReference Cci.ITypeReference.AsNamespaceTypeReference 142Cci.INestedTypeDefinition Cci.ITypeReference.AsNestedTypeDefinition(EmitContext context) 147Cci.INestedTypeReference Cci.ITypeReference.AsNestedTypeReference 155Cci.ISpecializedNestedTypeReference Cci.ITypeReference.AsSpecializedNestedTypeReference 163Cci.ITypeDefinition Cci.ITypeReference.AsTypeDefinition(EmitContext context)
Emit\NoPia\CommonEmbeddedEvent.cs (3)
65protected abstract Cci.ITypeReference GetType(TPEModuleBuilder moduleBuilder, TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics); 143Cci.ITypeReference Cci.IEventDefinition.GetType(EmitContext context) 169Cci.ITypeReference Cci.ITypeMemberReference.GetContainingType(EmitContext context)
Emit\NoPia\CommonEmbeddedField.cs (2)
176Cci.ITypeReference Cci.ITypeMemberReference.GetContainingType(EmitContext context) 199Cci.ITypeReference Cci.IFieldReference.GetType(EmitContext context)
Emit\NoPia\CommonEmbeddedMethod.cs (4)
158ImmutableArray<Cci.ITypeReference> Cci.IMethodBody.StateMachineAwaiterSlots => 159default(ImmutableArray<Cci.ITypeReference>); 244Cci.ITypeReference Cci.ITypeMemberReference.GetContainingType(EmitContext context) 300Cci.ITypeReference Cci.ISignature.GetType(EmitContext context)
Emit\NoPia\CommonEmbeddedParameter.cs (1)
253Cci.ITypeReference Cci.IParameterTypeInformation.GetType(EmitContext context)
Emit\NoPia\CommonEmbeddedProperty.cs (2)
171Cci.ITypeReference Cci.ISignature.GetType(EmitContext context) 197Cci.ITypeReference Cci.ITypeMemberReference.GetContainingType(EmitContext context)
Emit\NoPia\CommonEmbeddedType.cs (16)
69protected abstract Cci.ITypeReference GetBaseClass(TPEModuleBuilder moduleBuilder, TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics); 238Cci.ITypeReference Cci.ITypeDefinition.GetBaseClass(EmitContext context) 563bool Cci.ITypeReference.IsEnum 571bool Cci.ITypeReference.IsValueType 579Cci.ITypeDefinition Cci.ITypeReference.GetResolvedType(EmitContext context) 584Cci.PrimitiveTypeCode Cci.ITypeReference.TypeCode 592TypeDefinitionHandle Cci.ITypeReference.TypeDef 600Cci.IGenericMethodParameterReference Cci.ITypeReference.AsGenericMethodParameterReference 608Cci.IGenericTypeInstanceReference Cci.ITypeReference.AsGenericTypeInstanceReference 616Cci.IGenericTypeParameterReference Cci.ITypeReference.AsGenericTypeParameterReference 624Cci.INamespaceTypeDefinition Cci.ITypeReference.AsNamespaceTypeDefinition(EmitContext context) 629Cci.INamespaceTypeReference Cci.ITypeReference.AsNamespaceTypeReference 637Cci.INestedTypeDefinition Cci.ITypeReference.AsNestedTypeDefinition(EmitContext context) 642Cci.INestedTypeReference Cci.ITypeReference.AsNestedTypeReference 650Cci.ISpecializedNestedTypeReference Cci.ITypeReference.AsSpecializedNestedTypeReference 658Cci.ITypeDefinition Cci.ITypeReference.AsTypeDefinition(EmitContext context)
Emit\NoPia\CommonEmbeddedTypeParameter.cs (14)
130bool Cci.ITypeReference.IsEnum 135bool Cci.ITypeReference.IsValueType 140Cci.ITypeDefinition Cci.ITypeReference.GetResolvedType(EmitContext context) 145Cci.PrimitiveTypeCode Cci.ITypeReference.TypeCode 153TypeDefinitionHandle Cci.ITypeReference.TypeDef 158Cci.IGenericMethodParameterReference Cci.ITypeReference.AsGenericMethodParameterReference 163Cci.IGenericTypeInstanceReference Cci.ITypeReference.AsGenericTypeInstanceReference 168Cci.IGenericTypeParameterReference Cci.ITypeReference.AsGenericTypeParameterReference 173Cci.INamespaceTypeDefinition Cci.ITypeReference.AsNamespaceTypeDefinition(EmitContext context) 178Cci.INamespaceTypeReference Cci.ITypeReference.AsNamespaceTypeReference 183Cci.INestedTypeDefinition Cci.ITypeReference.AsNestedTypeDefinition(EmitContext context) 188Cci.INestedTypeReference Cci.ITypeReference.AsNestedTypeReference 193Cci.ISpecializedNestedTypeReference Cci.ITypeReference.AsSpecializedNestedTypeReference 198Cci.ITypeDefinition Cci.ITypeReference.AsTypeDefinition(EmitContext context)
Emit\NoPia\VtblGap.cs (2)
167Cci.ITypeReference Cci.ITypeMemberReference.GetContainingType(EmitContext context) 254Cci.ITypeReference Cci.ISignature.GetType(EmitContext context)
NativePdbWriter\PdbWriter.cs (2)
345internal string GetOrCreateSerializedTypeName(ITypeReference typeReference) 365private string SerializeVisualBasicImportTypeReference(ITypeReference typeReference)
PEWriter\ExceptionHandlerRegion.cs (4)
68public virtual ITypeReference? ExceptionType 121private readonly ITypeReference _exceptionType; 128ITypeReference exceptionType) 139public override ITypeReference ExceptionType
PEWriter\ExportedType.cs (2)
15public readonly ITypeReference Type; 29public ExportedType(ITypeReference type, int parentIndex, bool isForwarder)
PEWriter\Expressions.cs (1)
22ITypeReference Type { get; }
PEWriter\FullMetadataWriter.cs (7)
39private readonly InstanceAndStructuralReferenceIndex<ITypeReference> _typeSpecIndex; 112_typeSpecIndex = new InstanceAndStructuralReferenceIndex<ITypeReference>(this, new TypeSpecComparer(this)); 279protected override bool TryGetTypeReferenceHandle(ITypeReference reference, out TypeReferenceHandle handle) 287protected override TypeReferenceHandle GetOrAddTypeReferenceHandle(ITypeReference reference) 292protected override IReadOnlyList<ITypeReference> GetTypeRefs() 297protected override TypeSpecificationHandle GetOrAddTypeSpecificationHandle(ITypeReference reference) 302protected override IReadOnlyList<ITypeReference> GetTypeSpecs()
PEWriter\ICustomAttribute.cs (1)
50ITypeReference GetType(EmitContext context);
PEWriter\InheritedTypeParameter.cs (2)
266ITypeReference IGenericTypeParameterReference.DefiningType 292public ITypeReference UnspecializedVersion
PEWriter\ITypeReferenceExtensions.cs (5)
15internal static void GetConsolidatedTypeArguments(this ITypeReference typeReference, ArrayBuilder<ITypeReference> consolidatedTypeArguments, EmitContext context) 27internal static ITypeReference GetUninstantiatedGenericType(this ITypeReference typeReference, EmitContext context) 44internal static bool IsTypeSpecification(this ITypeReference typeReference)
PEWriter\Members.cs (7)
165ITypeReference GetType(EmitContext context); 259ITypeReference GetType(EmitContext context); 353ITypeReference Type { get; } 485ImmutableArray<ITypeReference?> StateMachineAwaiterSlots { get; } 829ITypeReference GetType(EmitContext context); 858ITypeReference GetContainingType(EmitContext context); 961IEnumerable<ITypeReference> GetGenericArguments(EmitContext context);
PEWriter\MetadataVisitor.cs (5)
418var exceptionType = exceptionRegion.ExceptionType; 583public void Visit(IEnumerable<ITypeReference> typeReferences) 585foreach (ITypeReference typeReference in typeReferences) 600public virtual void Visit(ITypeReference typeReference) 611protected void DispatchAsReference(ITypeReference typeReference)
PEWriter\MetadataWriter.cs (44)
351protected abstract bool TryGetTypeReferenceHandle(ITypeReference reference, out TypeReferenceHandle handle); 358protected abstract TypeReferenceHandle GetOrAddTypeReferenceHandle(ITypeReference reference); 364protected abstract IReadOnlyList<ITypeReference> GetTypeRefs(); 371protected abstract TypeSpecificationHandle GetOrAddTypeSpecificationHandle(ITypeReference reference); 377protected abstract IReadOnlyList<ITypeReference> GetTypeSpecs(); 440private readonly Dictionary<ITypeReference, BlobHandle> _typeSpecSignatureIndex = new Dictionary<ITypeReference, BlobHandle>(ReferenceEqualityComparer.Instance); 638public static IUnitReference GetDefiningUnitReference(ITypeReference typeReference, EmitContext context) 954var containingType = memberRef.GetContainingType(Context); 1051foreach (ITypeReference typeReference in methodInstanceReference.GetGenericArguments(Context)) 1053var typeRef = typeReference; 1591private TypeReferenceHandle GetTypeReferenceHandle(ITypeReference typeReference) 1614private TypeSpecificationHandle GetTypeSpecificationHandle(ITypeReference typeReference) 1639internal BlobHandle GetTypeSpecSignatureIndex(ITypeReference typeReference) 1656internal EntityHandle GetTypeHandle(ITypeReference typeReference, bool treatRefAsPotentialTypeSpec = true) 2775ITypeReference baseType = typeDef.GetBaseClass(Context); 2824foreach (ITypeReference typeRef in typeRefs) 2833ITypeReference scopeTypeRef; 2884foreach (ITypeReference typeSpec in typeSpecs) 3106ITypeReference typeReference => GetTypeHandle(typeReference), 3374var exceptionType = region.ExceptionType; 3408var type = parameterTypeInformation.GetType(Context); 3437foreach (ITypeReference genericArgument in genericMethodInstanceReference.GetGenericArguments(Context)) 3439ITypeReference typeRef = genericArgument; 3494private void SerializeNamedArgumentType(in EmitContext context, NamedArgumentTypeEncoder encoder, ITypeReference type) 3510private void SerializeMetadataExpression(in EmitContext context, LiteralEncoder encoder, IMetadataExpression expression, ITypeReference targetType) 3514ITypeReference targetElementType; 3610case ITypeReference marshallerTypeRef: 3658var elementType = marshallingInformation.GetSafeArrayElementUserDefinedSubtype(Context); 3683private void SerializeTypeName(ITypeReference typeReference, BlobBuilder writer) 3770var returnType = signature.GetType(Context); 3811private void SerializeTypeReference(SignatureTypeEncoder encoder, ITypeReference typeReference) 3902ITypeReference uninstantiatedTypeReference = typeReference.GetUninstantiatedGenericType(Context); 3907var consolidatedTypeArguments = ArrayBuilder<ITypeReference>.GetInstance(); 3915foreach (ITypeReference typeArgument in consolidatedTypeArguments) 4013var elementType = arrayTypeReference.GetElementType(Context); 4026private void SerializeCustomAttributeElementType(in EmitContext context, CustomAttributeElementTypeEncoder encoder, ITypeReference typeReference) 4119private int GetNumberOfInheritedTypeParameters(ITypeReference type) 4265protected sealed class TypeReferenceIndex : HeapOrReferenceIndexBase<ITypeReference> 4267private readonly Dictionary<ITypeReference, int> _index; 4270: this(writer, new Dictionary<ITypeReference, int>(ReferenceEqualityComparer.Instance), lastRowId) 4274private TypeReferenceIndex(MetadataWriter writer, Dictionary<ITypeReference, int> index, int lastRowId) 4281public override bool TryGetValue(ITypeReference item, out int index) 4286protected override void AddItem(ITypeReference item, int index)
PEWriter\MetadataWriter.PortablePdb.cs (1)
180var type = localConstant.Type;
PEWriter\Miscellaneous.cs (2)
111/// <see cref="ITypeReference"/> or a string (usually a fully-qualified type name of a type implementing the custom marshaller, but Dev11 allows any string). 180ITypeReference GetSafeArrayElementUserDefinedSubtype(EmitContext context);
PEWriter\ModifiedTypeReference.cs (17)
16private readonly ITypeReference _modifiedType; 19public ModifiedTypeReference(ITypeReference modifiedType, ImmutableArray<ICustomModifier> customModifiers) 37ITypeReference IModifiedTypeReference.UnmodifiedType 45bool ITypeReference.IsEnum 50bool ITypeReference.IsValueType 55ITypeDefinition ITypeReference.GetResolvedType(EmitContext context) 60PrimitiveTypeCode ITypeReference.TypeCode 65TypeDefinitionHandle ITypeReference.TypeDef 80IGenericMethodParameterReference? ITypeReference.AsGenericMethodParameterReference 88IGenericTypeInstanceReference? ITypeReference.AsGenericTypeInstanceReference 96IGenericTypeParameterReference? ITypeReference.AsGenericTypeParameterReference 104INamespaceTypeDefinition? ITypeReference.AsNamespaceTypeDefinition(EmitContext context) 109INamespaceTypeReference? ITypeReference.AsNamespaceTypeReference 117INestedTypeDefinition? ITypeReference.AsNestedTypeDefinition(EmitContext context) 122INestedTypeReference? ITypeReference.AsNestedTypeReference 130ISpecializedNestedTypeReference? ITypeReference.AsSpecializedNestedTypeReference 138ITypeDefinition? ITypeReference.AsTypeDefinition(EmitContext context)
PEWriter\ReferenceIndexer.cs (4)
47private void VisitExportedType(ITypeReference exportedType) 69var typeReference = reference as ITypeReference; 153protected override void RecordTypeReference(ITypeReference typeReference)
PEWriter\ReferenceIndexerBase.cs (8)
111ITypeReference containingType = nestedType.GetContainingType(Context); 234protected abstract void RecordTypeReference(ITypeReference typeReference); 275var baseType = typeDefinition.GetBaseClass(Context); 317private void VisitTypeReferencesThatNeedTokens(ITypeReference typeReference) 350ITypeReference current = arrayTypeReference.GetElementType(Context); 381ITypeReference current = pointerTypeReference.GetTargetType(Context); 406public override void Visit(ITypeReference typeReference) 415private bool VisitTypeReference(ITypeReference typeReference)
PEWriter\ReturnValueParameter.cs (1)
107public ITypeReference GetType(EmitContext context)
PEWriter\RootModuleStaticConstructor.cs (4)
114public ITypeReference GetContainingType(EmitContext context) => ContainingTypeDefinition; 124public ITypeReference GetType(EmitContext context) => context.Module.GetPlatformType(PlatformType.SystemVoid, context); 160public ImmutableArray<ITypeReference> StateMachineAwaiterSlots => ImmutableArray<ITypeReference>.Empty;
PEWriter\RootModuleType.cs (14)
76public ITypeReference? GetBaseClass(EmitContext context) 221bool ITypeReference.IsEnum 226bool ITypeReference.IsValueType 231ITypeDefinition ITypeReference.GetResolvedType(EmitContext context) 236PrimitiveTypeCode ITypeReference.TypeCode 259IGenericMethodParameterReference? ITypeReference.AsGenericMethodParameterReference 267IGenericTypeInstanceReference? ITypeReference.AsGenericTypeInstanceReference 275IGenericTypeParameterReference? ITypeReference.AsGenericTypeParameterReference 283INamespaceTypeDefinition ITypeReference.AsNamespaceTypeDefinition(EmitContext context) 288INamespaceTypeReference ITypeReference.AsNamespaceTypeReference 296INestedTypeDefinition? ITypeReference.AsNestedTypeDefinition(EmitContext context) 301INestedTypeReference? ITypeReference.AsNestedTypeReference 309ISpecializedNestedTypeReference? ITypeReference.AsSpecializedNestedTypeReference 317ITypeDefinition ITypeReference.AsTypeDefinition(EmitContext context)
PEWriter\TypeNameSerializer.cs (10)
19internal static string GetSerializedTypeName(this ITypeReference typeReference, EmitContext context) 25internal static string GetSerializedTypeName(this ITypeReference typeReference, EmitContext context, ref bool isAssemblyQualified) 91ITypeReference uninstantiatedTypeReference = typeReference.GetUninstantiatedGenericType(context); 94ArrayBuilder<ITypeReference> consolidatedTypeArguments = ArrayBuilder<ITypeReference>.GetInstance(); 101foreach (ITypeReference argument in consolidatedTypeArguments) 141private static void AppendSerializedTypeName(StringBuilder sb, ITypeReference type, ref bool isAssemQualified, EmitContext context) 156private static void AppendAssemblyQualifierIfNecessary(StringBuilder sb, ITypeReference typeReference, out bool isAssemQualified, EmitContext context) 240private static ITypeReference UnwrapTypeReference(ITypeReference typeReference, EmitContext context)
PEWriter\TypeReferenceIndexer.cs (1)
54protected override void RecordTypeReference(ITypeReference typeReference)
PEWriter\Types.cs (10)
35ITypeReference GetElementType(EmitContext context); 91ITypeReference GetModifier(EmitContext context); 123ITypeReference GetType(EmitContext context); 214ImmutableArray<ITypeReference> GetGenericArguments(EmitContext context); 244ITypeReference DefiningType { get; } 387ITypeReference UnmodifiedType { get; } 398ITypeReference GetTargetType(EmitContext context); 430public ITypeReference TypeRef { get; } 438ITypeReference typeRef, 459ITypeReference? GetBaseClass(EmitContext context);
PEWriter\TypeSpecComparer.cs (4)
10internal sealed class TypeSpecComparer : IEqualityComparer<ITypeReference> 19public bool Equals(ITypeReference? x, ITypeReference? y) 24public int GetHashCode(ITypeReference typeReference)
PEWriter\UsedNamespaceOrType.cs (6)
19public readonly ITypeReference? TargetTypeOpt; 26ITypeReference? targetType = null, 36internal static UsedNamespaceOrType CreateType(ITypeReference type, string? aliasOpt = null) 84private static bool Equals(ITypeReference? x, ITypeReference? y) 111private static int GetHashCode(ITypeReference? obj)
Symbols\Attributes\MarshalPseudoCustomAttributeData.cs (1)
177Cci.ITypeReference Cci.IMarshallingInformation.GetSafeArrayElementUserDefinedSubtype(EmitContext context)
Symbols\CustomModifier.cs (1)
33Cci.ITypeReference Cci.ICustomModifier.GetModifier(EmitContext context)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Emit\EditAndContinue\SymbolMatcherTests.cs (4)
347var other = matcher.MapReference(member.GetCciAdapter()); 378var other = matcher.MapReference(member.GetCciAdapter()); 410var other = matcher.MapReference(member.GetCciAdapter()); 444var other = matcher.MapReference((Cci.ITypeReference)member.Type.GetCciAdapter());