-
Notifications
You must be signed in to change notification settings - Fork 0
API Host ScriptSource
Back to .NET Host API Reference
ScriptSource represents source text and path identity; MemorySource is a string-backed implementation; ScriptSourceReference is the stable identity produced by resolution. Resolvers usually create these types, while application code usually uses ScriptSources.
Resolver root used for module-relative paths and source read routing.
string BaseDirectoryReturns
Resolver root, module-relative path, full or virtual path, and source text.
ScriptSource source = new MemorySource("mem://app/", "mem://app/main.as", "@module(MAIN);");
Console.WriteLine(source.FullPath);
Console.WriteLine(source.Code);Module-relative path used by the compiler and runtime.
string SourcePathParameters
None.
Returns
Returns string.
Absolute file path or virtual source identifier.
string FullPathParameters
None.
Returns
Returns string.
string CodeParameters
None.
Returns
Returns string.
string ReadSource()Parameters
None.
Returns
Source text.
var source = new MemorySource("mem://app/", "mem://app/main.as", "@module(MAIN);");
var text = source.ReadSource();AuroraScript.JIT 4.0.0 · Documentation Home · Repository · MIT License