23 |
24 |
25 |
26 |
27 | 0006
28 |
32 | #import "sourcekitd.h"
33 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | ## siteify - Build a hyperlinked Web Site from project's Swift sources.
3 |
4 | Created as a means of testing SourceKit but useful more generally as a mean for browsing
5 | source code, `siteify` is a Swift program that creates a hyperlinked HTML reference of a
6 | project that can be built with the Swift Package Manager and be navigated in a Web Browser.
7 | Links over symbol references take you to their definition and clicking on the link on a definition
8 | will list links for the places the symbol is referenced.
9 |
10 | For example, the source of this project is available to browse [here](http://johnholdsworth.com/siteify/html/).
11 |
12 | 
13 |
14 | To use, download, and build this project using Xcode or Swift Package Manager. After the
15 | Xcode build completes, the binary is installed as `~/bin/siteify`. Using SPM, use
16 | `swift build` and copy `.build/debug/siteify` to `~/bin`.
17 |
18 | _cd_ into the root the SPM project you wish to document and run `swift build` in
19 | order to update its index then type `~/bin/siteify`. You'll need to download a recent
20 | development toolchain from [swift.org](https://swift.org/download/) to get the required
21 | `sourcekit-lsp` executable. `siteify` can take a command line argument which is
22 | the SPM repo to process but always places the generated html in the directory `html`
23 | created in the current working directory and opens the file `html/index.html`.
24 |
25 | ### SPM dependencies
26 |
27 | Having started as Xcode project, eventually I wanted to start using SPM dependencies
28 | so the project contains a script [pre-action.sh](pre-action.sh) which allows you to include
29 | SPM dependencies as frameworks during the transition.
30 |
31 | ### Customisation
32 |
33 | Siteify generates html files based on templates built into the app from the source
34 | [`Resources.swift`](siteify/Resouces.swift). Certain information about a file is patched
35 | in at the last minute using tags such as `\_\_ROOT\_\_`, `\_\_DATE\_\_`, `\_\_REPO\_\_`
36 | and, for individual source files , `\_\_CRDATE\_\_`, , `\_\_MDATE\_\_` along with the system
37 | `\_\_IMG\_\_` for that type of file. These templates are compiled into the application but
38 | can be overridden by placing your own HTML/CSS/JS templates in `~/Library/Siteify` for the
39 | styling you prefer.
40 |
41 | This project uses [ChimeHQ/SwiftLSPClient](https://github.com/ChimeHQ/SwiftLSPClient)
42 | under a `BSD 3-Clause "New" or "Revised" License"` to communicate with the
43 | [Apple LSP server](https://github.com/apple/sourcekit-lsp)
44 |
45 | ### MIT License
46 |
47 | Copyright (C) 2016 John Holdsworth
48 |
49 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
50 | documentation files (the "Software"), to deal in the Software without restriction, including without limitation
51 | the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
52 | and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
53 |
54 | The above copyright notice and this permission notice shall be included in all copies or substantial
55 | portions of the Software.
56 |
57 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
58 | LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
59 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
60 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
61 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
62 |
63 | This source includes a header file "sourcekit.h" from Apple's Swift Open Source distribution under Apache License v2.0 and a very old version of [canviz](http://www.ryandesign.com/canviz/) which allows you to render [graphviz](https://www.graphviz.org/) "dot" files of class inter-relationships if you have `/usr/local/bin/dot` installed and you view the generated files through a web server.
64 |
--------------------------------------------------------------------------------
/html/Package.swift__.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/checkouts/SourceKitHeader/Package.swift
4 |
5 |
6 |
7 | Source: .build/checkouts/SourceKitHeader/Package.swift (Return to Index )
8 |
9 | Initial Commit: Tue Jan 19 15:33:44 2016 -0800
10 | Last modified: Thu Dec 12 15:51:13 2019 +0100
35 |
36 |
37 |
38 |
39 |
40 | 0007
41 | import PackageDescription
43 |
44 | let package = Package (
45 | name : "SourceKitHeader"
46 | )
47 |
--------------------------------------------------------------------------------
/html/checkouts-state.json.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/repositories/checkouts-state.json
4 |
5 |
6 |
7 | Source: .build/repositories/checkouts-state.json (Return to Index )
8 |
9 | Initial Commit: Unknown
10 | Last modified: Unknown
0001
18 | {"object" : {"repositories" : {"https://github.com/ChimeHQ/SwiftLSPClient.git" : {"repositoryURL" : "https://github.com/ChimeHQ/SwiftLSPClient.git" , "status" : "available" , "subpath" : "SwiftLSPClient-4c3b2f8f" } , "https://github.com/johnno1962/GitInfo.git" : {"repositoryURL" : "https://github.com/johnno1962/GitInfo.git" , "status" : "available" , "subpath" : "GitInfo-d00586ea" } , "https://github.com/johnno1962/Parallel.git" : {"repositoryURL" : "https://github.com/johnno1962/Parallel.git" , "status" : "available" , "subpath" : "Parallel-c3fcf245" } , "https://github.com/johnno1962/SourceKitHeader.git" : {"repositoryURL" : "https://github.com/johnno1962/SourceKitHeader.git" , "status" : "available" , "subpath" : "SourceKitHeader-b57d81f4" } , "https://github.com/johnno1962/SwiftRegex5.git" : {"repositoryURL" : "https://github.com/johnno1962/SwiftRegex5.git" , "status" : "available" , "subpath" : "SwiftRegex5-73ecefb9" } } } , "version" : 1 }
--------------------------------------------------------------------------------
/html/ShowMessageParams.swift.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/Window/ShowMessageParams.swift
4 |
5 |
6 |
7 | Source: .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/Window/ShowMessageParams.swift (Return to Index )
8 |
9 | Initial Commit: Mon Sep 2 21:15:16 2019 -0400
10 | Last modified: Mon Sep 2 21:15:16 2019 -0400
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 | 0012
34 |
42 | import Foundation
43 |
44 | public typealias ShowMessageParams = LogMessageParams
45 |
--------------------------------------------------------------------------------
/html/Initialized.swift.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/General/Initialized.swift
4 |
5 |
6 |
7 | Source: .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/General/Initialized.swift (Return to Index )
8 |
9 | Initial Commit: Sun Nov 17 08:36:19 2019 -0500
10 | Last modified: Sun Nov 17 08:36:19 2019 -0500
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 | 0015
37 |
45 | import Foundation
46 |
47 | public struct InitializedParams : Codable {
48 | public init () {
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/html/Declaration.swift.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/Features/Declaration.swift
4 |
5 |
6 |
7 | Source: .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/Features/Declaration.swift (Return to Index )
8 |
9 | Initial Commit: Tue Sep 10 12:53:38 2019 -0400
10 | Last modified: Sat Nov 9 20:11:39 2019 -0500
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 | 0012
40 |
48 | import Foundation
49 |
50 | public typealias DeclarationResponse JSONRPCLanguageServer.swift:204 public func declaration(params: TextDocumentPositionParams, block: @escaping (LanguageServerResult<DeclarationResponse >) -> Void) { JSONRPCLanguageServer.swift:207 protocolTransport.sendRequest(params, method: method) { (result: ProtocolResponse<DeclarationResponse >) in LanguageServer.swift:65 func declaration(params: TextDocumentPositionParams, block: @escaping (LanguageServerResult<DeclarationResponse >) -> Void)
= TypeDefinitionResponse ?
51 |
--------------------------------------------------------------------------------
/html/Implementation.swift.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/Features/Implementation.swift
4 |
5 |
6 |
7 | Source: .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/Features/Implementation.swift (Return to Index )
8 |
9 | Initial Commit: Tue Sep 10 12:53:38 2019 -0400
10 | Last modified: Sat Nov 9 20:11:39 2019 -0500
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 | 0012
40 |
48 | import Foundation
49 |
50 | public typealias ImplementationResponse JSONRPCLanguageServer.swift:228 public func implementation(params: TextDocumentPositionParams, block: @escaping (LanguageServerResult<ImplementationResponse >) -> Void) { JSONRPCLanguageServer.swift:231 protocolTransport.sendRequest(params, method: method) { (result: ProtocolResponse<ImplementationResponse >) in LanguageServer.swift:68 func implementation(params: TextDocumentPositionParams, block: @escaping (LanguageServerResult<ImplementationResponse >) -> Void)
= TypeDefinitionResponse ?
51 |
--------------------------------------------------------------------------------
/html/Definition.swift.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/Features/Definition.swift
4 |
5 |
6 |
7 | Source: .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/Features/Definition.swift (Return to Index )
8 |
9 | Initial Commit: Tue Sep 10 12:53:38 2019 -0400
10 | Last modified: Sat Nov 9 20:11:39 2019 -0500
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 | 0012
40 |
48 | import Foundation
49 |
50 | public typealias DefinitionResponse JSONRPCLanguageServer.swift:212 public func definition(params: TextDocumentPositionParams, block: @escaping (LanguageServerResult<DefinitionResponse >) -> Void) { JSONRPCLanguageServer.swift:215 protocolTransport.sendRequest(params, method: method) { (result: ProtocolResponse<DefinitionResponse >) in Siteify.swift:504 func hyperlinkIdentifier(result: LanguageServerResult<DefinitionResponse >) { LanguageServer.swift:66 func definition(params: TextDocumentPositionParams, block: @escaping (LanguageServerResult<DefinitionResponse >) -> Void)
= TypeDefinitionResponse ?
51 |
--------------------------------------------------------------------------------
/html/MessageActionItem.swift.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/Window/MessageActionItem.swift
4 |
5 |
6 |
7 | Source: .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/Window/MessageActionItem.swift (Return to Index )
8 |
9 | Initial Commit: Mon Sep 2 21:15:16 2019 -0400
10 | Last modified: Mon Sep 2 21:15:16 2019 -0400
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | 0017
39 |
47 | import Foundation
48 |
49 | public struct MessageActionItem {
50 | public let title : String
51 | }
52 |
53 | extension MessageActionItem : Codable {
54 | }
55 |
--------------------------------------------------------------------------------
/html/SwiftRegex5.h.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/checkouts/SwiftRegex5/SwiftRegex5/SwiftRegex5.h
4 |
5 |
6 |
7 | Source: .build/checkouts/SwiftRegex5/SwiftRegex5/SwiftRegex5.h (Return to Index )
8 |
9 | Initial Commit: Thu Jul 26 17:51:41 2018 +0100
10 | Last modified: Thu Jul 26 17:51:41 2018 +0100
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | 0020
42 |
50 | #import <UIKit /UIKit .h >
51 |
52 | FOUNDATION_EXPORT double SwiftRegex4VersionNumber ;
54 |
55 | FOUNDATION_EXPORT const unsigned char SwiftRegex4VersionString [] ;
57 |
58 |
60 |
61 |
--------------------------------------------------------------------------------
/html/LanguageServerProtocol.h.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/checkouts/SwiftLSPClient/SwiftLSPClient/LanguageServerProtocol.h
4 |
5 |
6 |
7 | Source: .build/checkouts/SwiftLSPClient/SwiftLSPClient/LanguageServerProtocol.h (Return to Index )
8 |
9 | Initial Commit: Wed Nov 21 20:31:36 2018 -0500
10 | Last modified: Wed Nov 21 20:31:36 2018 -0500
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | 0020
42 |
50 | #import <Cocoa /Cocoa .h >
51 |
52 | FOUNDATION_EXPORT double SwiftLSPClientVersionNumber ;
54 |
55 | FOUNDATION_EXPORT const unsigned char SwiftLSPClientVersionString [] ;
57 |
58 |
60 |
61 |
--------------------------------------------------------------------------------
/html/Package.swift_.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/checkouts/Parallel/Package.swift
4 |
5 |
6 |
7 | Source: .build/checkouts/Parallel/Package.swift (Return to Index )
8 |
9 | Initial Commit: Wed Nov 27 09:21:49 2019 +0100
10 | Last modified: Thu Nov 28 09:41:30 2019 +0100
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 | 0018
46 |
49 | import PackageDescription
50 |
51 | let package = Package (
52 | name : "Parallel" ,
53 | platforms : [.macOS ("10.12" ), .iOS ("10.0" )] ,
54 | products : [
55 | .library (name : "Parallel" , targets : ["Parallel" ] ) ,
56 | ] ,
57 | dependencies : [] ,
58 | targets : [
59 | .target (name : "Parallel" , dependencies : [] , path : "Sources/" ) ,
60 | ]
62 | )
63 |
--------------------------------------------------------------------------------
/html/LocationLink.swift.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/LocationLink.swift
4 |
5 |
6 |
7 | Source: .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/LocationLink.swift (Return to Index )
8 |
9 | Initial Commit: Wed Feb 13 20:40:02 2019 -0500
10 | Last modified: Wed Feb 13 20:40:02 2019 -0500
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | 0020
42 |
50 | import Foundation
51 |
52 | public struct LocationLink {
53 | public let originSelectionRange : LSPRange ?
54 | public let targetUri : String
55 | public let targetRange : LSPRange
56 | public let targetSelectionRange : LSPRange
57 | }
58 |
59 | extension LocationLink : Codable {
60 | }
61 |
--------------------------------------------------------------------------------
/html/Package.swift___.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/checkouts/SwiftLSPClient/Package.swift
4 |
5 |
6 |
7 | Source: .build/checkouts/SwiftLSPClient/Package.swift (Return to Index )
8 |
9 | Initial Commit: Thu Aug 22 07:28:51 2019 -0400
10 | Last modified: Thu Aug 22 07:28:51 2019 -0400
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 | 0018
40 |
43 | import PackageDescription
44 |
45 | let package = Package (
46 | name : "SwiftLSPClient" ,
47 | platforms : [.macOS ("10.10" )] ,
48 | products : [
49 | .library (name : "SwiftLSPClient" , targets : ["SwiftLSPClient" ] ) ,
50 | ] ,
51 | dependencies : [] ,
52 | targets : [
53 | .target (name : "SwiftLSPClient" , dependencies : [] , path : "SwiftLSPClient/" ) ,
54 | .testTarget (name : "SwiftLSPClientTests" , dependencies : ["SwiftLSPClient" ] , path : "SwiftLSPClientTests/" ) ,
55 | ]
56 | )
57 |
--------------------------------------------------------------------------------
/html/Package.swift____.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/checkouts/SwiftRegex5/Package.swift
4 |
5 |
6 |
7 | Source: .build/checkouts/SwiftRegex5/Package.swift (Return to Index )
8 |
9 | Initial Commit: Thu Jul 26 17:51:41 2018 +0100
10 | Last modified: Sat Nov 30 17:47:44 2019 +0100
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 | 0019
53 |
58 | import PackageDescription
59 |
60 | let package = Package (
61 | name : "SwiftRegex" ,
62 | platforms : [.macOS ("10.10" ), .iOS ("10.0" ), .tvOS ("10.0" )] ,
63 | products : [
64 | .library (name : "SwiftRegex" , targets : ["SwiftRegex" ] ) ,
65 | ] ,
66 | dependencies : [] ,
67 | targets : [
68 | .target (name : "SwiftRegex" , dependencies : [] , path : "Sources/" ) ,
69 | ]
70 | )
71 |
--------------------------------------------------------------------------------
/html/MockProtocolTransportMessage.swift.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/checkouts/SwiftLSPClient/SwiftLSPClientTests/MockProtocolTransportMessage.swift
4 |
5 |
6 |
7 | Source: .build/checkouts/SwiftLSPClient/SwiftLSPClientTests/MockProtocolTransportMessage.swift (Return to Index )
8 |
9 | Initial Commit: Fri Feb 8 14:26:04 2019 -0500
10 | Last modified: Fri Feb 8 14:26:04 2019 -0500
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 | 0022
44 |
52 | import Foundation
53 | import SwiftLSPClient
54 |
55 | class MockProtocolTransportDelegate : ProtocolTransportDelegate {
56 | var notificationHandler : ((String , Data ) -> Void )?
57 |
58 | func transportReceived (_ transport : ProtocolTransport , undecodableData data : Data ) {
59 | }
60 |
61 | func transportReceived (_ transport : ProtocolTransport , notificationMethod : String , data : Data ) {
62 | notificationHandler ?(notificationMethod , data )
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/html/Package.swift.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/checkouts/GitInfo/Package.swift
4 |
5 |
6 |
7 | Source: .build/checkouts/GitInfo/Package.swift (Return to Index )
8 |
9 | Initial Commit: Mon Dec 2 13:12:43 2019 +0100
10 | Last modified: Mon Dec 2 14:07:11 2019 +0100
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | 0020
48 |
51 | import PackageDescription
52 |
53 | let package = Package (
54 | name : "GitInfo" ,
55 | platforms : [.macOS ("10.12" )] ,
56 | products : [
57 | .library (name : "GitInfo" , targets : ["GitInfo" ] ) ,
58 | ] ,
59 | dependencies : [
60 | .package (url : "https://github.com/johnno1962/Parallel.git" , .branch ("master" )) ,
61 | .package (url : "https://github.com/johnno1962/SwiftRegex5.git" , .branch ("master" )) ,
62 | ] ,
63 | targets : [
64 | .target (name : "GitInfo" , dependencies : ["Parallel" , "SwiftRegex" ] , path : "Sources/" ) ,
65 | ]
66 | )
67 |
--------------------------------------------------------------------------------
/html/JSONRPC+Helpers.swift.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/checkouts/SwiftLSPClient/SwiftLSPClientTests/JSONRPC+Helpers.swift
4 |
5 |
6 |
7 | Source: .build/checkouts/SwiftLSPClient/SwiftLSPClientTests/JSONRPC+Helpers.swift (Return to Index )
8 |
9 | Initial Commit: Thu Oct 31 07:35:02 2019 -0400
10 | Last modified: Thu Oct 31 07:35:02 2019 -0400
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 | 0031
53 |
61 | import Foundation
62 | import SwiftLSPClient
63 |
64 | protocol ProtocolEncodable : Encodable {
65 | }
66 |
67 | extension ProtocolEncodable {
68 | func encodeToProtocolData () throws -> Data {
69 | let payloadData = try JSONEncoder () .encode (self )
70 |
71 | return MessageTransport .prependHeaders (to : payloadData )
72 | }
73 | }
74 |
75 | extension JSONRPCResultResponse : ProtocolEncodable {
76 | }
77 |
78 | extension JSONRPCNotificationParams : ProtocolEncodable {
79 | }
80 |
81 | extension JSONRPCRequest : ProtocolEncodable {
82 | }
83 |
--------------------------------------------------------------------------------
/html/LogMessageParams.swift.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/Window/LogMessageParams.swift
4 |
5 |
6 |
7 | Source: .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/Window/LogMessageParams.swift (Return to Index )
8 |
9 | Initial Commit: Mon Sep 2 21:15:16 2019 -0400
10 | Last modified: Mon Sep 2 21:15:16 2019 -0400
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 | 0021
43 |
51 | import Foundation
52 |
53 | public struct LogMessageParams : Codable {
54 | public let type : MessageType
55 | public let message : String
56 | }
57 |
58 | extension LogMessageParams : CustomStringConvertible {
59 | public var description : String {
60 | return " \( type ) : \( message ) "
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/html/WorkspaceFolder.swift.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/WorkspaceFolder.swift
4 |
5 |
6 |
7 | Source: .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/WorkspaceFolder.swift (Return to Index )
8 |
9 | Initial Commit: Thu Feb 7 11:31:05 2019 -0500
10 | Last modified: Thu Feb 7 11:31:05 2019 -0500
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 | 0022
44 |
52 | import Foundation
53 |
54 | public struct WorkspaceFolder Initialization.swift:24 public let workspaceFolders: [WorkspaceFolder ]? Initialization.swift:26 public init(processId: Int, rootPath: String?, rootURI: DocumentUri?, initializationOptions: JSONValue?, capabilities: ClientCapabilities, trace: Tracing?, workspaceFolders: [WorkspaceFolder ]?) { Siteify.swift:93 let workspace = WorkspaceFolder (uri: self.projectRoot.absoluteString, name: "siteify") WorkspaceFolder.swift:21 typealias WorkspaceFolderResult = [WorkspaceFolder ]?
: Codable {
55 | public let uri : String
56 | public let name : String
57 |
58 | public init (uri : String , name : String ) {
59 | self .uri = uri
60 | self .name = name
61 | }
62 | }
63 |
64 | typealias WorkspaceFolderResult = [WorkspaceFolder ]?
65 |
--------------------------------------------------------------------------------
/html/Location.swift.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/Location.swift
4 |
5 |
6 |
7 | Source: .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/Location.swift (Return to Index )
8 |
9 | Initial Commit: Sun Jan 27 14:59:55 2019 -0500
10 | Last modified: Sat Oct 26 20:43:04 2019 +0200
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | 0021
49 |
57 | import Foundation
58 |
59 | public struct Location {
60 | public let uri : DocumentUri
61 | public let range : LSPRange
62 | }
63 |
64 | extension Location : Codable {
65 | }
66 |
67 | extension Location : Hashable {
68 | }
69 |
--------------------------------------------------------------------------------
/html/DataTransport.swift.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/checkouts/SwiftLSPClient/SwiftLSPClient/JSONRPC/DataTransport.swift
4 |
5 |
6 |
7 | Source: .build/checkouts/SwiftLSPClient/SwiftLSPClient/JSONRPC/DataTransport.swift (Return to Index )
8 |
9 | Initial Commit: Wed Nov 21 20:31:36 2018 -0500
10 | Last modified: Thu Dec 13 11:35:30 2018 -0500
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 | 0019
47 |
55 | import Foundation
56 |
57 | public protocol DataTransport {
58 | typealias ReadHandler = (Data ) -> Void
59 |
60 | func write (_ data : Data )
61 | func setReaderHandler (_ handler : @escaping ReadHandler )
62 |
63 | func close ()
64 | }
65 |
--------------------------------------------------------------------------------
/html/ShowMessageRequest.swift.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/Window/ShowMessageRequest.swift
4 |
5 |
6 |
7 | Source: .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/Window/ShowMessageRequest.swift (Return to Index )
8 |
9 | Initial Commit: Mon Sep 2 21:15:16 2019 -0400
10 | Last modified: Mon Sep 2 21:15:16 2019 -0400
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 | 0025
47 |
55 | import Foundation
56 |
57 | public struct ShowMessageRequestParams {
58 | public let type : MessageType
59 | public let message : String
60 | public let actions : [MessageActionItem ]?
61 | }
62 |
63 | extension ShowMessageRequestParams : Codable {
64 | }
65 |
66 | extension ShowMessageRequestParams : CustomStringConvertible {
67 | public var description : String {
68 | return " \( type ) : \( message ) "
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/html/Package.swift_____.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Package.swift
4 |
5 |
6 |
7 | Source: Package.swift (Return to Index )
8 |
9 | Initial Commit: Mon Oct 28 22:45:11 2019 +0100
10 | Last modified: Thu Dec 12 16:11:48 2019 +0100
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 | 0022
74 |
77 | import PackageDescription
78 |
79 | let package = Package (
80 | name : "siteify" ,
81 | platforms : [.macOS ("10.12" )] ,
82 | products : [
83 | .executable (name : "siteify" , targets : ["siteify" ] ) ,
84 | ] ,
85 | dependencies : [
86 | .package (url : "https://github.com/johnno1962/SourceKitHeader.git" , .branch ("master" )) ,
87 | .package (url : "https://github.com/johnno1962/Parallel.git" , .branch ("master" )) ,
88 | .package (url : "https://github.com/johnno1962/GitInfo.git" , .branch ("master" )) ,
89 | .package (url : "https://github.com/ChimeHQ/SwiftLSPClient.git" , .branch ("master" )) ,
90 | ] ,
91 | targets : [
92 | .target (name : "siteify" , dependencies : ["SwiftLSPClient" , "Parallel" , "GitInfo" ] , path : "siteify/" ) ,
93 | ]
94 | )
95 |
--------------------------------------------------------------------------------
/html/MessageType.swift.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/Window/MessageType.swift
4 |
5 |
6 |
7 | Source: .build/checkouts/SwiftLSPClient/SwiftLSPClient/Types/Window/MessageType.swift (Return to Index )
8 |
9 | Initial Commit: Mon Sep 2 21:15:16 2019 -0400
10 | Last modified: Mon Sep 2 21:15:16 2019 -0400
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 | 0032
54 |
62 | import Foundation
63 |
64 | public enum MessageType : Int , Codable {
65 | case error = 1
66 | case warning = 2
67 | case info = 3
68 | case log = 4
69 | }
70 |
71 | extension MessageType : CustomStringConvertible {
72 | public var description : String {
73 | switch self {
74 | case .error :
75 | return "error"
76 | case .warning :
77 | return "warning"
78 | case .info :
79 | return "info"
80 | case .log :
81 | return "log"
82 | }
83 | }
84 | }
85 |
--------------------------------------------------------------------------------