Skip to content

Commit 17ed2be

Browse files
authored
Merge pull request #14 from MxIris-Reverse-Engineering/optimize/protocol-requirement-signature
Align with the original Demangler
2 parents bca86ee + 79dc2e7 commit 17ed2be

File tree

18 files changed

+379
-214
lines changed

18 files changed

+379
-214
lines changed

Package.resolved

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ let package = Package(
115115
.package(url: "https://github.com/p-x9/swift-fileio.git", from: "0.9.0"),
116116
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.5.1"),
117117
.package(url: "https://github.com/onevcat/Rainbow", from: "4.0.0"),
118+
.package(url: "https://github.com/Mx-Iris/FrameworkToolbox", from: "0.3.0"),
118119
],
119120
targets: [
120121
.target(
@@ -125,6 +126,7 @@ let package = Package(
125126
name: "Demangle",
126127
dependencies: [
127128
"Semantic",
129+
.product(name: "FoundationToolbox", package: "FrameworkToolbox"),
128130
]
129131
),
130132

Sources/Demangle/Main/Demangler.swift

Lines changed: 69 additions & 32 deletions
Large diffs are not rendered by default.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import Foundation
2+
import FoundationToolbox
3+
4+
extension Node {
5+
package convenience init(kind: Kind, contents: Contents = .none, @ArrayBuilder<Node> childrenBuilder: () -> [Node]) {
6+
self.init(kind: kind, contents: contents, children: childrenBuilder())
7+
}
8+
}

0 commit comments

Comments
 (0)