-
Notifications
You must be signed in to change notification settings - Fork 0
API Host ScriptModule
Liu.Yandong.Hanks edited this page Aug 19, 2026
·
3 revisions
编译模块的运行时元数据
Runtime metadata for a compiled module
ScriptModule 是模块对象,通常由 ScriptDomain.GetModule 或函数元数据获得。它主要用于诊断、路径处理和高级宿主集成。
ScriptModuleis the module object, usually obtained fromScriptDomain.GetModuleor function metadata. It is primarily for diagnostics, path handling, and advanced host integration.
Returns
@module 声明的模块名。
Module name declared by
@module.
var module = domain.GetModule("MAIN");
Console.WriteLine(module.Name); // MAINReturns
Resolver 相对模块路径。
Resolver-relative module path.
var module = domain.GetModule("MAIN");
Console.WriteLine(module.ModulePath);Returns
源码绝对或虚拟完整路径。
Absolute or virtual full path of the source.
var module = domain.GetModule("MAIN");
Console.WriteLine(module.FullPath);AuroraScript.JIT 4.0.0 · Documentation Home · Repository · MIT License