Files
sourcekit-lsp/Sources/SKTestSupport/TextDocumentIdentifier+URI.swift
Ben Langmuir 8a88e9d5f2 [gardening] Changes per review
* Rename Extensions.swift
* Move import where it is used
2019-11-20 09:41:48 -08:00

27 lines
764 B
Swift

//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2019 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
//
//===----------------------------------------------------------------------===//
import LanguageServerProtocol
import TSCBasic
public extension TextDocumentIdentifier {
init(_ url: URL) {
self.init(DocumentURI(url))
}
}
public extension AbsolutePath {
var asURI: DocumentURI {
return DocumentURI(asURL)
}
}