Skip Navigation
Type MethodMethod

qualifiedSymbolName(ofIdentifier:)

Returns the qualified name of a symbol, such as Module.Type, from its reference.

static func qualifiedSymbolName(ofIdentifier identifier: String) -> String?

Parameters

identifier

The reference identifier of the symbol.

Return Value

The module and symbol names joined by periods, or nil if the identifier has no documentation path.

Discussion

This is how DocC names a related type it cannot resolve; disambiguation suffixes of the path, such as -swift.struct, are left out.