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