Mockingbird Documentation 0.15.0

Function parse​Mangled​Swift​Symbol(_:​is​Type:​)

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

mangled String

the string to be parsed ("isType` is false, the string should start with a Swift Symbol prefix, _T, _$S or $S).

is​Type 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