SwiftDocCDeclarationRenderSectionDeclarationRenderSection.TokenStructureDeclarationRenderSection.TokenA lexical token to use in declarations.struct TokenDiscussionA lexical token is a string with an associated meaning in source code. For example, 123 is represented as a single token of kind “number”.TopicsInitializersinit(from: any Decoder) throwsinit(text: String, kind: DeclarationRenderSection.Token.Kind, identifier: String?, preciseIdentifier: String?, highlight: DeclarationRenderSection.Token.Highlight?)Creates a new declaration token with optional identifier and precise identifier.Instance Propertiesvar highlight: DeclarationRenderSection.Token.Highlight?The kind of highlight the token should be rendered with.let identifier: String?If the token is a known symbol, its identifier.let kind: DeclarationRenderSection.Token.KindThe token programming kind.let preciseIdentifier: String?If the token is a known symbol, its precise identifier as vended in the symbol graph.var text: StringThe token text content.Instance Methodsfunc encode(to: any Encoder) throwsEnumerationsenum HighlightThe kinds of highlights that can be applied to a token.enum KindThe list of all expected tokens in a declaration.