Commit 509995ac authored by hannahhoward's avatar hannahhoward

fix(gen): rename method

rename EmitTypedLinkNodeMethodReferencedLinkBuilder to EmitTypedLinkNodeMethodReferencedNodeBuilder
parent 6f760b87
...@@ -51,7 +51,7 @@ type typedLinkNodeGenerator interface { ...@@ -51,7 +51,7 @@ type typedLinkNodeGenerator interface {
typedNodeGenerator typedNodeGenerator
// as typed.LinkNode.ReferencedNodeBuilder generator // as typed.LinkNode.ReferencedNodeBuilder generator
EmitTypedLinkNodeMethodReferencedLinkBuilder(io.Writer) EmitTypedLinkNodeMethodReferencedNodeBuilder(io.Writer)
} }
type nodeGenerator interface { type nodeGenerator interface {
...@@ -150,7 +150,7 @@ func EmitEntireType(tg typedNodeGenerator, w io.Writer) { ...@@ -150,7 +150,7 @@ func EmitEntireType(tg typedNodeGenerator, w io.Writer) {
tlg, ok := tg.(typedLinkNodeGenerator) tlg, ok := tg.(typedLinkNodeGenerator)
if ok { if ok {
tlg.EmitTypedLinkNodeMethodReferencedLinkBuilder(w) tlg.EmitTypedLinkNodeMethodReferencedNodeBuilder(w)
} }
tg.EmitTypedNodeMethodRepresentation(w) tg.EmitTypedNodeMethodRepresentation(w)
......
...@@ -98,7 +98,7 @@ func (gk generateKindLink) EmitTypedNodeMethodRepresentation(w io.Writer) { ...@@ -98,7 +98,7 @@ func (gk generateKindLink) EmitTypedNodeMethodRepresentation(w io.Writer) {
`, w, gk) `, w, gk)
} }
func (gk generateKindLink) EmitTypedLinkNodeMethodReferencedLinkBuilder(w io.Writer) { func (gk generateKindLink) EmitTypedLinkNodeMethodReferencedNodeBuilder(w io.Writer) {
if gk.Type.HasReferencedType() { if gk.Type.HasReferencedType() {
doTemplate(` doTemplate(`
func ({{ .Type | mungeTypeNodeIdent }}) ReferencedNodeBuilder() ipld.NodeBuilder { func ({{ .Type | mungeTypeNodeIdent }}) ReferencedNodeBuilder() ipld.NodeBuilder {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment