Closed jaouahbi closed 5 years ago
This commit break the extensions
https://github.com/yoshimkd/swift-auto-diagram/commit/546c42a95c51423a2a3ad257f199a39136b99def
the old one regular expression works fine with extensions.
extensionRegex = /extension\s+(?!(var|open|public|internal|fileprivate|private|func))(?
Hello @jaouahbi,
Thank you for your interest in the project and reporting this issue. I committed a fix for it on master
: https://github.com/yoshimkd/swift-auto-diagram/commit/ddaf2c4320fbeb5cddbfd0f2822fe6fc85d4ed9c. Let me know if this fixes the problem for you as well.
Best Regards, Jovan
Works perfect, btw i have found other errors, when I manage to reproduce them correctly and locate their source, I will let you know
I have created a demo project with a extension of AppDelegate and some other classes and its extensions, and the script don't show the extensions.
extension AppDelegate {
}
class ClassA0 {
}
class ClassA1 : ClassA0 {
}
class ClassB1 {
}
class ClassC1 : ClassA1 { override func doItInBase() -> Bool { return super.doItInBase() }
}
extension ClassA0 {
}
extension ClassA1 {
}
extension ClassA1 {
}
extension ClassB1 {
}
extension ClassB1 {
}
Command used: ruby generateEntityDiagram.rb -v /swift-auto-diagram_bug/swift-auto-diagram_bug
Output: