File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -82,13 +82,16 @@ func (sch *Schema) resolveNameCollisions() {
82
82
for _ , l := range elementsByName {
83
83
if len (l ) > 1 {
84
84
// Found elements that have duplicate name
85
- fmt .Printf ("\n - resolving name collision: %s" , l [0 ].GoName ())
85
+ // TODO: resolve the name collisions more intelligently here.
86
+ // TODO: Needs to compare parent name for all the collisions and potentially use grand parent
87
+ fmt .Printf ("\n - TODO: resolving name collision: %s" , l [0 ].GoName ())
86
88
for idx := range l {
87
89
el := l [idx ]
88
90
el .prefixNameWithParent (el .Parent )
89
91
}
90
92
}
91
93
}
94
+ // TODO call resolveNameCollisions again on resolved schema, to avoid new collisions created by resolver
92
95
}
93
96
94
97
func (sch * Schema ) elementsByGoName () map [string ][]* Element {
You can’t perform that action at this time.
0 commit comments