42 references to Assembly
Microsoft.CodeAnalysis (20)
CommandLine\CommonCompiler.ExistingReferencesResolver.cs (1)
53
if (peReference == null || peReference.Properties.Kind != MetadataImageKind.
Assembly
)
MetadataReference\AssemblyMetadata.cs (2)
435
get { return MetadataImageKind.
Assembly
; }
454
return new MetadataImageReference(this, new MetadataReferenceProperties(MetadataImageKind.
Assembly
, aliases, embedInteropTypes), documentation, filePath, display);
MetadataReference\CompilationReference.cs (1)
44
return new MetadataReferenceProperties(MetadataImageKind.
Assembly
, aliases, embedInteropTypes);
MetadataReference\MetadataImageKind.cs (1)
27
return kind >= MetadataImageKind.
Assembly
&& kind <= MetadataImageKind.Module;
MetadataReference\MetadataImageReference.cs (1)
53
return _display ?? FilePath ?? (Properties.Kind == MetadataImageKind.
Assembly
? CodeAnalysisResources.InMemoryAssembly : CodeAnalysisResources.InMemoryModule);
MetadataReference\MetadataReference.cs (2)
316
/// <exception cref="ArgumentException"><paramref name="properties"/>.<see cref="MetadataReferenceProperties.Kind"/> is not <see cref="MetadataImageKind.
Assembly
"/>.</exception>
349
if (properties.Kind != MetadataImageKind.
Assembly
)
MetadataReference\MetadataReferenceProperties.cs (2)
30
public static MetadataReferenceProperties Assembly => new MetadataReferenceProperties(MetadataImageKind.
Assembly
);
38
public MetadataReferenceProperties(MetadataImageKind kind = MetadataImageKind.
Assembly
, ImmutableArray<string> aliases = default, bool embedInteropTypes = false)
MetadataReference\PortableExecutableReference.cs (2)
190
int errorCode = (kind == MetadataImageKind.
Assembly
) ? messageProvider.ERR_InvalidAssemblyMetadata : messageProvider.ERR_InvalidModuleMetadata;
201
int errorCode = (kind == MetadataImageKind.
Assembly
) ? messageProvider.ERR_ErrorOpeningAssemblyFile : messageProvider.ERR_ErrorOpeningModuleFile;
PEWriter\MetadataWriter.PortablePdb.cs (1)
995
MetadataImageKind.
Assembly
=> 1,
ReferenceManager\CommonReferenceManager.Binding.cs (1)
469
result.Add(GetResolvedReferenceAndFreePropertyMapEntry(references[i], explicitAssemblyCount - 1 + i, MetadataImageKind.
Assembly
, propertyMapOpt));
ReferenceManager\CommonReferenceManager.Resolution.cs (5)
163
return IsSkipped ? "<skipped>" : $"{(_kind == MetadataImageKind.
Assembly
? "A" : "M")}[{Index}]:{DisplayAliases(_aliasesOpt, "aliases")}{DisplayAliases(_recursiveAliasesOpt, "recursive-aliases")}";
288
case MetadataImageKind.
Assembly
:
329
case MetadataImageKind.
Assembly
:
417
int count = (referenceMap[i].Kind == MetadataImageKind.
Assembly
) ? assembliesBuilder.Count : lazyModulesBuilder?.Count ?? 0;
640
referenceMap[referenceIndex] = new ResolvedReference(assemblies.Count, MetadataImageKind.
Assembly
);
ReferenceManager\CommonReferenceManager.State.cs (1)
630
Debug.Assert(reference.Kind == MetadataImageKind.
Assembly
);
Microsoft.CodeAnalysis.CSharp (3)
CommandLine\CSharpCommandLineParser.cs (1)
1990
var properties = new MetadataReferenceProperties(MetadataImageKind.
Assembly
, aliases, embedInteropTypes);
Compilation\CSharpCompilation.cs (1)
1278
if (reference.Properties.Kind == MetadataImageKind.
Assembly
)
Symbols\Compilation_UsedAssemblies.cs (1)
36
if (reference.Properties.Kind == MetadataImageKind.
Assembly
)
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
394
? MetadataImageKind.
Assembly
Microsoft.CodeAnalysis.Scripting (4)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (1)
119
copy = _shadowCopyProvider.GetMetadataShadowCopy(reference, MetadataImageKind.
Assembly
);
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (3)
249
if (kind == MetadataImageKind.
Assembly
)
295
if (kind is < MetadataImageKind.
Assembly
or > MetadataImageKind.Module)
418
if (kind == MetadataImageKind.
Assembly
)
Microsoft.CodeAnalysis.VisualBasic (11)
CommandLine\VisualBasicCommandLineArguments.vb (1)
86
If Not refProps.EmbedInteropTypes AndAlso refProps.Kind = MetadataImageKind.
Assembly
Then
CommandLine\VisualBasicCommandLineParser.vb (8)
1349
New CommandLineReference(systemDllPath, New MetadataReferenceProperties(MetadataImageKind.
Assembly
)))
1362
New CommandLineReference(msVbDllPath, New MetadataReferenceProperties(MetadataImageKind.
Assembly
)))
1365
metadataReferences.Add(New CommandLineReference(vbRuntimePath, New MetadataReferenceProperties(MetadataImageKind.
Assembly
)))
1565
Return New CommandLineReference(systemRuntimePath, New MetadataReferenceProperties(MetadataImageKind.
Assembly
))
1574
Return New CommandLineReference(systemRuntimePath, New MetadataReferenceProperties(MetadataImageKind.
Assembly
))
1582
Return New CommandLineReference(msCorLibPath, New MetadataReferenceProperties(MetadataImageKind.
Assembly
))
1587
Return New CommandLineReference(msCorLibPath, New MetadataReferenceProperties(MetadataImageKind.
Assembly
))
1709
Select(Function(path) New CommandLineReference(path, New MetadataReferenceProperties(MetadataImageKind.
Assembly
, embedInteropTypes:=embedInteropTypes)))
Compilation\VisualBasicCompilation.vb (1)
1323
If reference.Properties.Kind = MetadataImageKind.
Assembly
Then
Symbols\UsedAssemblies.vb (1)
29
If reference.Properties.Kind = MetadataImageKind.
Assembly
Then
Microsoft.CodeAnalysis.Workspaces (3)
Serialization\SerializerService_Reference.cs (2)
375
writer.WriteInt32((int)MetadataImageKind.
Assembly
);
398
if (metadataKind == MetadataImageKind.
Assembly
)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
533
var metadataReference = metadataService.GetReference(outputPath, new MetadataReferenceProperties(MetadataImageKind.
Assembly
, projectReference.Aliases, projectReference.EmbedInteropTypes));