InterpreterOptions
loreline.InterpreterOptions (Class)
Instance Members
functions: FunctionsMapOptional map of additional functions to make available to the script
strictAccess: BoolTells whether access is strict or not. If set to true, trying to read or write an undefined variable will throw an error.
translations: MapOptional translations map (localization key -> translated string literal). Built from a parsed translation file using AstUtils.extractTranslations().
stringLiteralProcessors: Array<Function>Optional custom string literal processors to add alongside the built-in plural pipe processor. Each processor receives an NStringLiteral and returns a (possibly transformed) NStringLiteral.
customCreateFields(interpreter: Interpreter, type: String, node: Node): AnyA custom instanciator to create fields objects.
| Name | Type |
|---|---|
interpreter |
Interpreter |
type |
String |
node |
Node |
| Returns |
|---|
| Any |
new(?functions: Null<FunctionsMap>, ?strictAccess: Null<Bool>, ?customCreateFields: Null<Function>, ?translations: Null<Map>, ?stringLiteralProcessors: Null<Array<Function>>): Void| Name | Type | Default | Description |
|---|---|---|---|
functions |
Null<FunctionsMap> | (optional) | * Optional map of additional functions to make available to the script |
strictAccess |
Null<Bool> | (optional) | * Tells whether access is strict or not. If set to true, trying to read or write an undefined variable will throw an error. |
customCreateFields |
Null |
(optional) | * A custom instanciator to create fields objects. |
translations |
Null<Map> | (optional) | * Optional translations map (localization key -> translated string literal). Built from a parsed translation file using AstUtils.extractTranslations(). |
stringLiteralProcessors |
Null<Array |
(optional) | * Optional custom string literal processors to add alongside the built-in plural pipe processor. Each processor receives an NStringLiteral and returns a (possibly transformed) NStringLiteral. |
Metadata
| Name | Parameters |
|---|---|
:structInit |
- |