github.com/april1989/origin-go-tools@v0.0.32/cmd/guru/testdata/src/describe-json/main.golden (about) 1 -------- @describe pkgdecl -------- 2 { 3 "desc": "definition of package \"describe-json\"", 4 "pos": "testdata/src/describe-json/main.go:1:9", 5 "detail": "package", 6 "package": { 7 "path": "describe-json", 8 "members": [ 9 { 10 "name": "C", 11 "type": "int", 12 "pos": "testdata/src/describe-json/main.go:25:6", 13 "kind": "type", 14 "methods": [ 15 { 16 "name": "method (C) f()", 17 "pos": "testdata/src/describe-json/main.go:28:12" 18 } 19 ] 20 }, 21 { 22 "name": "D", 23 "type": "struct{}", 24 "pos": "testdata/src/describe-json/main.go:26:6", 25 "kind": "type", 26 "methods": [ 27 { 28 "name": "method (*D) f()", 29 "pos": "testdata/src/describe-json/main.go:29:13" 30 } 31 ] 32 }, 33 { 34 "name": "I", 35 "type": "interface{f()}", 36 "pos": "testdata/src/describe-json/main.go:21:6", 37 "kind": "type", 38 "methods": [ 39 { 40 "name": "method (I) f()", 41 "pos": "testdata/src/describe-json/main.go:22:2" 42 } 43 ] 44 }, 45 { 46 "name": "main", 47 "type": "func()", 48 "pos": "testdata/src/describe-json/main.go:7:6", 49 "kind": "func" 50 } 51 ] 52 } 53 } 54 -------- @describe desc-val-p -------- 55 { 56 "desc": "identifier", 57 "pos": "testdata/src/describe-json/main.go:9:2", 58 "detail": "value", 59 "value": { 60 "type": "*int", 61 "objpos": "testdata/src/describe-json/main.go:9:2" 62 } 63 } 64 -------- @describe desc-val-i -------- 65 { 66 "desc": "identifier", 67 "pos": "testdata/src/describe-json/main.go:16:8", 68 "detail": "value", 69 "value": { 70 "type": "I", 71 "objpos": "testdata/src/describe-json/main.go:12:6", 72 "typespos": [ 73 { 74 "objpos": "testdata/src/describe-json/main.go:21:6", 75 "desc": "I" 76 } 77 ] 78 } 79 } 80 -------- @describe desc-stmt -------- 81 { 82 "desc": "go statement", 83 "pos": "testdata/src/describe-json/main.go:18:2", 84 "detail": "unknown" 85 } 86 -------- @describe desc-type-C -------- 87 { 88 "desc": "definition of type C (size 8, align 8)", 89 "pos": "testdata/src/describe-json/main.go:25:6", 90 "detail": "type", 91 "type": { 92 "type": "C", 93 "namepos": "testdata/src/describe-json/main.go:25:6", 94 "namedef": "int", 95 "methods": [ 96 { 97 "name": "method (C) f()", 98 "pos": "testdata/src/describe-json/main.go:28:12" 99 } 100 ] 101 } 102 } 103 -------- @describe desc-param-c -------- 104 { 105 "desc": "identifier", 106 "pos": "testdata/src/describe-json/main.go:28:7", 107 "detail": "value", 108 "value": { 109 "type": "C", 110 "objpos": "testdata/src/describe-json/main.go:28:7", 111 "typespos": [ 112 { 113 "objpos": "testdata/src/describe-json/main.go:25:6", 114 "desc": "C" 115 } 116 ] 117 } 118 } 119 -------- @describe desc-param-d -------- 120 { 121 "desc": "identifier", 122 "pos": "testdata/src/describe-json/main.go:29:7", 123 "detail": "value", 124 "value": { 125 "type": "*D", 126 "objpos": "testdata/src/describe-json/main.go:29:7", 127 "typespos": [ 128 { 129 "objpos": "testdata/src/describe-json/main.go:26:6", 130 "desc": "D" 131 } 132 ] 133 } 134 }