TypeDoc API
TagScript
classes
Context

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

constructor

new Context(tag, response, interpreter, originalMessage)

Parameters

NameType
tagLexer
responseResponse
interpreterInterpreter
originalMessagestring

Properties

interpreter

interpreter: Interpreter

The interpreter parsing the TagScript.


originalMessage

originalMessage: string

The original message passed to the interpreter.


response

response: Response


tag

tag: Lexer

The tag object representing a TagScript tag.

Methods

toJSON

toJSON(): Object

Returns

Object

NameType
interpreterInterpreter
originalMessagestring
responseResponse
tagLexer