Skip to content

Commit 3126e4e

Browse files
committed
Quick refactors
1 parent 34c5fa9 commit 3126e4e

File tree

7 files changed

+7
-8
lines changed

7 files changed

+7
-8
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ let package = Package(
5252
dependencies: ["Get", "Transmute", "Build", "Multitool"]),
5353
Target(
5454
name: "swift-test",
55-
dependencies: ["Multitool", "ASTParser"]),
55+
dependencies: ["Multitool", "ASTParser"]),
5656
])
5757

5858

Sources/ASTParser/generate().swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ private func writeXCTestMain(testModules: [TestModule], path: String) throws {
8888
}
8989

9090
try fputs("])\n\n", file)
91-
}
91+
}

Sources/ASTParser/parseAST().swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,3 @@ public func parseAST(dir: String) throws -> [TestModule] {
3333

3434
return testModules
3535
}
36-

Sources/ASTParser/parser.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,4 @@ private extension String {
105105
guard let secondIndex = choppedString.characters.indexOf(char) else { return nil }
106106
return choppedString[choppedString.startIndex..<secondIndex]
107107
}
108-
}
108+
}

Sources/Build/describe().swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import Utility
1717
- Returns: path to generated YAML for consumption by the llbuild based swift-build-tool
1818
*/
1919
public func describe(prefix: String, _ conf: Configuration, _ modules: [Module], _ products: [Product], Xcc: [String], Xld: [String], Xswiftc: [String]) throws -> String {
20-
20+
2121
guard modules.count > 0 else {
2222
throw Error.NoModules
2323
}

Sources/swift-test/main.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
import func libc.setenv
1212
import func libc.exit
13-
import ASTParser
14-
import Utility
1513
import Multitool
14+
import Utility
15+
import ASTParser
1616

1717
// Initialize the resource support.
1818
public var globalSymbolInMainBinary = 0

Utilities/bootstrap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ targets = [
193193
Target('Build', dependencies=["PackageType", "Utility", "PackageDescription", "POSIX", "libc"]),
194194
Target('ASTParser', dependencies=["Utility", "POSIX", "libc"]),
195195
Target('swift-build', dependencies=["Transmute", "Multitool", "Build", "Get", "ManifestParser", "PackageDescription", "PackageType", "Utility", "POSIX", "libc"]),
196-
Target('swift-test', dependencies=["Multitool", "PackageType","ASTParser", "PackageDescription", "Utility", "POSIX", "libc"]),
196+
Target('swift-test', dependencies=["Multitool", "PackageType", "ASTParser", "PackageDescription", "Utility", "POSIX", "libc"]),
197197
]
198198
target_map = dict((t.name, t) for t in targets)
199199

0 commit comments

Comments
 (0)