9 instantiations of EmitContext
Microsoft.CodeAnalysis (9)
Compilation\Compilation.cs (3)
3377new EmitContext(moduleBeingBuilt, metadataDiagnostics, metadataOnly, includePrivateMembersOnPrimaryOutput, rebuildData: rebuildData), 3399new EmitContext(moduleBeingBuilt, syntaxNode: null, metadataDiagnostics, metadataOnly: true, includePrivateMembers: false), 3442var context = new EmitContext(moduleBeingBuilt, diagnostics, metadataOnly: false, includePrivateMembers: true);
Emit\CommonPEModuleBuilder.cs (4)
400ReferenceDependencyWalker.VisitReference(symbol, new EmitContext(this, syntaxNode, diagnostics, metadataOnly: false, includePrivateMembers: true)); 410ReferenceDependencyWalker.VisitSignature(symbol, new EmitContext(this, syntaxNode, diagnostics, metadataOnly: false, includePrivateMembers: true)); 1034var emitContext = new EmitContext(this, syntaxNode, diagnostics, metadataOnly: false, includePrivateMembers: true); 1043var emitContext = new EmitContext(this, syntaxNode, diagnostics, metadataOnly: false, includePrivateMembers: true);
Emit\NoPia\EmbeddedTypesManager.cs (1)
200var noPiaIndexer = new Cci.TypeReferenceIndexer(new EmitContext(ModuleBeingBuilt, syntaxNodeOpt, diagnostics, metadataOnly: false, includePrivateMembers: true));
PEWriter\MetadataWriter.cs (1)
3452return new EmitContext(
335 references to EmitContext
Microsoft.CodeAnalysis (335)
CodeGen\ArrayMembers.cs (13)
11using EmitContext = Microsoft.CodeAnalysis.Emit.EmitContext; 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); 318public ImmutableArray<Cci.IParameterTypeInformation> GetParameters(EmitContext context) 325public Cci.IMethodDefinition? GetResolvedMethod(EmitContext context) => null; 344public Cci.ITypeReference GetContainingType(EmitContext context) 351public IEnumerable<Cci.ICustomAttribute> GetAttributes(EmitContext context) 357public Cci.IDefinition? AsDefinition(EmitContext context)
CodeGen\PermissionSetAttribute.cs (4)
49public ImmutableArray<Cci.IMetadataExpression> GetArguments(EmitContext context) 57public Cci.IMethodReference Constructor(EmitContext context, bool reportDiagnostics) 63public ImmutableArray<Cci.IMetadataNamedArgument> GetNamedArguments(EmitContext context) 159public Cci.ITypeReference GetType(EmitContext context) => _sourceAttribute.GetType(context);
CodeGen\PrivateImplementationDetails.cs (33)
191internal Cci.IFieldReference CreateArrayCachingField(ImmutableArray<byte> data, Cci.IArrayTypeReference arrayType, EmitContext emitContext) 215internal Cci.IFieldReference CreateArrayCachingField(ImmutableArray<ConstantValue> constants, Cci.IArrayTypeReference arrayType, EmitContext emitContext) 352public override IEnumerable<Cci.IFieldDefinition> GetFields(EmitContext context) 358public override IEnumerable<Cci.IMethodDefinition> GetMethods(EmitContext context) 364public IEnumerable<Cci.IMethodDefinition> GetTopLevelAndNestedTypeMethods(EmitContext context) 411public override IEnumerable<Cci.INestedTypeDefinition> GetNestedTypes(EmitContext context) 419public override Cci.ITypeReference GetBaseClass(EmitContext context) => _systemObject; 421public override IEnumerable<Cci.ICustomAttribute> GetAttributes(EmitContext context) 436public override Cci.INamespaceTypeDefinition AsNamespaceTypeDefinition(EmitContext context) => this; 444public Cci.IUnitReference GetUnit(EmitContext context) 587public override Cci.ITypeReference GetBaseClass(EmitContext context) => _sysValueType; 608public Cci.ITypeReference GetContainingType(EmitContext context) => _containingType; 610public override Cci.INestedTypeDefinition AsNestedTypeDefinition(EmitContext context) => this; 634public MetadataConstant? GetCompileTimeValue(EmitContext context) => null; 667public Cci.ITypeReference GetContainingType(EmitContext context) => _containingType; 669public IEnumerable<Cci.ICustomAttribute> GetAttributes(EmitContext context) 677public Cci.IDefinition AsDefinition(EmitContext context) 688public Cci.ITypeReference GetType(EmitContext context) => _type; 696public Cci.IFieldDefinition GetResolvedField(EmitContext context) => this; 787public IEnumerable<Cci.IEventDefinition> GetEvents(EmitContext context) 790public IEnumerable<Cci.MethodImplementation> GetExplicitImplementationOverrides(EmitContext context) 793public virtual IEnumerable<Cci.IFieldDefinition> GetFields(EmitContext context) 803public IEnumerable<Cci.TypeReferenceWithAttributes> Interfaces(EmitContext context) 830public virtual IEnumerable<Cci.IMethodDefinition> GetMethods(EmitContext context) 833public virtual IEnumerable<Cci.INestedTypeDefinition> GetNestedTypes(EmitContext context) 836public IEnumerable<Cci.IPropertyDefinition> GetProperties(EmitContext context) 844public virtual IEnumerable<Cci.ICustomAttribute> GetAttributes(EmitContext context) 847public Cci.IDefinition AsDefinition(EmitContext context) => this; 853public Cci.ITypeDefinition GetResolvedType(EmitContext context) => this; 868public virtual Cci.INamespaceTypeDefinition? AsNamespaceTypeDefinition(EmitContext context) => null; 874public virtual Cci.INestedTypeDefinition? AsNestedTypeDefinition(EmitContext context) => null; 878public Cci.ITypeDefinition AsTypeDefinition(EmitContext context) => this; 886public virtual Cci.ITypeReference GetBaseClass(EmitContext context)
CodeGen\ReferenceDependencyWalker.cs (7)
21public static void VisitReference(Cci.IReference reference, EmitContext context) 45private static void VisitTypeReference(Cci.ITypeReference typeReference, EmitContext context) 101private static void VisitMethodReference(Cci.IMethodReference methodReference, EmitContext context) 134internal static void VisitSignature(Cci.ISignature signature, EmitContext context) 150private static void VisitParameters(ImmutableArray<Cci.IParameterTypeInformation> parameters, EmitContext context) 162private static void VisitFieldReference(Cci.IFieldReference fieldReference, EmitContext context) 182private static void VisitCustomModifiers(ImmutableArray<Cci.ICustomModifier> customModifiers, in EmitContext context)
Compilation\Compilation.cs (1)
3442var context = new EmitContext(moduleBeingBuilt, diagnostics, metadataOnly: false, includePrivateMembers: true);
Emit\CommonPEModuleBuilder.cs (22)
172protected abstract Cci.IAssemblyReference GetCorLibraryReferenceToEmit(EmitContext context); 175public abstract Cci.ITypeReference GetPlatformType(Cci.PlatformType platformType, EmitContext context); 179public abstract IEnumerable<Cci.INamespaceTypeDefinition> GetTopLevelTypeDefinitions(EmitContext context); 181public IEnumerable<Cci.INamespaceTypeDefinition> GetTopLevelTypeDefinitionsCore(EmitContext context) 220public abstract IEnumerable<Cci.INamespaceTypeDefinition> GetAdditionalTopLevelTypeDefinitions(EmitContext context); 225public abstract IEnumerable<Cci.INamespaceTypeDefinition> GetAnonymousTypeDefinitions(EmitContext context); 230public abstract IEnumerable<Cci.INamespaceTypeDefinition> GetEmbeddedTypeDefinitions(EmitContext context); 235public abstract IEnumerable<Cci.INamespaceTypeDefinition> GetTopLevelSourceTypeDefinitions(EmitContext context); 242public abstract IEnumerable<Cci.IFileReference> GetFiles(EmitContext context); 289public abstract IEnumerable<(Cci.ITypeDefinition, ImmutableArray<Cci.DebugSourceDocument>)> GetTypeToDebugDocumentMap(EmitContext context); 303IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) => SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>(); 305Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context) 377public Cci.IAssemblyReference GetCorLibrary(EmitContext context) 382public Cci.IAssemblyReference GetContainingAssembly(EmitContext context) 448public ImmutableArray<Cci.AssemblyReferenceAlias> GetAssemblyReferenceAliases(EmitContext context) 458private ImmutableArray<Cci.AssemblyReferenceAlias> CalculateAssemblyReferenceAliases(EmitContext context) 482public IEnumerable<Cci.IAssemblyReference> GetAssemblyReferences(EmitContext context) 503public ImmutableArray<Cci.ManagedResource> GetResources(EmitContext context) 656public override IEnumerable<Cci.INamespaceTypeDefinition> GetTopLevelTypeDefinitions(EmitContext context) 1034var emitContext = new EmitContext(this, syntaxNode, diagnostics, metadataOnly: false, includePrivateMembers: true); 1043var emitContext = new EmitContext(this, syntaxNode, diagnostics, metadataOnly: false, includePrivateMembers: true); 1118public sealed override Cci.ITypeReference GetPlatformType(Cci.PlatformType platformType, EmitContext context)
Emit\EditAndContinue\DeletedMethodBody.cs (1)
67public static ImmutableArray<byte> GetIL(EmitContext context, RuntimeRudeEdit? rudeEdit, bool isLambdaOrLocalFunction)
Emit\EditAndContinue\DeletedPEMethodDefinition.cs (9)
83public MethodImplAttributes GetImplementationAttributes(EmitContext context) 89public Cci.IMethodBody GetBody(EmitContext context) 98public IEnumerable<Cci.ICustomAttribute> GetAttributes(EmitContext context) 161public Cci.IDefinition? AsDefinition(EmitContext context) 164public Cci.ITypeReference GetContainingType(EmitContext context) 167public ImmutableArray<Cci.IParameterTypeInformation> GetParameters(EmitContext context) 170public Cci.IMethodDefinition GetResolvedMethod(EmitContext context) 173public IEnumerable<Cci.ICustomAttribute> GetReturnValueAttributes(EmitContext context) 176public Cci.ITypeReference GetType(EmitContext context)
Emit\EditAndContinue\DeletedSourceDefinition.cs (2)
39public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context) 48public IDefinition? AsDefinition(EmitContext context)
Emit\EditAndContinue\DeletedSourceGenericParameter.cs (5)
65public INamespaceTypeDefinition? AsNamespaceTypeDefinition(EmitContext context) 70public INestedTypeDefinition? AsNestedTypeDefinition(EmitContext context) 75public ITypeDefinition? AsTypeDefinition(EmitContext context) 85public IEnumerable<TypeReferenceWithAttributes> GetConstraints(EmitContext context) 88public ITypeDefinition? GetResolvedType(EmitContext context)
Emit\EditAndContinue\DeletedSourceMethodDefinition.cs (7)
111public IMethodBody GetBody(EmitContext context) 114public ITypeReference GetContainingType(EmitContext context) 117public MethodImplAttributes GetImplementationAttributes(EmitContext context) 122public ImmutableArray<IParameterTypeInformation> GetParameters(EmitContext context) 127public IMethodDefinition GetResolvedMethod(EmitContext context) 132public IEnumerable<ICustomAttribute> GetReturnValueAttributes(EmitContext context) 136public ITypeReference GetType(EmitContext context)
Emit\EditAndContinue\DeletedSourceParameterDefinition.cs (2)
45public MetadataConstant? GetDefaultValue(EmitContext context) 50public ITypeReference GetType(EmitContext context)
Emit\EditAndContinue\DeletedSourceTypeDefinition.cs (12)
87public INamespaceTypeDefinition? AsNamespaceTypeDefinition(EmitContext context) 92public INestedTypeDefinition? AsNestedTypeDefinition(EmitContext context) 97public ITypeDefinition? AsTypeDefinition(EmitContext context) 102public ITypeDefinition? GetResolvedType(EmitContext context) 107public ITypeReference? GetBaseClass(EmitContext context) 110public IEnumerable<IEventDefinition> GetEvents(EmitContext context) 113public IEnumerable<Cci.MethodImplementation> GetExplicitImplementationOverrides(EmitContext context) 116public IEnumerable<IFieldDefinition> GetFields(EmitContext context) 119public IEnumerable<IMethodDefinition> GetMethods(EmitContext context) 122public IEnumerable<INestedTypeDefinition> GetNestedTypes(EmitContext context) 125public IEnumerable<IPropertyDefinition> GetProperties(EmitContext context) 128public IEnumerable<TypeReferenceWithAttributes> Interfaces(EmitContext context)
Emit\EditAndContinue\DeltaMetadataWriter.cs (2)
72EmitContext context, 495internal static IReadOnlyDictionary<ITypeDefinition, ArrayBuilder<IMethodDefinition>> CreateDeletedMethodsDefs(EmitContext context, SymbolChanges changes)
Emit\EditAndContinue\SymbolChanges.cs (1)
330public IEnumerable<INamespaceTypeDefinition> GetTopLevelSourceTypeDefinitions(EmitContext context)
Emit\ErrorType.cs (10)
29Cci.IUnitReference Cci.INamespaceTypeReference.GetUnit(EmitContext context) 84Cci.ITypeDefinition Cci.ITypeReference.GetResolvedType(EmitContext context) 129Cci.INamespaceTypeDefinition Cci.ITypeReference.AsNamespaceTypeDefinition(EmitContext context) 142Cci.INestedTypeDefinition Cci.ITypeReference.AsNestedTypeDefinition(EmitContext context) 163Cci.ITypeDefinition Cci.ITypeReference.AsTypeDefinition(EmitContext context) 168IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) 178Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context) 227Cci.IAssemblyReference Cci.IModuleReference.GetContainingAssembly(EmitContext context) 232IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) 242Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emit\NoPia\CommonEmbeddedEvent.cs (4)
109IEnumerable<Cci.IMethodReference> Cci.IEventDefinition.GetAccessors(EmitContext context) 143Cci.ITypeReference Cci.IEventDefinition.GetType(EmitContext context) 169Cci.ITypeReference Cci.ITypeMemberReference.GetContainingType(EmitContext context) 179Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emit\NoPia\CommonEmbeddedField.cs (6)
53protected abstract MetadataConstant GetCompileTimeValue(EmitContext context); 67MetadataConstant Cci.IFieldDefinition.GetCompileTimeValue(EmitContext context) 176Cci.ITypeReference Cci.ITypeMemberReference.GetContainingType(EmitContext context) 186Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context) 199Cci.ITypeReference Cci.IFieldReference.GetType(EmitContext context) 208Cci.IFieldDefinition Cci.IFieldReference.GetResolvedField(EmitContext context)
Emit\NoPia\CommonEmbeddedMember.cs (2)
91IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) 115Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emit\NoPia\CommonEmbeddedMethod.cs (9)
67protected abstract System.Reflection.MethodImplAttributes GetImplementationAttributes(EmitContext context); 99Cci.IMethodBody? Cci.IMethodDefinition.GetBody(EmitContext context) 208System.Reflection.MethodImplAttributes Cci.IMethodDefinition.GetImplementationAttributes(EmitContext context) 223IEnumerable<Cci.ICustomAttribute> Cci.IMethodDefinition.GetReturnValueAttributes(EmitContext context) 244Cci.ITypeReference Cci.ITypeMemberReference.GetContainingType(EmitContext context) 254Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context) 265Cci.IMethodDefinition Cci.IMethodReference.GetResolvedMethod(EmitContext context) 287ImmutableArray<Cci.IParameterTypeInformation> Cci.ISignature.GetParameters(EmitContext context) 300Cci.ITypeReference Cci.ISignature.GetType(EmitContext context)
Emit\NoPia\CommonEmbeddedParameter.cs (5)
63protected abstract MetadataConstant GetDefaultValue(EmitContext context); 140MetadataConstant Cci.IParameterDefinition.GetDefaultValue(EmitContext context) 193IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) 217Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context) 253Cci.ITypeReference Cci.IParameterTypeInformation.GetType(EmitContext context)
Emit\NoPia\CommonEmbeddedProperty.cs (5)
88IEnumerable<Cci.IMethodReference> Cci.IPropertyDefinition.GetAccessors(EmitContext context) 142ImmutableArray<Cci.IParameterTypeInformation> Cci.ISignature.GetParameters(EmitContext context) 171Cci.ITypeReference Cci.ISignature.GetType(EmitContext context) 197Cci.ITypeReference Cci.ITypeMemberReference.GetContainingType(EmitContext context) 207Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emit\NoPia\CommonEmbeddedType.cs (16)
70protected abstract IEnumerable<Cci.TypeReferenceWithAttributes> GetInterfaces(EmitContext context); 238Cci.ITypeReference Cci.ITypeDefinition.GetBaseClass(EmitContext context) 243IEnumerable<Cci.IEventDefinition> Cci.ITypeDefinition.GetEvents(EmitContext context) 267IEnumerable<Cci.MethodImplementation> Cci.ITypeDefinition.GetExplicitImplementationOverrides(EmitContext context) 272IEnumerable<Cci.IFieldDefinition> Cci.ITypeDefinition.GetFields(EmitContext context) 321IEnumerable<Cci.TypeReferenceWithAttributes> Cci.ITypeDefinition.Interfaces(EmitContext context) 441IEnumerable<Cci.IMethodDefinition> Cci.ITypeDefinition.GetMethods(EmitContext context) 486IEnumerable<Cci.INestedTypeDefinition> Cci.ITypeDefinition.GetNestedTypes(EmitContext context) 491IEnumerable<Cci.IPropertyDefinition> Cci.ITypeDefinition.GetProperties(EmitContext context) 532IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) 556Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context) 579Cci.ITypeDefinition Cci.ITypeReference.GetResolvedType(EmitContext context) 624Cci.INamespaceTypeDefinition Cci.ITypeReference.AsNamespaceTypeDefinition(EmitContext context) 637Cci.INestedTypeDefinition Cci.ITypeReference.AsNestedTypeDefinition(EmitContext context) 658Cci.ITypeDefinition Cci.ITypeReference.AsTypeDefinition(EmitContext context) 697Cci.IUnitReference Cci.INamespaceTypeReference.GetUnit(EmitContext context)
Emit\NoPia\CommonEmbeddedTypeParameter.cs (8)
52protected abstract IEnumerable<Cci.TypeReferenceWithAttributes> GetConstraints(EmitContext context); 68IEnumerable<Cci.TypeReferenceWithAttributes> Cci.IGenericParameter.GetConstraints(EmitContext context) 140Cci.ITypeDefinition Cci.ITypeReference.GetResolvedType(EmitContext context) 173Cci.INamespaceTypeDefinition Cci.ITypeReference.AsNamespaceTypeDefinition(EmitContext context) 183Cci.INestedTypeDefinition Cci.ITypeReference.AsNestedTypeDefinition(EmitContext context) 198Cci.ITypeDefinition Cci.ITypeReference.AsTypeDefinition(EmitContext context) 203IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) 214Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emit\NoPia\VtblGap.cs (9)
28Cci.IMethodBody? Cci.IMethodDefinition.GetBody(EmitContext context) 103System.Reflection.MethodImplAttributes Cci.IMethodDefinition.GetImplementationAttributes(EmitContext context) 123IEnumerable<Cci.ICustomAttribute> Cci.IMethodDefinition.GetReturnValueAttributes(EmitContext context) 167Cci.ITypeReference Cci.ITypeMemberReference.GetContainingType(EmitContext context) 172IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) 184Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context) 204Cci.IMethodDefinition Cci.IMethodReference.GetResolvedMethod(EmitContext context) 234ImmutableArray<Cci.IParameterTypeInformation> Cci.ISignature.GetParameters(EmitContext context) 254Cci.ITypeReference Cci.ISignature.GetType(EmitContext context)
NativePdbWriter\PdbWriter.cs (1)
64private EmitContext Context => _metadataWriter.Context;
PEWriter\Core.cs (3)
7using EmitContext = Microsoft.CodeAnalysis.Emit.EmitContext; 37IEnumerable<ICustomAttribute> GetAttributes(EmitContext context); // TODO: consider moving this to IDefinition, we shouldn't need to examine attributes on references. 50IDefinition? AsDefinition(EmitContext context);
PEWriter\CustomDebugInfoWriter.cs (4)
42public bool ShouldForwardNamespaceScopes(EmitContext context, IMethodBody methodBody, MethodDefinitionHandle methodHandle, out IMethodDefinition forwardToMethod) 67EmitContext context, 262private void SerializeNamespaceScopeMetadata(ref CustomDebugInfoEncoder encoder, EmitContext context, IMethodBody methodBody) 291private bool ShouldForwardToPreviousMethodWithUsingInfo(EmitContext context, IMethodBody methodBody)
PEWriter\FullMetadataWriter.cs (3)
13using EmitContext = Microsoft.CodeAnalysis.Emit.EmitContext; 41EmitContext context, 75EmitContext context,
PEWriter\ICustomAttribute.cs (5)
7using EmitContext = Microsoft.CodeAnalysis.Emit.EmitContext; 19ImmutableArray<IMetadataExpression> GetArguments(EmitContext context); 24IMethodReference Constructor(EmitContext context, bool reportDiagnostics); 29ImmutableArray<IMetadataNamedArgument> GetNamedArguments(EmitContext context); 50ITypeReference GetType(EmitContext context);
PEWriter\IImportScope.cs (1)
19ImmutableArray<UsedNamespaceOrType> GetUsedNamespaces(EmitContext context);
PEWriter\InheritedTypeParameter.cs (8)
9using EmitContext = Microsoft.CodeAnalysis.Emit.EmitContext; 37public IEnumerable<TypeReferenceWithAttributes> GetConstraints(EmitContext context) 137public INamespaceTypeDefinition? AsNamespaceTypeDefinition(EmitContext context) 150public INestedTypeDefinition? AsNestedTypeDefinition(EmitContext context) 187public ITypeDefinition? AsTypeDefinition(EmitContext context) 192public IDefinition? AsDefinition(EmitContext context) 203public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context) 234public ITypeDefinition GetResolvedType(EmitContext context)
PEWriter\ITypeReferenceExtensions.cs (2)
15internal static void GetConsolidatedTypeArguments(this ITypeReference typeReference, ArrayBuilder<ITypeReference> consolidatedTypeArguments, EmitContext context) 27internal static ITypeReference GetUninstantiatedGenericType(this ITypeReference typeReference, EmitContext context)
PEWriter\Members.cs (18)
16using EmitContext = Microsoft.CodeAnalysis.Emit.EmitContext; 135IEnumerable<IMethodReference> GetAccessors(EmitContext context); 165ITypeReference GetType(EmitContext context); 178MetadataConstant? GetCompileTimeValue(EmitContext context); 259ITypeReference GetType(EmitContext context); 277IFieldDefinition? GetResolvedField(EmitContext context); 528IMethodBody? GetBody(EmitContext context); 612MethodImplAttributes GetImplementationAttributes(EmitContext context); 637IEnumerable<ICustomAttribute> GetReturnValueAttributes(EmitContext context); 683MetadataConstant? GetDefaultValue(EmitContext context); 742IEnumerable<IMethodReference> GetAccessors(EmitContext context); 803ImmutableArray<IParameterTypeInformation> GetParameters(EmitContext context); 829ITypeReference GetType(EmitContext context); 858ITypeReference GetContainingType(EmitContext context); 941IMethodDefinition? GetResolvedMethod(EmitContext context); 961IEnumerable<ITypeReference> GetGenericArguments(EmitContext context); 967IMethodReference GetGenericMethod(EmitContext context); 1008public static bool ShouldInclude(this ITypeDefinitionMember member, EmitContext context)
PEWriter\MetadataVisitor.cs (2)
20public readonly EmitContext Context; 22public MetadataVisitor(EmitContext context)
PEWriter\MetadataWriter.cs (12)
98EmitContext context, 415public readonly EmitContext Context; 642public static IUnitReference GetDefiningUnitReference(ITypeReference typeReference, EmitContext context) 1465public static TypeAttributes GetTypeAttributes(ITypeDefinition typeDef, EmitContext context) 3448private EmitContext GetEmitContextForAttribute(ICustomAttribute customAttribute) 3473var attributeContext = GetEmitContextForAttribute(customAttribute); 3483private void SerializeCustomAttributeNamedArguments(in EmitContext context, NamedArgumentsEncoder encoder, ICustomAttribute customAttribute) 3498private void SerializeNamedArgumentType(in EmitContext context, NamedArgumentTypeEncoder encoder, ITypeReference type) 3514private void SerializeMetadataExpression(in EmitContext context, LiteralEncoder encoder, IMetadataExpression expression, ITypeReference targetType) 3744EmitContext context = this.Context; 4009private void SerializeCustomAttributeArrayType(in EmitContext context, CustomAttributeArrayTypeEncoder encoder, IArrayTypeReference arrayTypeReference) 4030private void SerializeCustomAttributeElementType(in EmitContext context, CustomAttributeElementTypeEncoder encoder, ITypeReference typeReference)
PEWriter\MetadataWriter.PortablePdb.cs (2)
35private readonly EmitContext _context; 37public ImportScopeEqualityComparer(EmitContext context)
PEWriter\Miscellaneous.cs (3)
12using EmitContext = Microsoft.CodeAnalysis.Emit.EmitContext; 113object GetCustomMarshaller(EmitContext context); 180ITypeReference GetSafeArrayElementUserDefinedSubtype(EmitContext context);
PEWriter\ModifiedTypeReference.cs (7)
10using EmitContext = Microsoft.CodeAnalysis.Emit.EmitContext; 55ITypeDefinition ITypeReference.GetResolvedType(EmitContext context) 70IEnumerable<ICustomAttribute> IReference.GetAttributes(EmitContext context) 104INamespaceTypeDefinition? ITypeReference.AsNamespaceTypeDefinition(EmitContext context) 117INestedTypeDefinition? ITypeReference.AsNestedTypeDefinition(EmitContext context) 138ITypeDefinition? ITypeReference.AsTypeDefinition(EmitContext context) 143IDefinition? IReference.AsDefinition(EmitContext context)
PEWriter\PeWriter.cs (2)
23using EmitContext = Microsoft.CodeAnalysis.Emit.EmitContext; 81EmitContext context,
PEWriter\ReferenceIndexerBase.cs (2)
10using EmitContext = Microsoft.CodeAnalysis.Emit.EmitContext; 28internal ReferenceIndexerBase(EmitContext context)
PEWriter\ReturnValueParameter.cs (5)
8using EmitContext = Microsoft.CodeAnalysis.Emit.EmitContext; 21public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context) 48public MetadataConstant? GetDefaultValue(EmitContext context) 107public ITypeReference GetType(EmitContext context) 112public IDefinition AsDefinition(EmitContext context)
PEWriter\RootModuleStaticConstructor.cs (9)
35public IMethodBody GetBody(EmitContext context) => this; 106public IDefinition AsDefinition(EmitContext context) => this; 112public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context) => SpecializedCollections.EmptyEnumerable<ICustomAttribute>(); 114public ITypeReference GetContainingType(EmitContext context) => ContainingTypeDefinition; 116public MethodImplAttributes GetImplementationAttributes(EmitContext context) => default; 118public ImmutableArray<IParameterTypeInformation> GetParameters(EmitContext context) => ImmutableArray<IParameterTypeInformation>.Empty; 120public IMethodDefinition GetResolvedMethod(EmitContext context) => this; 122public IEnumerable<ICustomAttribute> GetReturnValueAttributes(EmitContext context) => SpecializedCollections.EmptyEnumerable<ICustomAttribute>(); 124public ITypeReference GetType(EmitContext context) => context.Module.GetPlatformType(PlatformType.SystemVoid, context);
PEWriter\RootModuleType.cs (16)
11using EmitContext = Microsoft.CodeAnalysis.Emit.EmitContext; 36public IEnumerable<IMethodDefinition> GetMethods(EmitContext context) 51public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context) 76public ITypeReference? GetBaseClass(EmitContext context) 81public IEnumerable<IEventDefinition> GetEvents(EmitContext context) 86public IEnumerable<MethodImplementation> GetExplicitImplementationOverrides(EmitContext context) 91public IEnumerable<IFieldDefinition> GetFields(EmitContext context) 101public IEnumerable<Cci.TypeReferenceWithAttributes> Interfaces(EmitContext context) 168public IEnumerable<INestedTypeDefinition> GetNestedTypes(EmitContext context) 173public IEnumerable<IPropertyDefinition> GetProperties(EmitContext context) 231ITypeDefinition ITypeReference.GetResolvedType(EmitContext context) 246IUnitReference INamespaceTypeReference.GetUnit(EmitContext context) 283INamespaceTypeDefinition ITypeReference.AsNamespaceTypeDefinition(EmitContext context) 296INestedTypeDefinition? ITypeReference.AsNestedTypeDefinition(EmitContext context) 317ITypeDefinition ITypeReference.AsTypeDefinition(EmitContext context) 322IDefinition IReference.AsDefinition(EmitContext context)
PEWriter\TypeNameSerializer.cs (5)
19internal static string GetSerializedTypeName(this ITypeReference typeReference, EmitContext context) 25internal static string GetSerializedTypeName(this ITypeReference typeReference, EmitContext context, ref bool isAssemblyQualified) 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 (2)
8using EmitContext = Microsoft.CodeAnalysis.Emit.EmitContext; 19internal TypeReferenceIndexer(EmitContext context)
PEWriter\Types.cs (23)
12using EmitContext = Microsoft.CodeAnalysis.Emit.EmitContext; 35ITypeReference GetElementType(EmitContext context); 91ITypeReference GetModifier(EmitContext context); 123ITypeReference GetType(EmitContext context); 134IEnumerable<TypeReferenceWithAttributes> GetConstraints(EmitContext context); 214ImmutableArray<ITypeReference> GetGenericArguments(EmitContext context); 221INamedTypeReference GetGenericType(EmitContext context); 308IUnitReference GetUnit(EmitContext context); 341INestedTypeReference GetUnspecializedVersion(EmitContext context); 398ITypeReference GetTargetType(EmitContext context); 414/// itself. Unlike <see cref="IReference.GetAttributes(EmitContext)"/> a 459ITypeReference? GetBaseClass(EmitContext context); 465IEnumerable<IEventDefinition> GetEvents(EmitContext context); 470IEnumerable<MethodImplementation> GetExplicitImplementationOverrides(EmitContext context); 475IEnumerable<IFieldDefinition> GetFields(EmitContext context); 504IEnumerable<TypeReferenceWithAttributes> Interfaces(EmitContext context); 575IEnumerable<IMethodDefinition> GetMethods(EmitContext context); 580IEnumerable<INestedTypeDefinition> GetNestedTypes(EmitContext context); 585IEnumerable<IPropertyDefinition> GetProperties(EmitContext context); 623ITypeDefinition? GetResolvedType(EmitContext context); 639INamespaceTypeDefinition? AsNamespaceTypeDefinition(EmitContext context); 641INestedTypeDefinition? AsNestedTypeDefinition(EmitContext context); 644ITypeDefinition? AsTypeDefinition(EmitContext context);
PEWriter\Units.cs (2)
13using EmitContext = Microsoft.CodeAnalysis.Emit.EmitContext; 77IAssemblyReference GetContainingAssembly(EmitContext context);
Symbols\Attributes\MarshalPseudoCustomAttributeData.cs (2)
117object Cci.IMarshallingInformation.GetCustomMarshaller(EmitContext context) 177Cci.ITypeReference Cci.IMarshallingInformation.GetSafeArrayElementUserDefinedSubtype(EmitContext context)
Symbols\CustomModifier.cs (1)
33Cci.ITypeReference Cci.ICustomModifier.GetModifier(EmitContext context)