1// SPDX-FileCopyrightText: 2025 The Project Pterodactyl Developers 2// 3// SPDX-License-Identifier: MPL-2.0 4 5import Foundation 6 7public struct Token: Codable, Equatable { 8 public let kind: TokenKind 9 public let text: String 10 public let utf16Length: Int 11 12 public init(kind: TokenKind, text: String) { 13 self.kind = kind 14 self.text = text 15 self.utf16Length = text.utf16.count 16 } 17} 18 19extension Token: Sendable {}