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 {
typedNodeGenerator
// as typed.LinkNode.ReferencedNodeBuilder generator
EmitTypedLinkNodeMethodReferencedLinkBuilder(io.Writer)
EmitTypedLinkNodeMethodReferencedNodeBuilder(io.Writer)
}
type nodeGenerator interface {
......@@ -150,7 +150,7 @@ func EmitEntireType(tg typedNodeGenerator, w io.Writer) {
tlg, ok := tg.(typedLinkNodeGenerator)
if ok {
tlg.EmitTypedLinkNodeMethodReferencedLinkBuilder(w)
tlg.EmitTypedLinkNodeMethodReferencedNodeBuilder(w)
}
tg.EmitTypedNodeMethodRepresentation(w)
......
......@@ -98,7 +98,7 @@ func (gk generateKindLink) EmitTypedNodeMethodRepresentation(w io.Writer) {
`, w, gk)
}
func (gk generateKindLink) EmitTypedLinkNodeMethodReferencedLinkBuilder(w io.Writer) {
func (gk generateKindLink) EmitTypedLinkNodeMethodReferencedNodeBuilder(w io.Writer) {
if gk.Type.HasReferencedType() {
doTemplate(`
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