aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api_light/src/snapshots
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_api_light/src/snapshots')
-rw-r--r--crates/ra_ide_api_light/src/snapshots/tests__file_structure.snap80
-rw-r--r--crates/ra_ide_api_light/src/snapshots/tests__highlighting.snap30
2 files changed, 110 insertions, 0 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
new file mode 100644
index 000000000..10eb5c724
--- /dev/null
+++ b/crates/ra_ide_api_light/src/snapshots/tests__file_structure.snap
@@ -0,0 +1,80 @@
1Created: 2019-01-15T11:15:21.073862814+00:00
2Creator: [email protected]
3Source: crates/ra_ide_api_light/src/structure.rs
4
5[
6 StructureNode {
7 parent: None,
8 label: "Foo",
9 navigation_range: [8; 11),
10 node_range: [1; 26),
11 kind: STRUCT_DEF
12 },
13 StructureNode {
14 parent: Some(
15 0
16 ),
17 label: "x",
18 navigation_range: [18; 19),
19 node_range: [18; 24),
20 kind: NAMED_FIELD_DEF
21 },
22 StructureNode {
23 parent: None,
24 label: "m",
25 navigation_range: [32; 33),
26 node_range: [28; 53),
27 kind: MODULE
28 },
29 StructureNode {
30 parent: Some(
31 2
32 ),
33 label: "bar",
34 navigation_range: [43; 46),
35 node_range: [40; 51),
36 kind: FN_DEF
37 },
38 StructureNode {
39 parent: None,
40 label: "E",
41 navigation_range: [60; 61),
42 node_range: [55; 75),
43 kind: ENUM_DEF
44 },
45 StructureNode {
46 parent: None,
47 label: "T",
48 navigation_range: [81; 82),
49 node_range: [76; 88),
50 kind: TYPE_DEF
51 },
52 StructureNode {
53 parent: None,
54 label: "S",
55 navigation_range: [96; 97),
56 node_range: [89; 108),
57 kind: STATIC_DEF
58 },
59 StructureNode {
60 parent: None,
61 label: "C",
62 navigation_range: [115; 116),
63 node_range: [109; 127),
64 kind: CONST_DEF
65 },
66 StructureNode {
67 parent: None,
68 label: "impl E",
69 navigation_range: [134; 135),
70 node_range: [129; 138),
71 kind: IMPL_BLOCK
72 },
73 StructureNode {
74 parent: None,
75 label: "impl fmt::Debug for E",
76 navigation_range: [160; 161),
77 node_range: [140; 164),
78 kind: IMPL_BLOCK
79 }
80]
diff --git a/crates/ra_ide_api_light/src/snapshots/tests__highlighting.snap b/crates/ra_ide_api_light/src/snapshots/tests__highlighting.snap
new file mode 100644
index 000000000..d8f44a713
--- /dev/null
+++ b/crates/ra_ide_api_light/src/snapshots/tests__highlighting.snap
@@ -0,0 +1,30 @@
1Created: 2019-01-15T11:15:21.073858657+00:00
2Creator: [email protected]
3Source: crates/ra_ide_api_light/src/lib.rs
4
5[
6 HighlightedRange {
7 range: [1; 11),
8 tag: "comment"
9 },
10 HighlightedRange {
11 range: [12; 14),
12 tag: "keyword"
13 },
14 HighlightedRange {
15 range: [15; 19),
16 tag: "function"
17 },
18 HighlightedRange {
19 range: [29; 37),
20 tag: "macro"
21 },
22 HighlightedRange {
23 range: [38; 50),
24 tag: "string"
25 },
26 HighlightedRange {
27 range: [52; 54),
28 tag: "literal"
29 }
30]