File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -144,11 +144,3 @@ struct ModuleDependencyGraph: Codable {
144
144
/// Information about the main module.
145
145
var mainModule : ModuleDependencies { modules [ . swift( mainModuleName) ] ! }
146
146
}
147
-
148
- let fileName = CommandLine . arguments [ 1 ]
149
- let data = try ! Data ( contentsOf: URL ( fileURLWithPath: fileName) )
150
-
151
- let decoder = JSONDecoder ( )
152
- let moduleDependencyGraph = try ! decoder. decode (
153
- ModuleDependencyGraph . self, from: data)
154
- print ( moduleDependencyGraph)
Original file line number Diff line number Diff line change
1
+ import Foundation
2
+
3
+ let fileName = CommandLine . arguments [ 1 ]
4
+ let data = try ! Data ( contentsOf: URL ( fileURLWithPath: fileName) )
5
+
6
+ let decoder = JSONDecoder ( )
7
+ let moduleDependencyGraph = try ! decoder. decode (
8
+ ModuleDependencyGraph . self, from: data)
9
+ print ( moduleDependencyGraph)
Original file line number Diff line number Diff line change 11
11
// Check that the JSON parses correctly into the canonical Swift data
12
12
// structures.
13
13
14
- // RUN: %target-build-swift %S/Inputs/ModuleDependencyGraph.swift -o %t/main
14
+ // RUN: mkdir -p %t/PrintGraph
15
+ // RUN: cp %S/Inputs/PrintGraph.swift %t/main.swift
16
+ // RUN: %target-build-swift %S/Inputs/ModuleDependencyGraph.swift %t/main.swift -o %t/main
15
17
// RUN: %target-codesign %t/main
16
18
// RUN: %target-run %t/main %t/deps.json
17
19
You can’t perform that action at this time.
0 commit comments