Class: FunctionTransformer
Transformers are used to transform a value based on the tag at runtime.
Implements
Constructors
constructor
• new FunctionTransformer(fn)
Parameters
| Name | Type |
|---|---|
fn | TransformerFunction |
Properties
fn
• Private Readonly fn: TransformerFunction
Methods
transform
▸ transform(tag): string
Transforms the given tag.
Parameters
| Name | Type | Description |
|---|---|---|
tag | Lexer | The tag that triggered the transformer. |
Returns
string