-
Notifications
You must be signed in to change notification settings - Fork 0
API Host ScriptSourceReference
Stable identity returned by a resolver after an import/include path is resolved.
Namespace: AuroraScript.Core. Kind: struct.
Back to .NET Host API Reference
Stable identity returned by a resolver after an import/include path is resolved.
A minimal use of ScriptSourceReference.
var reference = new ScriptSourceReference(
"mem://app/",
"main.as");
Console.WriteLine(reference.FullPath); // mem://app/main.asCreates a ScriptSourceReference instance.
ScriptSourceReference(string baseDirectory, string fullPath)Parameters
| Name | Type | Required | Description |
|---|---|---|---|
baseDirectory |
string |
Yes | Resolver root associated with the source reference. |
fullPath |
string |
Yes | Normalized absolute path or virtual source identifier. |
Returns
A new ScriptSourceReference instance.
Creates a ScriptSourceReference instance.
ScriptSourceReference(string baseDirectory, string fullPath, string modulePath)Parameters
| Name | Type | Required | Description |
|---|---|---|---|
baseDirectory |
string |
Yes | Resolver root associated with the source reference. |
fullPath |
string |
Yes | Normalized absolute path or virtual source identifier. |
modulePath |
string |
Yes | Module-relative path used by compiler and runtime names. |
Returns
A new ScriptSourceReference instance.
Resolver root that should read this reference.
string BaseDirectoryParameters
None.
Returns
Returns string.
Normalized absolute file path or virtual source identifier.
string FullPathParameters
None.
Returns
Returns string.
Module-relative path used by compiler/runtime names.
string ModulePathParameters
None.
Returns
Returns string.
AuroraScript.JIT 4.0.0 · Documentation Home · Repository · MIT License