// SPDX-FileCopyrightText: 2025 The Project Pterodactyl Developers // // SPDX-License-Identifier: MPL-2.0 import Foundation import PterodactylSyntax import llbuild2fx extension Keys.Blob { struct GetLineMap: BuildKey { let blobId: LLBDataID typealias ValueType = PterodactylSyntax.LineMap static let versionDependencies: [any FXVersioning.Type] = [ReadContents.self] func computeValue(_ ctx: BuildContext) async throws -> ValueType { let code = try await ctx.request(ReadContents(blobId: blobId)) return PterodactylSyntax.LineMap(source: code) } } }