namespace Cpp2IL.Core.Model.Contexts;
///
/// Represents a single Module that was converted using IL2CPP.
///
public class ModuleAnalysisContext : HasCustomAttributesAndName
{
private AssemblyAnalysisContext _assemblyContext;
///
override protected int CustomAttributeIndex => -1;
///
public override AssemblyAnalysisContext CustomAttributeAssembly => _assemblyContext;
///
public override string DefaultName => _assemblyContext.Definition!.Image.Name!;
public ModuleAnalysisContext(AssemblyAnalysisContext asmCtx) : base(asmCtx.Definition?.ModuleToken ?? 1, asmCtx.AppContext)
{
_assemblyContext = asmCtx;
InitCustomAttributeData();
}
}