Function parseMangledSwiftSymbol(_:isType:symbolicReferenceResolver:)
public func parseMangledSwiftSymbol<C: Collection>(_ mangled: C, isType: Bool = false, symbolicReferenceResolver: ((Int32, Int) throws -> SwiftSymbol)? = nil) throws -> SwiftSymbol where C.Iterator.Element == UnicodeScalar
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.
Parameters
Name | Type | Description |
---|---|---|
mangled | C |
the collection of |
isType | Bool |
if true, no prefix is parsed and, on completion, the first item on the parse stack is returned. |
Throws
a SwiftSymbolParseError error that contains parse position when the error occurred.
Returns
the successfully parsed result