GoPLS Viewer

Home|gopls/cmd/guru/testdata/src/calls/main.golden
1-------- @pointsto pointsto-A-x --------
2this *int may point to these objects:
3    a
4    b
5
6-------- @callstack callstack-A --------
7Found a call path from root to calls.A
8calls.A
9dynamic function call from calls.apply
10concurrent static function call from calls.main
11
12-------- @pointsto pointsto-B-x --------
13this *int may point to these objects:
14    a
15    b
16
17-------- @callers callers-B --------
18calls.B is called from these 1 sites:
19    dynamic function call from calls.apply
20
21-------- @callees callees-apply --------
22this dynamic function call dispatches to:
23    calls.A
24    calls.B
25
26-------- @callers callers-apply --------
27calls.apply is called from these 2 sites:
28    concurrent static function call from calls.main
29    deferred static function call from calls.main
30
31-------- @callers callers-store --------
32calls.store is called from these 2 sites:
33    static function call from calls.main
34    static function call from calls.main
35
36-------- @pointsto pointsto-result-f --------
37this func() *int may point to these objects:
38    calls.main$1
39
40-------- @callees callees-main.call-f --------
41this dynamic function call dispatches to:
42    calls.main$1
43
44-------- @callers callers-main.call --------
45calls.call is called from these 2 sites:
46    static function call from calls.main
47    static function call from calls.main
48
49-------- @callees callees-main-apply1 --------
50this static function call dispatches to:
51    calls.apply
52
53-------- @pointsto pointsto-pc --------
54this *int may point to these objects:
55    c
56
57-------- @pointsto pointsto-pd --------
58this *int may point to these objects:
59    d
60
61-------- @callees callees-err-no-call --------
62
63Error: there is no function call here
64-------- @callees callees-err-builtin --------
65
66Error: this is a call to the built-in 'print' operator
67-------- @callees callees-err-conversion --------
68
69Error: this is a type conversion, not a function call
70-------- @callees callees-err-bad-selection --------
71
72Error: ambiguous selection within function call (or conversion)
73-------- @callees callees-err-deadcode1 --------
74this static function call dispatches to:
75    calls.main
76
77-------- @callees callees-err-nil-func --------
78dynamic function call on nil value
79
80-------- @callees callees-err-nil-interface --------
81dynamic method call on nil value
82
83-------- @callees callees-not-a-wrapper --------
84this dynamic method call dispatches to:
85    (calls.myint).f
86
87-------- @callees callees-static-call --------
88this static function call dispatches to:
89    calls.foo
90
91-------- @callees callees-qualified-call --------
92this static function call dispatches to:
93    fmt.Println
94
95-------- @callees callees-static-method-call --------
96this static function call dispatches to:
97    (calls.method).f
98
99-------- @callees callees-implicit-selection-method-call --------
100this dynamic method call dispatches to:
101    (calls.method).f
102
103-------- @callers callers-not-a-wrapper --------
104(calls.myint).f is called from these 1 sites:
105    dynamic method call from calls.main
106
107-------- @callees callees-err-deadcode2 --------
108this static function call dispatches to:
109    calls.main
110
111-------- @callstack callstack-err-deadcode --------
112calls.deadcode is unreachable in this analysis scope
113
114-------- @callees callees-err-deadcode3 --------
115
116Error: this call site is unreachable in this analysis
117-------- @callers callers-global --------
118calls.init is called from these 1 sites:
119the root of the call graph
120
121-------- @callstack callstack-init --------
122Found a call path from root to calls.init#1
123calls.init#1
124static function call from calls.init
125
126
MembersX
Members
X