2 instantiations of AssemblyInfo
BuildValidator (2)
LocalReferenceResolver.cs (1)
175
var currentInfo = new
AssemblyInfo
(filePath, peInfo.Mvid);
Program.cs (1)
220
map[peInfo.Mvid] = new
AssemblyInfo
(filePath, peInfo.Mvid);
26 references to AssemblyInfo
BuildValidator (26)
CompilationDiff.cs (7)
58
public
AssemblyInfo
AssemblyInfo { get; }
83
AssemblyInfo
assemblyInfo,
109
AssemblyInfo
assemblyInfo,
117
AssemblyInfo
assemblyInfo,
127
AssemblyInfo
assemblyInfo,
240
if (_localReferenceResolver.TryGetCachedAssemblyInfo(info.ModuleVersionId, out
var
assemblyInfo))
247
foreach (
var
cachedInfo in _localReferenceResolver.GetCachedAssemblyInfos(info.FileName))
LocalReferenceResolver.cs (12)
29
/// This maps MVID to the <see cref="
AssemblyInfo
"/> we are using for that particular MVID.
31
private readonly Dictionary<Guid,
AssemblyInfo
> _mvidMap = new();
40
/// This maps a given file name to all of the <see cref="
AssemblyInfo
"/> that we ever considered
44
private readonly Dictionary<string, List<
AssemblyInfo
>> _nameMap = new(FileNameEqualityComparer.StringComparer);
101
public IEnumerable<
AssemblyInfo
> GetCachedAssemblyInfos(string fileName) => _nameMap.TryGetValue(fileName, out var list)
103
: Array.Empty<
AssemblyInfo
>();
105
public bool TryGetCachedAssemblyInfo(Guid mvid, [NotNullWhen(true)] out
AssemblyInfo
? assemblyInfo) => _mvidMap.TryGetValue(mvid, out assemblyInfo);
109
if (_mvidMap.TryGetValue(referenceInfo.ModuleVersionId, out
var
value))
119
if (!TryGetAssemblyInfo(metadataReferenceInfo, out
var
assemblyInfo))
144
public bool TryGetAssemblyInfo(MetadataReferenceInfo metadataReferenceInfo, [NotNullWhen(true)] out
AssemblyInfo
? assemblyInfo)
160
var assemblyInfoList = new List<
AssemblyInfo
>();
175
var
currentInfo = new AssemblyInfo(filePath, peInfo.Mvid);
Program.cs (7)
164
foreach (
var
assemblyInfo in assemblyInfos)
177
private static
AssemblyInfo
[] GetAssemblyInfos(
182
var map = new Dictionary<Guid,
AssemblyInfo
>();
211
if (map.TryGetValue(peInfo.Mvid, out
var
assemblyInfo))
234
private static bool ValidateFiles(IEnumerable<
AssemblyInfo
> assemblyInfos, Options options, ILoggerFactory loggerFactory)
240
foreach (
var
assemblyInfo in assemblyInfos)
309
AssemblyInfo
assemblyInfo,