Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mccurdyc opened this issue Nov 7, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@mccurdyc
Copy link
Owner

mccurdyc commented Nov 7, 2019

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 ]
@mccurdyc mccurdyc added the bug Something isn't working label Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant