Bug fix and start improvements to subclassing.

This commit is contained in:
gmp
2019-05-24 00:12:46 -04:00
parent a616761475
commit 38c7856b89
5 changed files with 41 additions and 8 deletions
+2 -2
View File
@@ -216,8 +216,8 @@ func Start() (err error) {
case *ast.ObjCInterfaceDecl:
w.AddInterface(x)
for _,ss := range Config.Subclasses {
for ps,_ := range ss {
if matches(x.Name,[]string{ps}) {
if sc,ok := ss["superclass"]; ok {
if matches(x.Name,sc) {
Config.Classes = append(Config.Classes,x.Name)
}
}