Initializer
init(text:kind:identifier:preciseIdentifier:highlight:)
Creates a new declaration token with optional identifier and precise identifier.
init(text: String, kind: DeclarationRenderSection.Token.Kind, identifier: String? = nil, preciseIdentifier: String? = nil, highlight: DeclarationRenderSection.Token.Highlight? = nil)
Parameters
textThe text content of the token.
kindThe kind of the token.
identifierIf the token refers to a known symbol, its identifier.
preciseIdentifierIf the refers to a symbol, its precise identifier.