Fix double-calling value Kind functions
このコミットが含まれているのは:
コミット
48df99f07f
|
@ -85,6 +85,11 @@ func (m Function) Name() string {
|
|||
return m.name
|
||||
}
|
||||
|
||||
// QualifiedName returns the qualified identifier for this function.
|
||||
func (m Function) QualifiedName() *jen.Statement {
|
||||
return m.qual.Clone()
|
||||
}
|
||||
|
||||
// Method represents a method on a type, not a free function, for Go code to be
|
||||
// generated.
|
||||
type Method struct {
|
||||
|
|
|
@ -404,12 +404,11 @@ func (c Converter) convertValue(v rdf.VocabularyValue) (k *props.Kind) {
|
|||
k = &props.Kind{
|
||||
Name: c.toIdentifier(v),
|
||||
// TODO: Add Qualifier
|
||||
ConcreteKind: jen.Id(v.DefinitionType),
|
||||
Nilable: c.isNilable(v.DefinitionType),
|
||||
// TODO: Fix Qualifying calls?
|
||||
SerializeFn: jen.Empty().Add(v.SerializeFn.Call()),
|
||||
DeserializeFn: jen.Empty().Add(v.DeserializeFn.Call()),
|
||||
LessFn: jen.Empty().Add(v.LessFn.Call()),
|
||||
ConcreteKind: jen.Id(v.DefinitionType),
|
||||
Nilable: c.isNilable(v.DefinitionType),
|
||||
SerializeFn: v.SerializeFn.QualifiedName(),
|
||||
DeserializeFn: v.DeserializeFn.QualifiedName(),
|
||||
LessFn: v.LessFn.QualifiedName(),
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
読み込み中…
新しいイシューから参照