GoPLS Viewer

Home|gopls/cmd/guru/testdata/src/pointsto/main.golden
1-------- @pointsto const --------
2
3Error: pointer analysis wants an expression of reference type; got untyped float
4-------- @pointsto func-ref-main --------
5this func() may point to these objects:
6    pointsto.main
7
8-------- @pointsto func-ref-*C.f --------
9this func() may point to these objects:
10    (*pointsto.C).f
11
12-------- @pointsto func-ref-D.f --------
13this func() may point to these objects:
14    (pointsto.D).f
15
16-------- @pointsto func-ref-I.f --------
17
18Error: func (pointsto.I).f() is an interface method
19-------- @pointsto func-ref-d.f --------
20this func() may point to these objects:
21    (pointsto.D).f
22
23-------- @pointsto func-ref-i.f --------
24
25Error: func (pointsto.I).f() is an interface method
26-------- @pointsto ref-lexical-d.f --------
27this func() may point to these objects:
28    (pointsto.D).f
29
30-------- @pointsto ref-anon --------
31this func() may point to these objects:
32    pointsto.main$1
33
34-------- @pointsto ref-global --------
35this *string may point to these objects:
36    new
37
38-------- @pointsto var-def-x-1 --------
39this *int may point to these objects:
40    a
41
42-------- @pointsto var-ref-x-1 --------
43this *int may point to these objects:
44    a
45
46-------- @pointsto var-def-x-2 --------
47this *int may point to these objects:
48    b
49
50-------- @pointsto var-ref-x-2 --------
51this *int may point to these objects:
52    b
53
54-------- @pointsto var-ref-i-C --------
55this I may contain these dynamic types:
56    *C, may point to:
57        new
58
59-------- @pointsto var-ref-i-D --------
60this I may contain these dynamic types:
61    D
62
63-------- @pointsto var-ref-i --------
64this I may contain these dynamic types:
65    *C, may point to:
66        new
67    D
68
69-------- @pointsto map-lookup,ok --------
70
71Error: pointer analysis wants an expression of reference type; got (*int, bool)
72-------- @pointsto mapval --------
73this *int may point to these objects:
74    a
75
76-------- @pointsto m --------
77this map[string]*int may point to these objects:
78    makemap
79
80-------- @pointsto builtin-panic --------
81
82Error: pointer analysis wants an expression of reference type; got ()
83-------- @pointsto var-ref-s-f --------
84this any may contain these dynamic types:
85    chan bool, may point to:
86        makechan
87
88-------- @pointsto func-live --------
89
90Error: pointer analysis did not find expression (dead code?)
91-------- @pointsto func-dead --------
92
93Error: pointer analysis did not find expression (dead code?)
94-------- @pointsto b --------
95
96Error: pointer analysis did not find expression (dead code?)
97
MembersX
Members
X