A message parse tree node. Every parse tree node can be converted to a string (top to bottom). With that nested plugin or macro calls are only being evaluated if the plugin above them doesn't early exit. It also allows to create dynamically new macros in a plugin up in the parse tree for its children (pluginContent).

There are 3 types of nodes:

  1. Text: Then content contains a pure string.
  2. Plugin: Then there is a plugin name, and optional a value or content
  3. Children: Then there is a list of child nodes.

Hierarchy

  • ParseTreeNode

Properties

children?: ParseTreeNode[]
content?: string
originalString: string
pluginContent?: ParseTreeNode
pluginName?: string
pluginValue?: ParseTreeNode
type: "text" | "children" | "plugin"

Generated using TypeDoc