mirror of
https://github.com/AssetRipper/Cpp2IL.git
synced 2026-11-13 18:07:02 -10:00
24 lines
776 B
C#
24 lines
776 B
C#
namespace Cpp2IL.Core.Model.Contexts;
|
|
|
|
/// <summary>
|
|
/// Represents a single Module that was converted using IL2CPP.
|
|
/// </summary>
|
|
public class ModuleAnalysisContext : HasCustomAttributesAndName
|
|
{
|
|
private AssemblyAnalysisContext _assemblyContext;
|
|
|
|
/// <inheritdoc />
|
|
override protected int CustomAttributeIndex => -1;
|
|
/// <inheritdoc />
|
|
public override AssemblyAnalysisContext CustomAttributeAssembly => _assemblyContext;
|
|
/// <inheritdoc />
|
|
public override string DefaultName => _assemblyContext.Definition!.Image.Name!;
|
|
|
|
public ModuleAnalysisContext(AssemblyAnalysisContext asmCtx) : base(asmCtx.Definition?.ModuleToken ?? 1, asmCtx.AppContext)
|
|
{
|
|
_assemblyContext = asmCtx;
|
|
|
|
InitCustomAttributeData();
|
|
}
|
|
}
|