-
Notifications
You must be signed in to change notification settings - Fork 0
API Host ScriptSourceReference
Resolved source reference whose normalized FullPath is the compiler and runtime module identity.
Namespace: AuroraScript.Core. Kind: struct.
Back to .NET Host API Reference
The Source Resolver returns this value after resolving an entry, import, or include. FullPath identifies the source throughout compilation and runtime registration; ModulePath is resolver-relative display/source information and is not an @module name.
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 | Resolver-relative source path used for display and source-relative behavior. It is not a module name or identity. |
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.
Resolver-relative source path used for display and source-relative behavior. It is not a module name or registry identity.
string ModulePathParameters
None.
Returns
Returns string.
AuroraScript.JIT 4.0.0 · Documentation Home · Repository · MIT License