Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ITokenNode

Represents a matched Argdown token in the abstract syntax tree produced by the ParserPlugin.

Hierarchy

Index

Properties

Optional data

data: any

Optional endColumn

endColumn: undefined | number

Column of the last character of the Token.

Optional endLine

endLine: undefined | number

Line of the last character of the Token.

Optional endOffset

endOffset: undefined | number

Offset of the last character of the Token.

image

image: string

The textual representation of the Token as it appeared in the text.

Optional isInsertedInRecovery

isInsertedInRecovery: undefined | false | true

this marks if a Token does not really exist and has been inserted "artificially" during parsing in rule error recovery.

Optional ranges

ranges: IRange[]

Optional startColumn

startColumn: undefined | number

Column of the first character of the Token.

Optional startLine

startLine: undefined | number

Line of the first character of the Token.

startOffset

startOffset: number

Offset of the first character of the Token.

Optional tag

tag: undefined | string

Optional text

text: undefined | string

Optional title

title: undefined | string

Optional tokenType

tokenType: TokenType

The actual Token Type of this Token "instance" This is the same Object returned by the "createToken" API. This property is very useful for debugging the Lexing and Parsing phases.

Optional tokenTypeIdx

tokenTypeIdx: undefined | number

An number index representing the type of the Token use to get the Token Type from a token "instance"

Optional trailingWhitespace

trailingWhitespace: undefined | string

Optional url

url: undefined | string

Generated using TypeDoc