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

No access level indicator for fileprivate members

MarcoEidinger opened this issue · comments

Members do not show an access level indicator if they have fileprivate access level

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

fileprivate extension aClass {
    var extComputedProperty: String { "" }
    func extFunction()
}

Current (unexpected) output

@startuml
' STYLE START
hide empty members
skinparam shadowing false
' STYLE END


class "aClass" as aClass << (C, DarkSeaGreen) >> { 
  ~computedProperty : String
  ~aFunction() 
}
class "aClass" as aClass0 << (X, Orchid) extension >> { 
  extComputedProperty : String
  extFunction() 
}

aClass <.. aClass0 : ext
@enduml

Expected output

@startuml
' STYLE START
hide empty members
skinparam shadowing false
' STYLE END


class "aClass" as aClass << (C, DarkSeaGreen) >> { 
  ~computedProperty : String
  ~aFunction() 
}
class "aClass" as aClass0 << (X, Orchid) extension >> { 
  -extComputedProperty : String
  -extFunction() 
}

aClass <.. aClass0 : ext
@enduml