-
Notifications
You must be signed in to change notification settings - Fork 0
API Host AuroraStackTrace
单个脚本调用栈帧。
Single script stack frame.
命名空间:AuroraScript.Runtime。类型:class。
Namespace:
AuroraScript.Runtime. Kind: class.
AuroraStackTrace 是公开宿主类型。通过下方签名选择调用方式;对运行时对象、生命周期和异常,应由宿主在边界处明确处理。
Single script stack frame.
下面是 AuroraStackTrace 的最小使用方式。
A minimal use of
AuroraStackTrace.
var frame = new AuroraStackTrace(
"scripts/main.as",
"main",
12);
Console.WriteLine(frame);创建 AuroraStackTrace 实例。
Use the member according to its public signature.
Parameters:
-
path
要解析或读取的路径。Path to resolve or read.
-
method
按签名提供的string参数。The
stringparameter required by the signature. -
line
按签名提供的int参数。The
intparameter required by the signature.
Returns
新建的 AuroraStackTrace 实例。
A new
AuroraStackTraceinstance.
调用示意
以下示例展示调用形状;将占位实例和参数替换为宿主中的实际值。
The example shows the call shape; replace placeholder instances and arguments with actual host values.
var value = new AuroraStackTrace(/* 参数 */);读取 FileName 字段。
Use the member according to its public signature.
Parameters:
- 无。
None.
Returns
返回 string。
Returns
string.
调用示意
以下示例展示调用形状;将占位实例和参数替换为宿主中的实际值。
The example shows the call shape; replace placeholder instances and arguments with actual host values.
AuroraStackTrace value = /* 从宿主 API 获取实例 */;
var current = value.FileName;读取 FullPath 字段。
Use the member according to its public signature.
Parameters:
- 无。
None.
Returns
返回 string。
Returns
string.
调用示意
以下示例展示调用形状;将占位实例和参数替换为宿主中的实际值。
The example shows the call shape; replace placeholder instances and arguments with actual host values.
AuroraStackTrace value = /* 从宿主 API 获取实例 */;
var current = value.FullPath;读取 Method 字段。
Use the member according to its public signature.
Parameters:
- 无。
None.
Returns
返回 string。
Returns
string.
调用示意
以下示例展示调用形状;将占位实例和参数替换为宿主中的实际值。
The example shows the call shape; replace placeholder instances and arguments with actual host values.
AuroraStackTrace value = /* 从宿主 API 获取实例 */;
var current = value.Method;读取 Line 字段。
Use the member according to its public signature.
Parameters:
- 无。
None.
Returns
返回 int。
Returns
int.
调用示意
以下示例展示调用形状;将占位实例和参数替换为宿主中的实际值。
The example shows the call shape; replace placeholder instances and arguments with actual host values.
AuroraStackTrace value = /* 从宿主 API 获取实例 */;
var current = value.Line;调用 ToString 完成其公开操作。
Use the member according to its public signature.
Parameters:
- 无。
None.
Returns
返回 string。
Returns
string.
调用示意
以下示例展示调用形状;将占位实例和参数替换为宿主中的实际值。
The example shows the call shape; replace placeholder instances and arguments with actual host values.
AuroraStackTrace value = /* 从宿主 API 获取实例 */;
var result = value.ToString();AuroraScript.JIT 4.0.0 · Documentation Home · Repository · MIT License