new LexiconFormatter()
- Source:
- Implements:
Methods
canFormat(script) → {boolean}
- Source:
- Implements:
Parameters:
| Name | Type | Description |
|---|---|---|
script |
string | the current bit of script being evaluated. |
Returns:
true if this matcher can perform a Format replacement on the given string
- Type
- boolean
doFormat(script, formatContext, suggestError) → {string|Promise.<string>}
- Source:
- Implements:
Parameters:
| Name | Type | Description |
|---|---|---|
script |
string | the current bit of script being evaluated. This is the |
formatContext |
baja.Format~FormatContext | |
suggestError |
function | if this formatter is not capable of correctly formatting the |
Returns:
- Type
- string | Promise.<string>