BracketedStacksToken

class BracketedStacksToken constructor(string: String, lineNumber: Int, position: Int, startOfTokenLinePosition: Int, moduleName: String) : RegionStacksToken

A stacks token representing a bracketed region in the comment. This region generally contains some sort of action such as a link.

Author

Richard Arriaga

Parameters

string

The string to be tokenized.

lineNumber

The line number where the token occurs/begins.

position

The absolute start position of the token.

startOfTokenLinePosition

The position on the line where the token starts.

moduleName

Throws

Constructors

Link copied to clipboard
constructor(string: String, lineNumber: Int, position: Int, startOfTokenLinePosition: Int, moduleName: String)

Construct a new BracketedStacksToken.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether this is a section (§) token.

Functions

Link copied to clipboard

Provide the token's string representation.

Link copied to clipboard
open override fun toJSON(linkingFileMap: LinkingFileMap, hashID: Int, errorLog: StacksErrorLog, jsonWriter: JSONWriter): String

Create JSON form of token.

Link copied to clipboard
open override fun toString(): String