Token

fun <out T> Token(type: T, section: Section? = null)

Creates a token with a given type and (optionally) a section.

Parameters

T

The type of the token.

type

The type of the token.

section

The section of the token.