aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api_light/src/snapshots
diff options
context:
space:
mode:
authorHrvoje Ban <[email protected]>2019-01-24 17:21:17 +0000
committerHrvoje Ban <[email protected]>2019-01-24 18:05:26 +0000
commit4eff8ddb8b8352d432d87198d43c674696ca9344 (patch)
tree3181a8947d462331ae9bcd4ac2f11266f91e2c37 /crates/ra_ide_api_light/src/snapshots
parentabb9bfe44dfe1fb0685ead5e000ed281c55c8968 (diff)
Fill in DocumentSymbol::detail
Diffstat (limited to 'crates/ra_ide_api_light/src/snapshots')
-rw-r--r--crates/ra_ide_api_light/src/snapshots/tests__file_structure.snap98
1 files changed, 71 insertions, 27 deletions
diff --git a/crates/ra_ide_api_light/src/snapshots/tests__file_structure.snap b/crates/ra_ide_api_light/src/snapshots/tests__file_structure.snap
index 4661ea2c4..b96398950 100644
--- a/crates/ra_ide_api_light/src/snapshots/tests__file_structure.snap
+++ b/crates/ra_ide_api_light/src/snapshots/tests__file_structure.snap
@@ -1,5 +1,5 @@
1--- 1---
2created: "2019-01-22T14:45:01.959724300+00:00" 2created: "2019-01-24T18:04:00.090162+00:00"
3creator: [email protected] 3creator: [email protected]
4expression: structure 4expression: structure
5source: "crates\\ra_ide_api_light\\src\\structure.rs" 5source: "crates\\ra_ide_api_light\\src\\structure.rs"
@@ -10,7 +10,8 @@ source: "crates\\ra_ide_api_light\\src\\structure.rs"
10 label: "Foo", 10 label: "Foo",
11 navigation_range: [8; 11), 11 navigation_range: [8; 11),
12 node_range: [1; 26), 12 node_range: [1; 26),
13 kind: STRUCT_DEF 13 kind: STRUCT_DEF,
14 detail: None
14 }, 15 },
15 StructureNode { 16 StructureNode {
16 parent: Some( 17 parent: Some(
@@ -19,64 +20,107 @@ source: "crates\\ra_ide_api_light\\src\\structure.rs"
19 label: "x", 20 label: "x",
20 navigation_range: [18; 19), 21 navigation_range: [18; 19),
21 node_range: [18; 24), 22 node_range: [18; 24),
22 kind: NAMED_FIELD_DEF 23 kind: NAMED_FIELD_DEF,
24 detail: Some(
25 "i32"
26 )
23 }, 27 },
24 StructureNode { 28 StructureNode {
25 parent: None, 29 parent: None,
26 label: "m", 30 label: "m",
27 navigation_range: [32; 33), 31 navigation_range: [32; 33),
28 node_range: [28; 53), 32 node_range: [28; 158),
29 kind: MODULE 33 kind: MODULE,
34 detail: None
30 }, 35 },
31 StructureNode { 36 StructureNode {
32 parent: Some( 37 parent: Some(
33 2 38 2
34 ), 39 ),
35 label: "bar", 40 label: "bar1",
36 navigation_range: [43; 46), 41 navigation_range: [43; 47),
37 node_range: [40; 51), 42 node_range: [40; 52),
38 kind: FN_DEF 43 kind: FN_DEF,
44 detail: Some(
45 "fn()"
46 )
47 },
48 StructureNode {
49 parent: Some(
50 2
51 ),
52 label: "bar2",
53 navigation_range: [60; 64),
54 node_range: [57; 81),
55 kind: FN_DEF,
56 detail: Some(
57 "fn<T>(t: T) -> T"
58 )
59 },
60 StructureNode {
61 parent: Some(
62 2
63 ),
64 label: "bar3",
65 navigation_range: [89; 93),
66 node_range: [86; 156),
67 kind: FN_DEF,
68 detail: Some(
69 "fn<A, B>(a: A, b: B) -> Vec< u32 >"
70 )
39 }, 71 },
40 StructureNode { 72 StructureNode {
41 parent: None, 73 parent: None,
42 label: "E", 74 label: "E",
43 navigation_range: [60; 61), 75 navigation_range: [165; 166),
44 node_range: [55; 75), 76 node_range: [160; 180),
45 kind: ENUM_DEF 77 kind: ENUM_DEF,
78 detail: None
46 }, 79 },
47 StructureNode { 80 StructureNode {
48 parent: None, 81 parent: None,
49 label: "T", 82 label: "T",
50 navigation_range: [81; 82), 83 navigation_range: [186; 187),
51 node_range: [76; 88), 84 node_range: [181; 193),
52 kind: TYPE_DEF 85 kind: TYPE_DEF,
86 detail: Some(
87 "()"
88 )
53 }, 89 },
54 StructureNode { 90 StructureNode {
55 parent: None, 91 parent: None,
56 label: "S", 92 label: "S",
57 navigation_range: [96; 97), 93 navigation_range: [201; 202),
58 node_range: [89; 108), 94 node_range: [194; 213),
59 kind: STATIC_DEF 95 kind: STATIC_DEF,
96 detail: Some(
97 "i32"
98 )
60 }, 99 },
61 StructureNode { 100 StructureNode {
62 parent: None, 101 parent: None,
63 label: "C", 102 label: "C",
64 navigation_range: [115; 116), 103 navigation_range: [220; 221),
65 node_range: [109; 127), 104 node_range: [214; 232),
66 kind: CONST_DEF 105 kind: CONST_DEF,
106 detail: Some(
107 "i32"
108 )
67 }, 109 },
68 StructureNode { 110 StructureNode {
69 parent: None, 111 parent: None,
70 label: "impl E", 112 label: "impl E",
71 navigation_range: [134; 135), 113 navigation_range: [239; 240),
72 node_range: [129; 138), 114 node_range: [234; 243),
73 kind: IMPL_BLOCK 115 kind: IMPL_BLOCK,
116 detail: None
74 }, 117 },
75 StructureNode { 118 StructureNode {
76 parent: None, 119 parent: None,
77 label: "impl fmt::Debug for E", 120 label: "impl fmt::Debug for E",
78 navigation_range: [160; 161), 121 navigation_range: [265; 266),
79 node_range: [140; 164), 122 node_range: [245; 269),
80 kind: IMPL_BLOCK 123 kind: IMPL_BLOCK,
124 detail: None
81 } 125 }
82] 126]