github.com/april1989/origin-go-tools@v0.0.32/cmd/guru/testdata/src/describe/main.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  	func  newD   func() D
    14  	const pi     untyped float = 3.141
    15  	const pie    cake = 3.141
    16  
    17  -------- @describe badimport1 --------
    18  import of package "nosuchpkg"
    19  
    20  -------- @describe badimport2 --------
    21  reference to package "nosuchpkg"
    22  
    23  -------- @describe unsafe --------
    24  import of package "unsafe"
    25  	builtin Alignof 
    26  	builtin Offsetof
    27  	type  Pointer  unsafe.Pointer
    28  	builtin Sizeof  
    29  
    30  -------- @describe type-ref-builtin --------
    31  reference to built-in type float64
    32  
    33  -------- @describe const-ref-iota --------
    34  reference to const iota untyped int of value 0
    35  
    36  -------- @describe const-def-pi --------
    37  definition of const pi untyped float of value 3.141
    38  
    39  -------- @describe const-def-pie --------
    40  definition of const pie cake of value 3.141
    41  Named types:
    42  	type cake defined here
    43  
    44  -------- @describe const-ref-pi --------
    45  reference to const pi untyped float of value 3.141
    46  defined here
    47  
    48  -------- @describe func-def-main --------
    49  definition of func main()
    50  
    51  -------- @describe func-ref-main --------
    52  reference to func main()
    53  defined here
    54  
    55  -------- @describe func-ref-*C.f --------
    56  reference to method func (*C).f()
    57  defined here
    58  
    59  -------- @describe func-ref-D.f --------
    60  reference to method func (D).f()
    61  defined here
    62  
    63  -------- @describe func-ref-I.f --------
    64  reference to interface method func (I).f()
    65  defined here
    66  
    67  -------- @describe type-D --------
    68  reference to type D (size 32, align 8)
    69  defined as struct{Field int; AnotherField string; ThirdField C}
    70  Methods:
    71  	method (D) f()
    72  Fields:
    73  	Field        int
    74  	AnotherField string
    75  	ThirdField   C
    76  
    77  -------- @describe type-I --------
    78  reference to type I (size 16, align 8)
    79  defined as interface{f()}
    80  Methods:
    81  	method (I) f()
    82  
    83  -------- @describe func-ref-d.f --------
    84  reference to method func (D).f()
    85  defined here
    86  
    87  -------- @describe func-ref-i.f --------
    88  reference to interface method func (I).f()
    89  defined here
    90  
    91  -------- @describe slice-of-D --------
    92  definition of var slice []D
    93  Named types:
    94  	type D defined here
    95  
    96  -------- @describe ptr-with-nonptr-methods --------
    97  definition of var dptr *D
    98  Methods:
    99  	method (*D) f()
   100  Fields:
   101  	Field        int
   102  	AnotherField string
   103  	ThirdField   C
   104  Named types:
   105  	type D defined here
   106  
   107  -------- @describe ref-lexical-d --------
   108  reference to var d D
   109  defined here
   110  Methods:
   111  	method (D) f()
   112  Fields:
   113  	Field        int
   114  	AnotherField string
   115  	ThirdField   C
   116  Named types:
   117  	type D defined here
   118  
   119  -------- @describe ref-anon --------
   120  reference to var anon func()
   121  defined here
   122  
   123  -------- @describe ref-global --------
   124  reference to var global *string
   125  defined here
   126  
   127  -------- @describe var-def-x-1 --------
   128  definition of var x *int
   129  
   130  -------- @describe var-ref-x-1 --------
   131  reference to var x *int
   132  defined here
   133  
   134  -------- @describe var-def-x-2 --------
   135  reference to var x *int
   136  defined here
   137  
   138  -------- @describe var-ref-x-2 --------
   139  reference to var x *int
   140  defined here
   141  
   142  -------- @describe var-ref-i-C --------
   143  reference to var i I
   144  defined here
   145  Methods:
   146  	method (I) f()
   147  Named types:
   148  	type I defined here
   149  
   150  -------- @describe var-ref-i-D --------
   151  reference to var i I
   152  defined here
   153  Methods:
   154  	method (I) f()
   155  Named types:
   156  	type I defined here
   157  
   158  -------- @describe var-ref-i --------
   159  reference to var i I
   160  defined here
   161  Methods:
   162  	method (I) f()
   163  Named types:
   164  	type I defined here
   165  
   166  -------- @describe const-local-pi --------
   167  definition of const localpi untyped float of value 3.141
   168  
   169  -------- @describe const-local-pie --------
   170  definition of const localpie cake of value 3.141
   171  Named types:
   172  	type cake defined here
   173  
   174  -------- @describe const-ref-localpi --------
   175  reference to const localpi untyped float of value 3.141
   176  defined here
   177  
   178  -------- @describe type-def-T --------
   179  definition of type T (size 8, align 8)
   180  No methods.
   181  
   182  -------- @describe type-ref-T --------
   183  reference to type T (size 8, align 8)
   184  defined as int
   185  No methods.
   186  
   187  -------- @describe const-expr --------
   188  binary * operation of value 6
   189  
   190  -------- @describe const-expr2 --------
   191  binary - operation of value -2
   192  
   193  -------- @describe map-lookup,ok --------
   194  index expression of type (*int, bool)
   195  
   196  -------- @describe mapval --------
   197  reference to var mapval *int
   198  defined here
   199  
   200  -------- @describe m --------
   201  reference to var m map[string]*int
   202  defined here
   203  
   204  -------- @describe defer-stmt --------
   205  defer statement
   206  
   207  -------- @describe go-stmt --------
   208  go statement
   209  
   210  -------- @describe builtin-ref-panic --------
   211  function call (or conversion) of type ()
   212  
   213  -------- @describe var-decl-stmt --------
   214  definition of var a2 int
   215  
   216  -------- @describe var-decl-stmt2 --------
   217  definition of var _ int
   218  
   219  -------- @describe var-def-blank --------
   220  definition of var _ int
   221  
   222  -------- @describe lib-outer --------
   223  reference to type lib.Outer (size 56, align 8)
   224  defined as struct{A int; b int; lib.inner}
   225  No methods.
   226  Fields:
   227  	A                 int
   228  	inner.C           bool
   229  	inner.recursive.E bool
   230  
   231  -------- @describe var-map-of-C-D --------
   232  definition of var mmm map[C]D
   233  Named types:
   234  	type C defined here
   235  	type D defined here
   236  
   237  -------- @describe field-access --------
   238  reference to field ThirdField C
   239  defined here
   240  Methods:
   241  	method (*C) f()
   242  Named types:
   243  	type C defined here
   244  
   245  -------- @describe call-unknown --------
   246  function call of type invalid type
   247  
   248  -------- @describe def-iface-I --------
   249  definition of type I (size 16, align 8)
   250  Methods:
   251  	method (I) f()
   252  
   253  -------- @describe def-imethod-I.f --------
   254  definition of interface method func (I).f()
   255