Tagscript

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

Defined in

Interpreter/Context.ts:25

Properties

interpreter

interpreter: Interpreter

The interpreter parsing the TagScript.

Defined in

Interpreter/Context.ts:23


originalMessage

originalMessage: string

The original message passed to the interpreter.

Defined in

Interpreter/Context.ts:18


response

response: Response

Defined in

Interpreter/Context.ts:13


tag

tag: Lexer

The tag object representing a TagScript tag.

Defined in

Interpreter/Context.ts:11

Methods

toJSON()

toJSON(): object

Returns

object

interpreter

interpreter: Interpreter

originalMessage

originalMessage: string

response

response: Response

tag

tag: Lexer

Defined in

Interpreter/Context.ts:32

On this page