From 2045f2602ac8dd6f416ebd9051367294b0e4349f Mon Sep 17 00:00:00 2001 From: Cory Slep Date: Thu, 3 Jan 2019 22:35:24 +0100 Subject: [PATCH] Fix name methods for non-functional properties --- tools/exp/props/nonfuncprop.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/exp/props/nonfuncprop.go b/tools/exp/props/nonfuncprop.go index 8482d5d..c1b13ce 100644 --- a/tools/exp/props/nonfuncprop.go +++ b/tools/exp/props/nonfuncprop.go @@ -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 }