Fix name methods for non-functional properties

このコミットが含まれているのは:
Cory Slep 2019-01-03 22:35:24 +01:00
コミット 2045f2602a
1個のファイルの変更2行の追加1行の削除

ファイルの表示

@ -84,7 +84,7 @@ func (p *NonFunctionalPropertyGenerator) Definitions() (*codegen.Struct, *codege
// iteratorTypeName determines the identifier to use for the iterator type.
func (p *NonFunctionalPropertyGenerator) iteratorTypeName() Identifier {
return Identifier{
LowerName: fmt.Sprintf("%sPropertyIterator", p.Name.LowerName),
LowerName: p.Name.LowerName,
CamelName: fmt.Sprintf("%sPropertyIterator", p.Name.CamelName),
}
}
@ -318,6 +318,7 @@ func (p *NonFunctionalPropertyGenerator) funcs() []*codegen.Method {
},
jen.Commentf("%s compares two instances of this property with an arbitrary but stable comparison.", compareLessMethod),
))
methods = append(methods, p.commonMethods()...)
return methods
}