|
1 | 1 | package embedded |
2 | 2 | // ^^^^^^^^ definition 0.1.test `sg/embedded`/ |
| 3 | +// kind Package |
3 | 4 | // display_name embedded |
4 | 5 | // signature_documentation |
5 | 6 | // > package embedded |
|
13 | 14 |
|
14 | 15 | type osExecCommand struct { |
15 | 16 | // ^^^^^^^^^^^^^ definition 0.1.test `sg/embedded`/osExecCommand# |
| 17 | +// kind Struct |
16 | 18 | // display_name osExecCommand |
17 | 19 | // signature_documentation |
18 | 20 | // > type osExecCommand struct{ *exec.Cmd } |
|
22 | 24 | *exec.Cmd |
23 | 25 | // ^^^^ reference github.com/golang/go/src go1.22 `os/exec`/ |
24 | 26 | // ^^^ definition 0.1.test `sg/embedded`/osExecCommand#Cmd. |
| 27 | +// kind Field |
25 | 28 | // display_name Cmd |
26 | 29 | // signature_documentation |
27 | 30 | // > struct field Cmd *exec.Cmd |
|
31 | 34 | //⌄ enclosing_range_start 0.1.test `sg/embedded`/wrapExecCommand(). |
32 | 35 | func wrapExecCommand(c *exec.Cmd) { |
33 | 36 | // ^^^^^^^^^^^^^^^ definition 0.1.test `sg/embedded`/wrapExecCommand(). |
| 37 | +// kind Function |
34 | 38 | // display_name wrapExecCommand |
35 | 39 | // signature_documentation |
36 | 40 | // > func wrapExecCommand(c *exec.Cmd) |
37 | 41 | // ^ definition local 0 |
| 42 | +// kind Variable |
38 | 43 | // display_name c |
39 | 44 | // signature_documentation |
40 | 45 | // > var c *Cmd |
|
49 | 54 |
|
50 | 55 | type Inner struct { |
51 | 56 | // ^^^^^ definition 0.1.test `sg/embedded`/Inner# |
| 57 | +// kind Struct |
52 | 58 | // display_name Inner |
53 | 59 | // signature_documentation |
54 | 60 | // > type Inner struct { |
|
58 | 64 | // > } |
59 | 65 | X int |
60 | 66 | // ^ definition 0.1.test `sg/embedded`/Inner#X. |
| 67 | +// kind Field |
61 | 68 | // display_name X |
62 | 69 | // signature_documentation |
63 | 70 | // > struct field X int |
64 | 71 | Y int |
65 | 72 | // ^ definition 0.1.test `sg/embedded`/Inner#Y. |
| 73 | +// kind Field |
66 | 74 | // display_name Y |
67 | 75 | // signature_documentation |
68 | 76 | // > struct field Y int |
69 | 77 | Z int |
70 | 78 | // ^ definition 0.1.test `sg/embedded`/Inner#Z. |
| 79 | +// kind Field |
71 | 80 | // display_name Z |
72 | 81 | // signature_documentation |
73 | 82 | // > struct field Z int |
74 | 83 | } |
75 | 84 |
|
76 | 85 | type Outer struct { |
77 | 86 | // ^^^^^ definition 0.1.test `sg/embedded`/Outer# |
| 87 | +// kind Struct |
78 | 88 | // display_name Outer |
79 | 89 | // signature_documentation |
80 | 90 | // > type Outer struct { |
|
83 | 93 | // > } |
84 | 94 | Inner |
85 | 95 | // ^^^^^ definition 0.1.test `sg/embedded`/Outer#Inner. |
| 96 | +// kind Field |
86 | 97 | // display_name Inner |
87 | 98 | // signature_documentation |
88 | 99 | // > struct field Inner Inner |
89 | 100 | // ^^^^^ reference 0.1.test `sg/embedded`/Inner# |
90 | 101 | W int |
91 | 102 | // ^ definition 0.1.test `sg/embedded`/Outer#W. |
| 103 | +// kind Field |
92 | 104 | // display_name W |
93 | 105 | // signature_documentation |
94 | 106 | // > struct field W int |
|
97 | 109 | //⌄ enclosing_range_start 0.1.test `sg/embedded`/useOfCompositeStructs(). |
98 | 110 | func useOfCompositeStructs() { |
99 | 111 | // ^^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/embedded`/useOfCompositeStructs(). |
| 112 | +// kind Function |
100 | 113 | // display_name useOfCompositeStructs |
101 | 114 | // signature_documentation |
102 | 115 | // > func useOfCompositeStructs() |
103 | 116 | o := Outer{ |
104 | 117 | // ^ definition local 1 |
| 118 | +// kind Variable |
105 | 119 | // display_name o |
106 | 120 | // signature_documentation |
107 | 121 | // > var o Outer |
|
0 commit comments