1 implementation of IAssemblyReference
Microsoft.CodeAnalysis (1)
Emit\ErrorType.cs (1)
208private sealed class ErrorAssembly : Cci.IAssemblyReference
48 references to IAssemblyReference
Microsoft.CodeAnalysis (48)
Emit\CommonPEModuleBuilder.cs (11)
121internal abstract Cci.IAssemblyReference Translate(IAssemblySymbolInternal symbol, DiagnosticBag diagnostics); 172protected abstract Cci.IAssemblyReference GetCorLibraryReferenceToEmit(EmitContext context); 173protected abstract IEnumerable<Cci.IAssemblyReference> GetAssemblyReferencesFromAddedModules(DiagnosticBag diagnostics); 377public Cci.IAssemblyReference GetCorLibrary(EmitContext context) 382public Cci.IAssemblyReference GetContainingAssembly(EmitContext context) 384return OutputKind == OutputKind.NetModule ? null : (Cci.IAssemblyReference)this; 482public IEnumerable<Cci.IAssemblyReference> GetAssemblyReferences(EmitContext context) 484Cci.IAssemblyReference corLibrary = GetCorLibraryReferenceToEmit(context); 496foreach (var aRef in GetAssemblyReferencesFromAddedModules(context.Diagnostics)) 721internal abstract Cci.IAssemblyReference Translate(TAssemblySymbol symbol, DiagnosticBag diagnostics); 725internal sealed override Cci.IAssemblyReference Translate(IAssemblySymbolInternal symbol, DiagnosticBag diagnostics)
Emit\EditAndContinue\DeltaMetadataWriter.cs (1)
400protected override AssemblyReferenceHandle GetOrAddAssemblyReferenceHandle(IAssemblyReference reference)
Emit\ErrorType.cs (4)
224AssemblyIdentity Cci.IAssemblyReference.Identity => s_identity; 225Version Cci.IAssemblyReference.AssemblyVersionPattern => null; 227Cci.IAssemblyReference Cci.IModuleReference.GetContainingAssembly(EmitContext context) 239visitor.Visit((Cci.IAssemblyReference)this);
NativePdbWriter\PdbWriter.cs (1)
419private string GetAssemblyReferenceAlias(IAssemblyReference assembly, HashSet<string>? declaredExternAliases)
PEWriter\AssemblyReferenceAlias.cs (2)
23public readonly IAssemblyReference Assembly; 25internal AssemblyReferenceAlias(string name, IAssemblyReference assembly)
PEWriter\FullMetadataWriter.cs (1)
235protected override AssemblyReferenceHandle GetOrAddAssemblyReferenceHandle(IAssemblyReference reference)
PEWriter\MetadataVisitor.cs (5)
32public void Visit(IEnumerable<IAssemblyReference> assemblyReferences) 34foreach (IAssemblyReference assemblyReference in assemblyReferences) 40public virtual void Visit(IAssemblyReference assemblyReference) 698IAssemblyReference? assemblyReference = unitReference as IAssemblyReference;
PEWriter\MetadataWriter.cs (8)
284protected abstract AssemblyReferenceHandle GetOrAddAssemblyReferenceHandle(IAssemblyReference reference); 670foreach (IAssemblyReference assemblyRef in this.module.GetAssemblyReferences(Context)) 691internal AssemblyReferenceHandle GetAssemblyReferenceHandle(IAssemblyReference assemblyReference) 693var containingAssembly = this.module.GetContainingAssembly(Context); 899if (uref is IAssemblyReference aref) 1297if (unitReference is IAssemblyReference aref) 3695internal static string StrongName(IAssemblyReference assemblyReference) 3752if (namespaceType?.GetUnit(context) is IAssemblyReference referencedAssembly)
PEWriter\ReferenceIndexer.cs (3)
52var definingAssembly = definingUnit as IAssemblyReference; 99protected override void RecordAssemblyReference(IAssemblyReference assemblyReference)
PEWriter\ReferenceIndexerBase.cs (4)
33public override void Visit(IAssemblyReference assemblyReference) 41protected abstract void RecordAssemblyReference(IAssemblyReference assemblyReference); 209var assemblyReference = unit as IAssemblyReference;
PEWriter\TypeNameSerializer.cs (3)
187IAssemblyReference referencedAssembly = null; 191referencedAssembly = namespaceType.GetUnit(context) as IAssemblyReference; 196var containingAssembly = context.Module.GetContainingAssembly(context);
PEWriter\TypeReferenceIndexer.cs (1)
34protected override void RecordAssemblyReference(IAssemblyReference assemblyReference)
PEWriter\Units.cs (1)
77IAssemblyReference GetContainingAssembly(EmitContext context);
PEWriter\UsedNamespaceOrType.cs (3)
17public readonly IAssemblyReference? TargetAssemblyOpt; 24IAssemblyReference? targetAssembly = null, 42internal static UsedNamespaceOrType CreateNamespace(INamespace @namespace, IAssemblyReference? assemblyOpt = null, string? aliasOpt = null)