-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
/
LoadedAssembly.cs
662 lines (592 loc) · 21.3 KB
/
LoadedAssembly.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
// Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Diagnostics;
using System.IO;
using System.Reflection.Metadata;
using System.Reflection.PortableExecutable;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using ICSharpCode.Decompiler.DebugInfo;
using ICSharpCode.Decompiler.Metadata;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.Decompiler.TypeSystem.Implementation;
using ICSharpCode.Decompiler.Util;
using ICSharpCode.ILSpyX.FileLoaders;
using ICSharpCode.ILSpyX.PdbProvider;
#nullable enable
namespace ICSharpCode.ILSpyX
{
/// <summary>
/// Represents a file loaded into ILSpy.
///
/// Note: this class is misnamed.
/// The file is not necessarily an assembly, nor is it necessarily loaded.
///
/// A LoadedAssembly can refer to:
/// * a .NET module (single-file) loaded into ILSpy
/// * a non-existant file
/// * a file of unknown format that could not be loaded
/// * a .nupkg file or .NET core bundle
/// * a standalone portable pdb file or metadata stream
/// * a file that is still being loaded in the background
/// </summary>
[DebuggerDisplay("[LoadedAssembly {shortName}]")]
public sealed class LoadedAssembly
{
/// <summary>
/// Maps from MetadataFile (successfully loaded .NET module) back to the LoadedAssembly instance
/// that was used to load the module.
/// </summary>
internal static readonly ConditionalWeakTable<MetadataFile, LoadedAssembly> loadedAssemblies = new ConditionalWeakTable<MetadataFile, LoadedAssembly>();
readonly Task<LoadResult> loadingTask;
readonly AssemblyList assemblyList;
readonly string fileName;
readonly string shortName;
readonly IAssemblyResolver? providedAssemblyResolver;
readonly FileLoaderRegistry? fileLoaders;
readonly bool applyWinRTProjections;
readonly bool useDebugSymbols;
public LoadedAssembly? ParentBundle { get; }
public LoadedAssembly(AssemblyList assemblyList, string fileName,
Task<Stream?>? stream = null,
FileLoaderRegistry? fileLoaders = null,
IAssemblyResolver? assemblyResolver = null,
string? pdbFileName = null,
bool applyWinRTProjections = false, bool useDebugSymbols = false)
{
this.assemblyList = assemblyList ?? throw new ArgumentNullException(nameof(assemblyList));
this.fileName = fileName ?? throw new ArgumentNullException(nameof(fileName));
this.PdbFileName = pdbFileName;
this.providedAssemblyResolver = assemblyResolver;
this.fileLoaders = fileLoaders;
this.applyWinRTProjections = applyWinRTProjections;
this.useDebugSymbols = useDebugSymbols;
this.loadingTask = Task.Run(() => LoadAsync(stream)); // requires that this.fileName is set
this.shortName = Path.GetFileNameWithoutExtension(fileName);
}
public LoadedAssembly(LoadedAssembly bundle, string fileName, Task<Stream?>? stream,
FileLoaderRegistry? fileLoaders = null,
IAssemblyResolver? assemblyResolver = null,
bool applyWinRTProjections = false, bool useDebugSymbols = false)
: this(bundle.assemblyList, fileName, stream, fileLoaders, assemblyResolver, null,
applyWinRTProjections, useDebugSymbols)
{
this.ParentBundle = bundle;
}
string? targetFrameworkId;
/// <summary>
/// Returns a target framework identifier in the form '<framework>Version=v<version>'.
/// Returns an empty string if no TargetFrameworkAttribute was found
/// or the file doesn't contain an assembly header, i.e., is only a module.
///
/// Throws an exception if the file does not contain any .NET metadata (e.g. file of unknown format).
/// </summary>
public async Task<string> GetTargetFrameworkIdAsync()
{
var value = LazyInit.VolatileRead(ref targetFrameworkId);
if (value == null)
{
var assembly = await GetMetadataFileAsync().ConfigureAwait(false);
value = assembly.DetectTargetFrameworkId() ?? string.Empty;
value = LazyInit.GetOrSet(ref targetFrameworkId, value);
}
return value;
}
string? runtimePack;
public async Task<string> GetRuntimePackAsync()
{
var value = LazyInit.VolatileRead(ref runtimePack);
if (value == null)
{
var assembly = await GetMetadataFileAsync().ConfigureAwait(false);
value = assembly.DetectRuntimePack() ?? string.Empty;
value = LazyInit.GetOrSet(ref runtimePack, value);
}
return value;
}
public ReferenceLoadInfo LoadedAssemblyReferencesInfo { get; } = new ReferenceLoadInfo();
IDebugInfoProvider? debugInfoProvider;
/// <summary>
/// Gets the <see cref="LoadResult"/>.
/// </summary>
public Task<LoadResult> GetLoadResultAsync()
{
return loadingTask;
}
/// <summary>
/// Gets the <see cref="MetadataFile"/>.
/// </summary>
public async Task<MetadataFile> GetMetadataFileAsync()
{
var loadResult = await loadingTask.ConfigureAwait(false);
if (loadResult.MetadataFile != null)
return loadResult.MetadataFile;
else
throw loadResult.FileLoadException ?? new MetadataFileNotSupportedException();
}
/// <summary>
/// Gets the <see cref="PEFile"/>.
/// Returns null in case of load errors.
/// </summary>
public MetadataFile? GetMetadataFileOrNull()
{
try
{
var loadResult = loadingTask.GetAwaiter().GetResult();
return loadResult.MetadataFile;
}
catch (Exception ex)
{
System.Diagnostics.Trace.TraceError(ex.ToString());
return null;
}
}
/// <summary>
/// Gets the <see cref="MetadataFile"/>.
/// Returns null in case of load errors.
/// </summary>
public async Task<MetadataFile?> GetMetadataFileOrNullAsync()
{
try
{
var loadResult = await loadingTask.ConfigureAwait(false);
return loadResult.MetadataFile;
}
catch (Exception ex)
{
System.Diagnostics.Trace.TraceError(ex.ToString());
return null;
}
}
ICompilation? typeSystem;
/// <summary>
/// Gets a type system containing all types from this assembly + primitive types from mscorlib.
/// Returns null in case of load errors.
/// </summary>
/// <remarks>
/// This is an uncached type system.
/// </remarks>
public ICompilation? GetTypeSystemOrNull()
{
var value = Volatile.Read(ref this.typeSystem);
if (value == null)
{
var module = GetMetadataFileOrNull();
if (module == null || module.IsMetadataOnly)
return null;
value = new SimpleCompilation(
module.WithOptions(TypeSystemOptions.Default | TypeSystemOptions.Uncached | TypeSystemOptions.KeepModifiers),
MinimalCorlib.Instance);
value = LazyInit.GetOrSet(ref this.typeSystem, value);
}
return value;
}
readonly object typeSystemWithOptionsLockObj = new object();
ICompilation? typeSystemWithOptions;
TypeSystemOptions? currentTypeSystemOptions;
public ICompilation? GetTypeSystemOrNull(TypeSystemOptions options)
{
lock (typeSystemWithOptionsLockObj)
{
if (typeSystemWithOptions != null && options == currentTypeSystemOptions)
return typeSystemWithOptions;
var module = GetMetadataFileOrNull();
if (module == null || module.IsMetadataOnly)
return null;
currentTypeSystemOptions = options;
return typeSystemWithOptions = new SimpleCompilation(
module.WithOptions(options | TypeSystemOptions.Uncached | TypeSystemOptions.KeepModifiers),
MinimalCorlib.Instance);
}
}
public AssemblyList AssemblyList => assemblyList;
public string FileName => fileName;
public string ShortName => shortName;
public string Text {
get {
if (IsLoaded && !HasLoadError)
{
var result = GetLoadResultAsync().GetAwaiter().GetResult();
if (result.MetadataFile != null)
{
switch (result.MetadataFile.Kind)
{
case MetadataFile.MetadataFileKind.PortableExecutable:
var metadata = result.MetadataFile.Metadata;
string? versionOrInfo;
if (metadata.IsAssembly)
{
versionOrInfo = metadata.GetAssemblyDefinition().Version?.ToString();
string tfId = GetTargetFrameworkIdAsync().GetAwaiter().GetResult();
if (!string.IsNullOrEmpty(tfId))
versionOrInfo += ", " + tfId.Replace("Version=", " ");
}
else
{
versionOrInfo = ".netmodule";
}
if (versionOrInfo == null)
return ShortName;
return string.Format("{0} ({1})", ShortName, versionOrInfo);
case MetadataFile.MetadataFileKind.ProgramDebugDatabase:
return ShortName + " (Debug Metadata)";
case MetadataFile.MetadataFileKind.Metadata:
return ShortName + " (Metadata)";
default:
return ShortName;
}
}
}
return ShortName;
}
}
/// <summary>
/// Gets whether loading finished for this file (either successfully or unsuccessfully).
/// </summary>
public bool IsLoaded => loadingTask.IsCompleted;
/// <summary>
/// Gets whether this file was loaded successfully as an assembly (not as a bundle).
/// </summary>
public bool IsLoadedAsValidAssembly {
get {
return loadingTask.Status == TaskStatus.RanToCompletion && loadingTask.Result.MetadataFile is { IsMetadataOnly: false };
}
}
/// <summary>
/// Gets whether loading failed (file does not exist, unknown file format).
/// Returns false for valid assemblies and valid bundles.
/// </summary>
public bool HasLoadError => loadingTask.IsFaulted;
public bool IsAutoLoaded { get; set; }
/// <summary>
/// Gets the PDB file name or null, if no PDB was found or it's embedded.
/// </summary>
public string? PdbFileName { get; private set; }
async Task<LoadResult> LoadAsync(Task<Stream?>? streamTask)
{
using var stream = await PrepareStream();
FileLoadContext settings = new FileLoadContext(applyWinRTProjections, ParentBundle);
LoadResult? result = null;
if (fileLoaders != null)
{
foreach (var loader in fileLoaders.RegisteredLoaders)
{
// In each iteration any of the following things may happen:
// Load returns null because the loader is unable to handle the file, we simply continue without recording the result.
// Load returns a non-null value that is either a valid result or an exception:
// - if it's a success, we use that and end the loop,
// - if it's an error, we remember the error, discarding any previous errors.
// Load throws an exception, remember the error, discarding any previous errors.
stream.Position = 0;
try
{
var nextResult = await loader.Load(fileName, stream, settings).ConfigureAwait(false);
if (nextResult != null)
{
result = nextResult;
if (result.IsSuccess)
{
break;
}
}
}
catch (Exception ex)
{
result = new LoadResult { FileLoadException = ex };
}
}
}
if (result?.IsSuccess != true)
{
stream.Position = 0;
try
{
MetadataReaderOptions options = applyWinRTProjections
? MetadataReaderOptions.ApplyWindowsRuntimeProjections
: MetadataReaderOptions.None;
PEFile module = new PEFile(fileName, stream, PEStreamOptions.PrefetchEntireImage, metadataOptions: options);
result = new LoadResult { MetadataFile = module };
}
catch (Exception ex)
{
result = new LoadResult { FileLoadException = ex };
}
}
if (result.MetadataFile != null)
{
lock (loadedAssemblies)
{
loadedAssemblies.Add(result.MetadataFile, this);
}
if (result.MetadataFile is PEFile module)
{
debugInfoProvider = LoadDebugInfo(module);
}
}
else if (result.Package != null)
{
result.Package.LoadedAssembly = this;
}
else if (result.FileLoadException != null)
{
throw result.FileLoadException;
}
return result;
async Task<Stream> PrepareStream()
{
// runs on background thread
var stream = streamTask != null ? await streamTask.ConfigureAwait(false) : null;
if (stream != null)
{
// Read the module from a precrafted stream
if (!stream.CanSeek)
{
var memoryStream = new MemoryStream();
stream.CopyTo(memoryStream);
stream.Close();
memoryStream.Position = 0;
stream = memoryStream;
}
return stream;
}
else
{
return new FileStream(fileName, FileMode.Open, FileAccess.Read);
}
}
}
IDebugInfoProvider? LoadDebugInfo(PEFile? module)
{
if (module == null)
{
return null;
}
if (useDebugSymbols)
{
try
{
return (PdbFileName != null ? DebugInfoUtils.FromFile(module, PdbFileName) : null)
?? DebugInfoUtils.LoadSymbols(module);
}
catch (IOException)
{
}
catch (UnauthorizedAccessException)
{
}
catch (InvalidOperationException)
{
// ignore any errors during symbol loading
}
}
return null;
}
public async Task<IDebugInfoProvider?> LoadDebugInfo(string fileName)
{
this.PdbFileName = fileName;
var assembly = await GetMetadataFileAsync().ConfigureAwait(false);
debugInfoProvider = await Task.Run(() => LoadDebugInfo(assembly as PEFile));
return debugInfoProvider;
}
sealed class MyAssemblyResolver : IAssemblyResolver
{
readonly LoadedAssembly parent;
readonly bool loadOnDemand;
readonly bool applyWinRTProjections;
readonly IAssemblyResolver? providedAssemblyResolver;
readonly AssemblyList assemblyList;
readonly AssemblyListSnapshot alreadyLoadedAssemblies;
readonly Task<string> tfmTask;
readonly ReferenceLoadInfo referenceLoadInfo;
public MyAssemblyResolver(LoadedAssembly parent, AssemblyListSnapshot assemblyListSnapshot,
bool loadOnDemand, bool applyWinRTProjections)
{
this.parent = parent;
this.loadOnDemand = loadOnDemand;
this.applyWinRTProjections = applyWinRTProjections;
this.providedAssemblyResolver = parent.providedAssemblyResolver;
this.assemblyList = parent.assemblyList;
// Note: we cache a copy of the assembly list in the constructor, so that the
// resolve calls only search-by-asm-name in the assemblies that were already loaded
// at the time of the GetResolver() call.
this.alreadyLoadedAssemblies = assemblyListSnapshot;
// If we didn't do this, we'd also search in the assemblies that we just started to load
// in previous Resolve() calls; but we don't want to wait for those to be loaded.
this.tfmTask = parent.GetTargetFrameworkIdAsync();
this.referenceLoadInfo = parent.LoadedAssemblyReferencesInfo;
}
public MetadataFile? Resolve(IAssemblyReference reference)
{
return ResolveAsync(reference).GetAwaiter().GetResult();
}
/// <summary>
/// 0) if we're inside a package, look for filename.dll in parent directories
/// 1) try to find exact match by tfm + full asm name in loaded assemblies
/// 2) try to find match in search paths
/// 3) if a.deps.json is found: search %USERPROFILE%/.nuget/packages/* as well
/// 4) look in /dotnet/shared/{runtime-pack}/{closest-version}
/// 5) if the version is retargetable or all zeros or ones, search C:\Windows\Microsoft.NET\Framework64\v4.0.30319
/// 6) For "mscorlib.dll" we use the exact same assembly with which ILSpy runs
/// 7) Search the GAC
/// 8) search C:\Windows\Microsoft.NET\Framework64\v4.0.30319
/// 9) try to find match by asm name (no tfm/version) in loaded assemblies
/// </summary>
public async Task<MetadataFile?> ResolveAsync(IAssemblyReference reference)
{
MetadataFile? module;
// 0) if we're inside a package, look for filename.dll in parent directories
if (providedAssemblyResolver != null)
{
module = await providedAssemblyResolver.ResolveAsync(reference).ConfigureAwait(false);
if (module != null)
return module;
}
string tfm = await tfmTask.ConfigureAwait(false);
// 1) try to find exact match by tfm + full asm name in loaded assemblies
module = await alreadyLoadedAssemblies.TryGetModuleAsync(reference, tfm).ConfigureAwait(false);
if (module != null)
{
referenceLoadInfo.AddMessageOnce(reference.FullName, MessageKind.Info, "Success - Found in Assembly List");
return module;
}
string? file = parent.GetUniversalResolver(applyWinRTProjections).FindAssemblyFile(reference);
if (file != null)
{
// Load assembly from disk
LoadedAssembly? asm;
if (loadOnDemand)
{
asm = assemblyList.OpenAssembly(file, isAutoLoaded: true);
}
else
{
asm = assemblyList.FindAssembly(file);
}
if (asm != null)
{
referenceLoadInfo.AddMessage(reference.FullName, MessageKind.Info, "Success - Loading from: " + file);
return await asm.GetMetadataFileOrNullAsync().ConfigureAwait(false);
}
return null;
}
else
{
// Assembly not found; try to find a similar-enough already-loaded assembly
module = await alreadyLoadedAssemblies.TryGetSimilarModuleAsync(reference).ConfigureAwait(false);
if (module == null)
{
referenceLoadInfo.AddMessageOnce(reference.FullName, MessageKind.Error, "Could not find reference: " + reference.FullName);
}
else
{
referenceLoadInfo.AddMessageOnce(reference.FullName, MessageKind.Info, "Success - Found in Assembly List with different TFM or version: " + module.FileName);
}
return module;
}
}
public MetadataFile? ResolveModule(MetadataFile mainModule, string moduleName)
{
return ResolveModuleAsync(mainModule, moduleName).GetAwaiter().GetResult();
}
public async Task<MetadataFile?> ResolveModuleAsync(MetadataFile mainModule, string moduleName)
{
if (providedAssemblyResolver != null)
{
var module = await providedAssemblyResolver.ResolveModuleAsync(mainModule, moduleName).ConfigureAwait(false);
if (module != null)
return module;
}
string? directory = Path.GetDirectoryName(mainModule.FileName);
if (directory != null)
{
string file = Path.Combine(directory, moduleName);
if (File.Exists(file))
{
// Load module from disk
LoadedAssembly? asm;
if (loadOnDemand)
{
asm = assemblyList.OpenAssembly(file, isAutoLoaded: true);
}
else
{
asm = assemblyList.FindAssembly(file);
}
if (asm != null)
{
return await asm.GetMetadataFileOrNullAsync().ConfigureAwait(false);
}
}
}
// Module does not exist on disk, look for one with a matching name in the assemblylist:
foreach (LoadedAssembly loaded in alreadyLoadedAssemblies.Assemblies)
{
var module = await loaded.GetMetadataFileOrNullAsync().ConfigureAwait(false);
var reader = module?.Metadata;
if (reader == null || reader.IsAssembly)
continue;
var moduleDef = reader.GetModuleDefinition();
if (moduleName.Equals(reader.GetString(moduleDef.Name), StringComparison.OrdinalIgnoreCase))
{
referenceLoadInfo.AddMessageOnce(moduleName, MessageKind.Info, "Success - Found in Assembly List");
return module;
}
}
return null;
}
}
public IAssemblyResolver GetAssemblyResolver(bool loadOnDemand = true, bool applyWinRTProjections = false)
{
return new MyAssemblyResolver(this, AssemblyList.GetSnapshot(), loadOnDemand, applyWinRTProjections);
}
internal IAssemblyResolver GetAssemblyResolver(AssemblyListSnapshot snapshot,
bool loadOnDemand = true, bool applyWinRTProjections = false)
{
return new MyAssemblyResolver(this, snapshot, loadOnDemand, applyWinRTProjections);
}
private UniversalAssemblyResolver GetUniversalResolver(bool applyWinRTProjections)
{
return LazyInitializer.EnsureInitialized(ref this.universalResolver, () => {
var targetFramework = this.GetTargetFrameworkIdAsync().GetAwaiter().GetResult();
var runtimePack = this.GetRuntimePackAsync().GetAwaiter().GetResult();
var readerOptions = applyWinRTProjections
? MetadataReaderOptions.ApplyWindowsRuntimeProjections
: MetadataReaderOptions.None;
var rootedPath = Path.IsPathRooted(this.FileName) ? this.FileName : null;
return new UniversalAssemblyResolver(rootedPath, throwOnError: false, targetFramework,
runtimePack, PEStreamOptions.PrefetchEntireImage, readerOptions);
})!;
}
public AssemblyReferenceClassifier GetAssemblyReferenceClassifier(bool applyWinRTProjections)
{
return GetUniversalResolver(applyWinRTProjections);
}
/// <summary>
/// Returns the debug info for this assembly. Returns null in case of load errors or no debug info is available.
/// </summary>
public IDebugInfoProvider? GetDebugInfoOrNull()
{
if (GetMetadataFileOrNull() == null)
return null;
return debugInfoProvider;
}
UniversalAssemblyResolver? universalResolver;
}
}