Function parseMangledSwiftSymbol(_:isType:)
public func parseMangledSwiftSymbol(_ mangled: String, isType: Bool = false) throws -> SwiftSymbol
This is likely to be the primary entry point to this file. Pass a string 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 | String |
the string to be parsed ("isType` is false, the string should start with a Swift Symbol prefix, _T, _$S or $S). |
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