Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic classes derived from other generic classes do not draw their relationship #25

Open
jaouahbi opened this issue Apr 11, 2019 · 1 comment

Comments

@jaouahbi
Copy link

Generic classes derived from other generic classes do not draw their relationship

Example:
protocol ProtocolF {
associatedtype T
var b1: T? { get }
}

class ClassF<Type,TypeB,TypeC> : ProtocolF {
var b1: Type?
var b2: TypeB?
var b3: TypeC?
}

class ClassG<Type,TypeB,TypeC,TypeD>: ClassF<Type,TypeB,TypeC> {
var b5: Type?
var b6: TypeB?
var b7: TypeC?
var b8: TypeD?
}

output-onlinepngtools (1)

@jaouahbi
Copy link
Author

The problems is in allEntities(codeString)
The regex /(?(class|struct|protocol|enum))\s+(?!(var|open|public|internal|fileprivate|private|func))(?\w+)(?(<.>)?)(?([^{])?)(?{(?>[^{}]|\g)*})/
return a empty inheritancePart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant