Class: Context
An object containing data of the TagScript tag processed by the interpreter. This class is passed to transformers and parsers during parsing.
Constructors
new Context()
new Context(tag
, response
, interpreter
, originalMessage
): Context
Parameters
• tag: Lexer
• response: Response
• interpreter: Interpreter
• originalMessage: string
Returns
Defined in
Properties
interpreter
interpreter: Interpreter
The interpreter parsing the TagScript.
Defined in
originalMessage
originalMessage: string
The original message passed to the interpreter.
Defined in
response
response: Response
Defined in
tag
tag: Lexer
The tag object representing a TagScript tag.
Defined in
Methods
toJSON()
toJSON(): object
Returns
object
interpreter
interpreter: Interpreter
originalMessage
originalMessage: string
response
response: Response
tag
tag: Lexer