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

new Context()

new Context(tag, response, interpreter, originalMessage): Context

Parameters

tag: Lexer

response: Response

interpreter: Interpreter

originalMessage: string

Returns

Context

Source

lib/Interpreter/Context.ts:25

Properties

interpreter

interpreter: Interpreter

The interpreter parsing the TagScript.

Source

lib/Interpreter/Context.ts:23


originalMessage

originalMessage: string

The original message passed to the interpreter.

Source

lib/Interpreter/Context.ts:18


response

response: Response

Source

lib/Interpreter/Context.ts:13


tag

tag: Lexer

The tag object representing a TagScript tag.

Source

lib/Interpreter/Context.ts:11

Methods

toJSON()

toJSON(): object

Returns

object

interpreter

interpreter: Interpreter

originalMessage

originalMessage: string

response

response: Response

tag

tag: Lexer

Source

lib/Interpreter/Context.ts:32