1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
source: crates/mun_language_server/tests/initialization.rs
assertion_line: 50
expression: symbols
---
Some(
Nested(
[
DocumentSymbol {
name: "main",
detail: Some(
"fn() -> i32",
),
kind: Function,
tags: None,
deprecated: None,
range: Range {
start: Position {
line: 0,
character: 0,
},
end: Position {
line: 0,
character: 19,
},
},
selection_range: Range {
start: Position {
line: 0,
character: 3,
},
end: Position {
line: 0,
character: 7,
},
},
children: None,
},
DocumentSymbol {
name: "Foo",
detail: None,
kind: Struct,
tags: None,
deprecated: None,
range: Range {
start: Position {
line: 1,
character: 0,
},
end: Position {
line: 1,
character: 13,
},
},
selection_range: Range {
start: Position {
line: 1,
character: 7,
},
end: Position {
line: 1,
character: 10,
},
},
children: None,
},
DocumentSymbol {
name: "Bar",
detail: Some(
"Foo",
),
kind: TypeParameter,
tags: None,
deprecated: None,
range: Range {
start: Position {
line: 2,
character: 0,
},
end: Position {
line: 2,
character: 15,
},
},
selection_range: Range {
start: Position {
line: 2,
character: 5,
},
end: Position {
line: 2,
character: 8,
},
},
children: None,
},
],
),
)