Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ let package = Package(
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.5.1"),
.package(url: "https://github.com/onevcat/Rainbow", from: "4.0.0"),
.package(url: "https://github.com/Mx-Iris/FrameworkToolbox", from: "0.3.0"),
.package(url: "https://github.com/apple/swift-collections", from: "1.2.0"),
.package(url: "https://github.com/MxIris-Library-Forks/swift-memberwise-init-macro", from: "0.5.3-fork"),
],
targets: [
.target(
Expand All @@ -125,11 +127,14 @@ let package = Package(
.target(
name: "Demangle",
dependencies: [
"Semantic",
.product(name: "FoundationToolbox", package: "FrameworkToolbox"),
]
),

.target(
name: "Utilities"
),

.target(
name: "MachOExtensions",
dependencies: [
Expand All @@ -156,6 +161,8 @@ let package = Package(
"MachOReading",
"MachOMacro",
"Demangle",
"Utilities",
.product(name: "OrderedCollections", package: "swift-collections"),
]
),

Expand All @@ -165,7 +172,6 @@ let package = Package(
.MachOKit,
"MachOReading",
"MachOMacro",
"MachOSymbols",
]
),

Expand All @@ -177,6 +183,7 @@ let package = Package(
"MachOExtensions",
"MachOMacro",
"MachOPointer",
"MachOSymbols",
]
),

Expand All @@ -187,6 +194,7 @@ let package = Package(
"Demangle",
"MachOFoundation",
"MachOMacro",
.product(name: "MemberwiseInit", package: "swift-memberwise-init-macro")
]
),

Expand All @@ -206,6 +214,8 @@ let package = Package(
.MachOKit,
"MachOSwiftSection",
"Semantic",
"Utilities",
.product(name: "OrderedCollections", package: "swift-collections"),
]
),

Expand Down
6 changes: 2 additions & 4 deletions Sources/Demangle/Interface.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
/// - isType: if true, no prefix is parsed and, on completion, the first item on the parse stack is returned.
/// - Returns: the successfully parsed result
/// - Throws: a SwiftSymbolParseError error that contains parse position when the error occurred.
package func demangleAsNode(_ mangled: String, isType: Bool = false) throws -> Node {
return try demangleAsNode(mangled.unicodeScalars, isType: isType)
package func demangleAsNode(_ mangled: String, isType: Bool = false, symbolicReferenceResolver: SymbolicReferenceResolver? = nil) throws -> Node {
return try demangleAsNode(mangled.unicodeScalars, isType: isType, symbolicReferenceResolver: symbolicReferenceResolver)
}

/// Pass a collection of `UnicodeScalars` containing a Swift mangled symbol or type, get a parsed SwiftSymbol structure which can then be directly examined or printed.
Expand All @@ -27,5 +27,3 @@ package func demangleAsNode<C: Collection>(_ mangled: C, isType: Bool = false, s
return try demangler.demangleSwift3TopLevelSymbol()
}
}


22 changes: 0 additions & 22 deletions Sources/Demangle/Main/Node/Node+CustomStringConvertible.swift

This file was deleted.

247 changes: 0 additions & 247 deletions Sources/Demangle/Main/Node/Node.swift

This file was deleted.

Loading