Files
swift-mirror/stdlib/tools/swift-lang/UIDs.swift.gyb
Saleem Abdulrasool 200b96df81 Revert "Revert "swift-lang: shuffle the source directory structure (NFC)""
This reverts commit beb8ecd8cc.  Add a
workaround for the dependency issue.

It is unclear why `sourcekitd` is getting added improperly as a
dependency on `lib/sourcekitd.framework/sourcekitd`.  This workaround
adjusts the dependency such that we end up with a dependency on
`lib/sourcekitd.framework/Versions/A/sourcekitd` as an order-only
dependency.  This should fix the compile issue.  I am unable to
reproduce this issue with the `add_library` usage for adding a Swift
library.  This allows us to cleave the host and target libraries, and so
the workaround is sufficient to make progress and the problem will be
resolved with the migration towards CMake for handling the dependencies.
2020-02-19 16:09:37 -08:00

38 lines
1.5 KiB
Swift

%{
# -*- mode: Swift -*-
from gyb_sourcekit_support.UIDs import UID_KEYS
from gyb_sourcekit_support.UIDs import UID_REQUESTS
from gyb_sourcekit_support.UIDs import UID_KINDS
# Ignore the following admonition; it applies to the resulting .swift file only
}%
//// Automatically Generated From UIDs.swift.gyb.
//// Do Not Edit Directly!
//===--------------- UIDs.swift - Sourcekitd UIDs in Swift ----------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
extension SourceKitdUID {
% for K in UID_KEYS:
public static let key_${K.internalName} = SourceKitdUID(string: "${K.externalName}")
% end
% for R in UID_REQUESTS:
public static let request_${R.internalName} = SourceKitdUID(string: "${R.externalName}")
% end
% for K in UID_KINDS:
public static let kind_${K.internalName} = SourceKitdUID(string: "${K.externalName}")
% end
public static let compilerCrashedNotification = SourceKitdUID(string: "notification.toolchain-compiler-crashed")
public static let source_notification_editor_documentupdate = SourceKitdUID(string: "source.notification.editor.documentupdate")
}