github.com/april1989/origin-go-tools@v0.0.32/cmd/guru/testdata/src/referrers/main.golden (about) 1 -------- @referrers package-decl -------- 2 references to package main ("referrers") 3 var _ renamed.T 4 5 -------- @referrers type -------- 6 references to type s struct{f int} 7 _ = s{}.f // @referrers ref-field "f" 8 var s2 s 9 10 -------- @referrers ref-package -------- 11 references to package lib 12 _ = (lib.Type).Method // ref from external test package 13 _ = (lib.Type).Method // ref from internal test package 14 const c = lib.Const // @describe ref-const "Const" 15 lib.Func() // @describe ref-func "Func" 16 lib.Type // @definition embedded-other-pkg "Type" 17 lib.Var++ // @describe ref-var "Var" 18 var _ lib.Const // @definition qualified-const "Const" 19 var _ lib.Func // @definition qualified-func "Func" 20 var _ lib.Nonesuch // @definition qualified-nomember "Nonesuch" 21 var _ lib.Outer // @describe lib-outer "Outer" 22 var _ lib.Type // @definition qualified-type "Type" 23 var _ lib.Type // @describe ref-pkg "lib" 24 var _ lib.Var // @definition qualified-var "Var" 25 var _ lib2.Type // @definition qualified-type-renaming "Type" 26 var t lib.Type // @describe ref-type "Type" 27 var v lib.Type = lib.Const // @referrers ref-package "lib" 28 var v lib.Type = lib.Const // @referrers ref-package "lib" 29 var v lib.Type = lib.Const // @referrers ref-package "lib" 30 var v lib.Type = lib.Const // @referrers ref-package "lib" 31 var x lib.T // @definition lexical-pkgname "lib" 32 type _ lib.T 33 var _ lib.Var // @what pkg "lib" 34 35 -------- @referrers ref-method -------- 36 references to func (lib.Type).Method(x *int) *int 37 _ = (lib.Type).Method // ref from external test package 38 _ = (lib.Type).Method // ref from internal test package 39 _ = v.Method 40 _ = v.Method 41 _ = v.Method // @referrers ref-method "Method" 42 _ = v.Method // @referrers ref-method "Method" 43 p := t.Method(&a) // @describe ref-method "Method" 44 45 -------- @referrers ref-local -------- 46 references to var v lib.Type 47 _ = v.Method 48 _ = v.Method // @referrers ref-method "Method" 49 v++ 50 v++ //@referrers ref-local "v" 51 52 -------- @referrers ref-field -------- 53 references to field f int 54 _ = s{}.f // @referrers ref-field "f" 55 s2.f = 1 56 57 -------- @referrers unexported-from-test -------- 58 references to var notexported int 59 _ = notexported 60 61 -------- @referrers ref-type-U -------- 62 references to type U int 63 open testdata/src/referrers/nosuchfile.y: no such file or directory (+ 1 more refs in this file) 64