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