Skip to content

Should method receivers have their own node in the graph or just the type itself? #23

@mccurdyc

Description

@mccurdyc
package a
type a int
func (a a) Val() int {
     return int(a)
}
 │ │  813 []*github.com/mccurdyc/splitfile/internal/graph.Node len: 3, cap: 4, [
 │ │  814         *{
 │ │  815                 ID: "package a (\"a\") Val 43",
 │ │  816                 Object: interface {}(*go/types.Func) ...,
 │ │  817                 Edges: map[string]github.com/mccurdyc/splitfile/internal/graph.WeightedEdge [],
 │ │  818                 Parents: map[string]github.com/mccurdyc/splitfile/internal/graph.WeightedEdge [],
 │ │  819                 MinPathStrength: 0,
 │ │  820                 ShortestPathLen: 0,},
 │ │  821         *{
 │ │  822                 ID: "package a (\"a\") a 38",
 │ │  823                 Object: interface {}(*go/types.Var) ...,
 │ │  824                 Edges: map[string]github.com/mccurdyc/splitfile/internal/graph.WeightedEdge [],
 │ │  825                 Parents: map[string]github.com/mccurdyc/splitfile/internal/graph.WeightedEdge [],
 │ │  826                 MinPathStrength: 0,
 │ │  827                 ShortestPathLen: 0,},
 │ │  828         *{
 │ │  829                 ID: "package a (\"a\")  49",
 │ │  830                 Object: interface {}(*go/types.Var) ...,
 │ │  831                 Edges: map[string]github.com/mccurdyc/splitfile/internal/graph.WeightedEdge [],
 │ │  832                 Parents: map[string]github.com/mccurdyc/splitfile/internal/graph.WeightedEdge [],
 │ │  833                 MinPathStrength: 0,
 │ │  834                 ShortestPathLen: 0,},
 │ │  835 ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions