MarcoEidinger / SwiftPlantUML

A command-line tool and Swift Package for generating class diagrams powered by PlantUML

Home Page:https://marcoeidinger.github.io/SwiftPlantUML/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect relationship label when protocol is not scanned first

MarcoEidinger opened this issue · comments

If subclasses and/or extensions are scanned before their parent class then the class diagram gets generated incorrectly.

Example

class aClass: aProtocol {
    var computedProperty: String { "" }
    func aFunction() {}
}

protocol aProtocol {
    func aProtFunction() {}
}

Current (unexpected) output

protocolNotFirst

Expected output

protocolFirst