github.com/april1989/origin-go-tools@v0.0.32/cmd/guru/testdata/src/implements-methods-json/main.golden (about)

     1  -------- @implements F.f --------
     2  {
     3  	"type": {
     4  		"name": "implements-methods-json.F",
     5  		"pos": "testdata/src/implements-methods-json/main.go:12:6",
     6  		"kind": "interface"
     7  	},
     8  	"to": [
     9  		{
    10  			"name": "*implements-methods-json.C",
    11  			"pos": "testdata/src/implements-methods-json/main.go:21:6",
    12  			"kind": "pointer"
    13  		},
    14  		{
    15  			"name": "implements-methods-json.D",
    16  			"pos": "testdata/src/implements-methods-json/main.go:22:6",
    17  			"kind": "struct"
    18  		},
    19  		{
    20  			"name": "implements-methods-json.FG",
    21  			"pos": "testdata/src/implements-methods-json/main.go:16:6",
    22  			"kind": "interface"
    23  		}
    24  	],
    25  	"method": {
    26  		"name": "func (F).f()",
    27  		"pos": "testdata/src/implements-methods-json/main.go:13:2"
    28  	},
    29  	"to_method": [
    30  		{
    31  			"name": "method (*C) f()",
    32  			"pos": "testdata/src/implements-methods-json/main.go:24:13"
    33  		},
    34  		{
    35  			"name": "method (D) f()",
    36  			"pos": "testdata/src/implements-methods-json/main.go:25:12"
    37  		},
    38  		{
    39  			"name": "method (FG) f()",
    40  			"pos": "testdata/src/implements-methods-json/main.go:17:2"
    41  		}
    42  	]
    43  }
    44  -------- @implements FG.f --------
    45  {
    46  	"type": {
    47  		"name": "implements-methods-json.FG",
    48  		"pos": "testdata/src/implements-methods-json/main.go:16:6",
    49  		"kind": "interface"
    50  	},
    51  	"to": [
    52  		{
    53  			"name": "*implements-methods-json.D",
    54  			"pos": "testdata/src/implements-methods-json/main.go:22:6",
    55  			"kind": "pointer"
    56  		}
    57  	],
    58  	"from": [
    59  		{
    60  			"name": "implements-methods-json.F",
    61  			"pos": "testdata/src/implements-methods-json/main.go:12:6",
    62  			"kind": "interface"
    63  		}
    64  	],
    65  	"method": {
    66  		"name": "func (FG).f()",
    67  		"pos": "testdata/src/implements-methods-json/main.go:17:2"
    68  	},
    69  	"to_method": [
    70  		{
    71  			"name": "method (*D) f()",
    72  			"pos": "testdata/src/implements-methods-json/main.go:25:12"
    73  		}
    74  	],
    75  	"from_method": [
    76  		{
    77  			"name": "method (F) f()",
    78  			"pos": "testdata/src/implements-methods-json/main.go:13:2"
    79  		}
    80  	]
    81  }
    82  -------- @implements FG.g --------
    83  {
    84  	"type": {
    85  		"name": "implements-methods-json.FG",
    86  		"pos": "testdata/src/implements-methods-json/main.go:16:6",
    87  		"kind": "interface"
    88  	},
    89  	"to": [
    90  		{
    91  			"name": "*implements-methods-json.D",
    92  			"pos": "testdata/src/implements-methods-json/main.go:22:6",
    93  			"kind": "pointer"
    94  		}
    95  	],
    96  	"from": [
    97  		{
    98  			"name": "implements-methods-json.F",
    99  			"pos": "testdata/src/implements-methods-json/main.go:12:6",
   100  			"kind": "interface"
   101  		}
   102  	],
   103  	"method": {
   104  		"name": "func (FG).g() []int",
   105  		"pos": "testdata/src/implements-methods-json/main.go:18:2"
   106  	},
   107  	"to_method": [
   108  		{
   109  			"name": "method (*D) g() []int",
   110  			"pos": "testdata/src/implements-methods-json/main.go:27:13"
   111  		}
   112  	],
   113  	"from_method": [
   114  		{
   115  			"name": "",
   116  			"pos": ""
   117  		}
   118  	]
   119  }
   120  -------- @implements *C.f --------
   121  {
   122  	"type": {
   123  		"name": "*implements-methods-json.C",
   124  		"pos": "testdata/src/implements-methods-json/main.go:21:6",
   125  		"kind": "pointer"
   126  	},
   127  	"from": [
   128  		{
   129  			"name": "implements-methods-json.F",
   130  			"pos": "testdata/src/implements-methods-json/main.go:12:6",
   131  			"kind": "interface"
   132  		}
   133  	],
   134  	"method": {
   135  		"name": "func (*C).f()",
   136  		"pos": "testdata/src/implements-methods-json/main.go:24:13"
   137  	},
   138  	"from_method": [
   139  		{
   140  			"name": "method (F) f()",
   141  			"pos": "testdata/src/implements-methods-json/main.go:13:2"
   142  		}
   143  	]
   144  }
   145  -------- @implements D.f --------
   146  {
   147  	"type": {
   148  		"name": "implements-methods-json.D",
   149  		"pos": "testdata/src/implements-methods-json/main.go:22:6",
   150  		"kind": "struct"
   151  	},
   152  	"from": [
   153  		{
   154  			"name": "implements-methods-json.F",
   155  			"pos": "testdata/src/implements-methods-json/main.go:12:6",
   156  			"kind": "interface"
   157  		}
   158  	],
   159  	"fromptr": [
   160  		{
   161  			"name": "implements-methods-json.FG",
   162  			"pos": "testdata/src/implements-methods-json/main.go:16:6",
   163  			"kind": "interface"
   164  		}
   165  	],
   166  	"method": {
   167  		"name": "func (D).f()",
   168  		"pos": "testdata/src/implements-methods-json/main.go:25:12"
   169  	},
   170  	"from_method": [
   171  		{
   172  			"name": "method (F) f()",
   173  			"pos": "testdata/src/implements-methods-json/main.go:13:2"
   174  		}
   175  	],
   176  	"fromptr_method": [
   177  		{
   178  			"name": "method (FG) f()",
   179  			"pos": "testdata/src/implements-methods-json/main.go:17:2"
   180  		}
   181  	]
   182  }
   183  -------- @implements *D.g --------
   184  {
   185  	"type": {
   186  		"name": "*implements-methods-json.D",
   187  		"pos": "testdata/src/implements-methods-json/main.go:22:6",
   188  		"kind": "pointer"
   189  	},
   190  	"from": [
   191  		{
   192  			"name": "implements-methods-json.F",
   193  			"pos": "testdata/src/implements-methods-json/main.go:12:6",
   194  			"kind": "interface"
   195  		},
   196  		{
   197  			"name": "implements-methods-json.FG",
   198  			"pos": "testdata/src/implements-methods-json/main.go:16:6",
   199  			"kind": "interface"
   200  		}
   201  	],
   202  	"method": {
   203  		"name": "func (*D).g() []int",
   204  		"pos": "testdata/src/implements-methods-json/main.go:27:13"
   205  	},
   206  	"from_method": [
   207  		{
   208  			"name": "",
   209  			"pos": ""
   210  		},
   211  		{
   212  			"name": "method (FG) g() []int",
   213  			"pos": "testdata/src/implements-methods-json/main.go:18:2"
   214  		}
   215  	]
   216  }
   217  -------- @implements Len --------
   218  {
   219  	"type": {
   220  		"name": "implements-methods-json.sorter",
   221  		"pos": "testdata/src/implements-methods-json/main.go:29:6",
   222  		"kind": "slice"
   223  	},
   224  	"from": [
   225  		{
   226  			"name": "lib.Sorter",
   227  			"pos": "testdata/src/lib/lib.go:16:6",
   228  			"kind": "interface"
   229  		}
   230  	],
   231  	"method": {
   232  		"name": "func (sorter).Len() int",
   233  		"pos": "testdata/src/implements-methods-json/main.go:31:15"
   234  	},
   235  	"from_method": [
   236  		{
   237  			"name": "method (lib.Sorter) Len() int",
   238  			"pos": "testdata/src/lib/lib.go:17:2"
   239  		}
   240  	]
   241  }
   242  -------- @implements I.Method --------
   243  {
   244  	"type": {
   245  		"name": "implements-methods-json.I",
   246  		"pos": "testdata/src/implements-methods-json/main.go:35:6",
   247  		"kind": "interface"
   248  	},
   249  	"to": [
   250  		{
   251  			"name": "lib.Type",
   252  			"pos": "testdata/src/lib/lib.go:3:6",
   253  			"kind": "basic"
   254  		}
   255  	],
   256  	"method": {
   257  		"name": "func (I).Method(*int) *int",
   258  		"pos": "testdata/src/implements-methods-json/main.go:36:2"
   259  	},
   260  	"to_method": [
   261  		{
   262  			"name": "method (lib.Type) Method(x *int) *int",
   263  			"pos": "testdata/src/lib/lib.go:5:13"
   264  		}
   265  	]
   266  }