gram_ast.taggedtextliteral


gram.js API

Globals / gram-ast / TaggedTextLiteral

Interface: TaggedTextLiteral

Represents a string value with a format indicated by a “tag”.

Some well-known tags:

  • md\# Hello World``
  • html\<h1>Hello World</h1>``
  • date\2020-07-14```
  • time\17:35:42``
  • uri\https://gram-data.github.io`
  • wkt\POINT(-83.123 42.123)``

see Wikipedia Template literals

Hierarchy

Indexable

▪ [key: string]: unknown

Represents a string value with a format indicated by a “tag”.

Some well-known tags:

  • md\# Hello World``
  • html\<h1>Hello World</h1>``
  • date\2020-07-14```
  • time\17:35:42``
  • uri\https://gram-data.github.io`
  • wkt\POINT(-83.123 42.123)``

see Wikipedia Template literals

Index

Properties

Properties

data

Optional data: Data

Inherited from GramSeq.data

Defined in packages/gram-ast/node_modules/@types/unist/index.d.ts:23

Information from the ecosystem.


position

Optional position: Position

Inherited from GramSeq.position

Defined in packages/gram-ast/node_modules/@types/unist/index.d.ts:29

Location of a node in a source document. Must not be present if a node is generated.


tag

tag: string

Defined in packages/gram-ast/src/index.ts:456

The tag prefix of the string value.


type

type: "tagged"

Overrides void

Defined in packages/gram-ast/src/index.ts:451


value

value: string

Inherited from StringLiteral.value

Overrides void

Defined in packages/gram-ast/src/index.ts:277