init()

in Sources/SwiftDocC/Indexing/Navigator/NavigatorIndex.swift [271:304]


        init(roleHeading: String) {
            switch roleHeading.lowercased() {
            case "framework": self = .framework
            case "class": self = .class
            case "structure": self = .structure
            case "protocol": self = .protocol
            case "enumeration": self = .enumeration
            case "function": self = .function
            case "extension": self = .extension
            case "local variable": self = .localVariable
            case "global variable": self = .globalVariable
            case "type alias": self = .typeAlias
            case "associated type": self = .associatedType
            case "operator": self = .operator
            case "macro": self = .macro
            case "union": self = .union
            case "enumeration case": self = .enumerationCase
            case "initializer", "init": self = .initializer
            case "instance method": self = .instanceMethod
            case "instance property": self = .instanceProperty
            case "instance variable": self = .instanceVariable
            case "subscript": self = .subscript
            case "type method": self = .typeMethod
            case "type property": self = .typeProperty
            case "property": self = .instanceProperty
            case "sample code": self = .sampleCode
            case "build setting": self = .buildSetting
            case "property list key": self = .propertyListKey
            case "property list key reference": self = .propertyListKeyReference
            case "web service endpoint": self = .httpRequest
            case "dictionary symbol": self = .dictionarySymbol
            default:self = .symbol // Generic Symbol.
            }
        }