github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/tools/oracle/testdata/src/main/describe.golden (about) 1 -------- @describe pkgdecl -------- 2 definition of package "describe" 3 type C int 4 method (*C) f() 5 type D struct{} 6 method (D) f() 7 type I interface{f()} 8 method (I) f() 9 const c untyped int = 0 10 type cake float64 11 var global *string 12 func main func() 13 const pi untyped float = 3141/1000 14 const pie cake = 1768225803696341/562949953421312 15 16 -------- @describe type-ref-builtin -------- 17 reference to built-in type float64 18 19 -------- @describe const-ref-iota -------- 20 reference to const iota untyped int of constant value 0 21 22 -------- @describe const-def-pi -------- 23 definition of const pi untyped float 24 25 -------- @describe const-def-pie -------- 26 definition of const pie cake 27 28 -------- @describe const-ref-pi -------- 29 reference to const pi untyped float of constant value 3141/1000 30 defined here 31 32 -------- @describe func-def-main -------- 33 definition of func main() 34 35 -------- @describe func-ref-main -------- 36 reference to func main() 37 defined here 38 39 -------- @describe func-ref-*C.f -------- 40 reference to method func (*C).f() 41 defined here 42 43 -------- @describe func-ref-D.f -------- 44 reference to method func (D).f() 45 defined here 46 47 -------- @describe func-ref-I.f -------- 48 reference to interface method func (I).f() 49 defined here 50 51 -------- @describe type-D -------- 52 reference to type D (size 0, align 1) 53 defined as struct{} 54 Method set: 55 method (D) f() 56 57 -------- @describe type-I -------- 58 reference to type I (size 16, align 8) 59 defined as interface{f()} 60 Method set: 61 method (I) f() 62 63 -------- @describe func-ref-d.f -------- 64 reference to method func (D).f() 65 defined here 66 67 -------- @describe func-ref-i.f -------- 68 reference to interface method func (I).f() 69 defined here 70 71 -------- @describe ref-lexical-d -------- 72 reference to var d D 73 defined here 74 75 -------- @describe ref-anon -------- 76 reference to var anon func() 77 defined here 78 79 -------- @describe ref-global -------- 80 reference to var global *string 81 defined here 82 83 -------- @describe var-def-x-1 -------- 84 definition of var x *int 85 86 -------- @describe var-ref-x-1 -------- 87 reference to var x *int 88 defined here 89 90 -------- @describe var-def-x-2 -------- 91 reference to var x *int 92 defined here 93 94 -------- @describe var-ref-x-2 -------- 95 reference to var x *int 96 defined here 97 98 -------- @describe var-ref-i-C -------- 99 reference to var i I 100 defined here 101 102 -------- @describe var-ref-i-D -------- 103 reference to var i I 104 defined here 105 106 -------- @describe var-ref-i -------- 107 reference to var i I 108 defined here 109 110 -------- @describe const-local-pi -------- 111 definition of const localpi untyped float 112 113 -------- @describe const-local-pie -------- 114 definition of const localpie cake 115 116 -------- @describe const-ref-localpi -------- 117 reference to const localpi untyped float of constant value 3141/1000 118 defined here 119 120 -------- @describe type-def-T -------- 121 definition of type T (size 8, align 8) 122 No methods. 123 124 -------- @describe type-ref-T -------- 125 reference to type T (size 8, align 8) 126 defined as int 127 No methods. 128 129 -------- @describe const-expr -------- 130 binary * operation of constant value 6 131 132 -------- @describe const-expr2 -------- 133 binary - operation of constant value -2 134 135 -------- @describe map-lookup,ok -------- 136 index expression of type (*int, bool) 137 138 -------- @describe mapval -------- 139 reference to var mapval *int 140 defined here 141 142 -------- @describe m -------- 143 reference to var m map[string]*int 144 defined here 145 146 -------- @describe defer-stmt -------- 147 defer statement 148 149 -------- @describe go-stmt -------- 150 go statement 151 152 -------- @describe builtin-ref-panic -------- 153 function call (or conversion) of type () 154 155 -------- @describe var-decl-stmt -------- 156 definition of var a2 int 157 158 -------- @describe var-decl-stmt2 -------- 159 definition of var _ int 160 161 -------- @describe var-def-blank -------- 162 definition of var _ int 163 164 -------- @describe def-iface-I -------- 165 definition of type I (size 16, align 8) 166 Method set: 167 method (I) f() 168 169 -------- @describe def-imethod-I.f -------- 170 type interface{f()} 171 Method set: 172 method (interface{f()}) f() 173