this repo has no description
www.jonmsterling.com/01HC/
1// SPDX-FileCopyrightText: 2025 The Project Pterodactyl Developers
2//
3// SPDX-License-Identifier: MPL-2.0
4
5import Foundation
6import PterodactylSyntax
7import llbuild2fx
8
9extension Keys.Blob {
10 struct GetLineMap: BuildKey {
11 let blobId: LLBDataID
12
13 typealias ValueType = PterodactylSyntax.LineMap
14
15 static let versionDependencies: [any FXVersioning.Type] = [ReadContents.self]
16
17 func computeValue(_ ctx: BuildContext<Self>) async throws -> ValueType {
18 let code = try await ctx.request(ReadContents(blobId: blobId))
19 return PterodactylSyntax.LineMap(source: code)
20 }
21 }
22}