diff options
Diffstat (limited to 'crates/ra_ide_api/src/snapshots')
7 files changed, 100 insertions, 100 deletions
diff --git a/crates/ra_ide_api/src/snapshots/tests__highlighting.snap b/crates/ra_ide_api/src/snapshots/tests__highlighting.snap index 9d4c04db3..9c60aed2a 100644 --- a/crates/ra_ide_api/src/snapshots/tests__highlighting.snap +++ b/crates/ra_ide_api/src/snapshots/tests__highlighting.snap | |||
@@ -1,5 +1,5 @@ | |||
1 | --- | 1 | --- |
2 | created: "2019-05-23T12:10:32.628883358Z" | 2 | created: "2019-05-23T22:23:35.242742395Z" |
3 | creator: [email protected] | 3 | creator: [email protected] |
4 | source: crates/ra_ide_api/src/syntax_highlighting.rs | 4 | source: crates/ra_ide_api/src/syntax_highlighting.rs |
5 | expression: result | 5 | expression: result |
@@ -8,139 +8,139 @@ Ok( | |||
8 | [ | 8 | [ |
9 | HighlightedRange { | 9 | HighlightedRange { |
10 | range: [1; 24), | 10 | range: [1; 24), |
11 | tag: "attribute" | 11 | tag: "attribute", |
12 | }, | 12 | }, |
13 | HighlightedRange { | 13 | HighlightedRange { |
14 | range: [25; 31), | 14 | range: [25; 31), |
15 | tag: "keyword" | 15 | tag: "keyword", |
16 | }, | 16 | }, |
17 | HighlightedRange { | 17 | HighlightedRange { |
18 | range: [32; 35), | 18 | range: [32; 35), |
19 | tag: "function" | 19 | tag: "function", |
20 | }, | 20 | }, |
21 | HighlightedRange { | 21 | HighlightedRange { |
22 | range: [42; 45), | 22 | range: [42; 45), |
23 | tag: "keyword" | 23 | tag: "keyword", |
24 | }, | 24 | }, |
25 | HighlightedRange { | 25 | HighlightedRange { |
26 | range: [46; 47), | 26 | range: [46; 47), |
27 | tag: "function" | 27 | tag: "function", |
28 | }, | 28 | }, |
29 | HighlightedRange { | 29 | HighlightedRange { |
30 | range: [49; 52), | 30 | range: [49; 52), |
31 | tag: "text" | 31 | tag: "text", |
32 | }, | 32 | }, |
33 | HighlightedRange { | 33 | HighlightedRange { |
34 | range: [58; 61), | 34 | range: [58; 61), |
35 | tag: "keyword" | 35 | tag: "keyword", |
36 | }, | 36 | }, |
37 | HighlightedRange { | 37 | HighlightedRange { |
38 | range: [62; 63), | 38 | range: [62; 63), |
39 | tag: "function" | 39 | tag: "function", |
40 | }, | 40 | }, |
41 | HighlightedRange { | 41 | HighlightedRange { |
42 | range: [65; 68), | 42 | range: [65; 68), |
43 | tag: "text" | 43 | tag: "text", |
44 | }, | 44 | }, |
45 | HighlightedRange { | 45 | HighlightedRange { |
46 | range: [73; 75), | 46 | range: [73; 75), |
47 | tag: "keyword" | 47 | tag: "keyword", |
48 | }, | 48 | }, |
49 | HighlightedRange { | 49 | HighlightedRange { |
50 | range: [76; 79), | 50 | range: [76; 79), |
51 | tag: "function" | 51 | tag: "function", |
52 | }, | 52 | }, |
53 | HighlightedRange { | 53 | HighlightedRange { |
54 | range: [80; 81), | 54 | range: [80; 81), |
55 | tag: "type" | 55 | tag: "type", |
56 | }, | 56 | }, |
57 | HighlightedRange { | 57 | HighlightedRange { |
58 | range: [80; 81), | 58 | range: [80; 81), |
59 | tag: "function" | 59 | tag: "function", |
60 | }, | 60 | }, |
61 | HighlightedRange { | 61 | HighlightedRange { |
62 | range: [88; 89), | 62 | range: [88; 89), |
63 | tag: "type" | 63 | tag: "type", |
64 | }, | 64 | }, |
65 | HighlightedRange { | 65 | HighlightedRange { |
66 | range: [96; 110), | 66 | range: [96; 110), |
67 | tag: "macro" | 67 | tag: "macro", |
68 | }, | 68 | }, |
69 | HighlightedRange { | 69 | HighlightedRange { |
70 | range: [117; 127), | 70 | range: [117; 127), |
71 | tag: "comment" | 71 | tag: "comment", |
72 | }, | 72 | }, |
73 | HighlightedRange { | 73 | HighlightedRange { |
74 | range: [128; 130), | 74 | range: [128; 130), |
75 | tag: "keyword" | 75 | tag: "keyword", |
76 | }, | 76 | }, |
77 | HighlightedRange { | 77 | HighlightedRange { |
78 | range: [131; 135), | 78 | range: [131; 135), |
79 | tag: "function" | 79 | tag: "function", |
80 | }, | 80 | }, |
81 | HighlightedRange { | 81 | HighlightedRange { |
82 | range: [145; 153), | 82 | range: [145; 153), |
83 | tag: "macro" | 83 | tag: "macro", |
84 | }, | 84 | }, |
85 | HighlightedRange { | 85 | HighlightedRange { |
86 | range: [154; 166), | 86 | range: [154; 166), |
87 | tag: "string" | 87 | tag: "string", |
88 | }, | 88 | }, |
89 | HighlightedRange { | 89 | HighlightedRange { |
90 | range: [168; 170), | 90 | range: [168; 170), |
91 | tag: "literal" | 91 | tag: "literal", |
92 | }, | 92 | }, |
93 | HighlightedRange { | 93 | HighlightedRange { |
94 | range: [178; 181), | 94 | range: [178; 181), |
95 | tag: "keyword" | 95 | tag: "keyword", |
96 | }, | 96 | }, |
97 | HighlightedRange { | 97 | HighlightedRange { |
98 | range: [182; 185), | 98 | range: [182; 185), |
99 | tag: "keyword" | 99 | tag: "keyword", |
100 | }, | 100 | }, |
101 | HighlightedRange { | 101 | HighlightedRange { |
102 | range: [186; 189), | 102 | range: [186; 189), |
103 | tag: "macro" | 103 | tag: "macro", |
104 | }, | 104 | }, |
105 | HighlightedRange { | 105 | HighlightedRange { |
106 | range: [197; 200), | 106 | range: [197; 200), |
107 | tag: "macro" | 107 | tag: "macro", |
108 | }, | 108 | }, |
109 | HighlightedRange { | 109 | HighlightedRange { |
110 | range: [192; 195), | 110 | range: [192; 195), |
111 | tag: "text" | 111 | tag: "text", |
112 | }, | 112 | }, |
113 | HighlightedRange { | 113 | HighlightedRange { |
114 | range: [208; 211), | 114 | range: [208; 211), |
115 | tag: "macro" | 115 | tag: "macro", |
116 | }, | 116 | }, |
117 | HighlightedRange { | 117 | HighlightedRange { |
118 | range: [212; 216), | 118 | range: [212; 216), |
119 | tag: "macro" | 119 | tag: "macro", |
120 | }, | 120 | }, |
121 | HighlightedRange { | 121 | HighlightedRange { |
122 | range: [226; 227), | 122 | range: [226; 227), |
123 | tag: "literal" | 123 | tag: "literal", |
124 | }, | 124 | }, |
125 | HighlightedRange { | 125 | HighlightedRange { |
126 | range: [232; 233), | 126 | range: [232; 233), |
127 | tag: "literal" | 127 | tag: "literal", |
128 | }, | 128 | }, |
129 | HighlightedRange { | 129 | HighlightedRange { |
130 | range: [242; 248), | 130 | range: [242; 248), |
131 | tag: "keyword.unsafe" | 131 | tag: "keyword.unsafe", |
132 | }, | 132 | }, |
133 | HighlightedRange { | 133 | HighlightedRange { |
134 | range: [251; 254), | 134 | range: [251; 254), |
135 | tag: "text" | 135 | tag: "text", |
136 | }, | 136 | }, |
137 | HighlightedRange { | 137 | HighlightedRange { |
138 | range: [255; 262), | 138 | range: [255; 262), |
139 | tag: "text" | 139 | tag: "text", |
140 | }, | 140 | }, |
141 | HighlightedRange { | 141 | HighlightedRange { |
142 | range: [263; 264), | 142 | range: [263; 264), |
143 | tag: "literal" | 143 | tag: "literal", |
144 | } | 144 | }, |
145 | ] | 145 | ], |
146 | ) | 146 | ) |
diff --git a/crates/ra_ide_api/src/snapshots/tests__rename_mod.snap b/crates/ra_ide_api/src/snapshots/tests__rename_mod.snap index 890426db7..431de5c55 100644 --- a/crates/ra_ide_api/src/snapshots/tests__rename_mod.snap +++ b/crates/ra_ide_api/src/snapshots/tests__rename_mod.snap | |||
@@ -1,8 +1,8 @@ | |||
1 | --- | 1 | --- |
2 | created: "2019-01-24T08:39:53.759318522+00:00" | 2 | created: "2019-05-23T22:23:35.215905447Z" |
3 | creator: [email protected] | 3 | creator: [email protected] |
4 | source: crates/ra_ide_api/src/references.rs | ||
4 | expression: "&source_change" | 5 | expression: "&source_change" |
5 | source: crates/ra_ide_api/src/rename.rs | ||
6 | --- | 6 | --- |
7 | Some( | 7 | Some( |
8 | SourceChange { | 8 | SourceChange { |
@@ -10,29 +10,29 @@ Some( | |||
10 | source_file_edits: [ | 10 | source_file_edits: [ |
11 | SourceFileEdit { | 11 | SourceFileEdit { |
12 | file_id: FileId( | 12 | file_id: FileId( |
13 | 2 | 13 | 2, |
14 | ), | 14 | ), |
15 | edit: TextEdit { | 15 | edit: TextEdit { |
16 | atoms: [ | 16 | atoms: [ |
17 | AtomTextEdit { | 17 | AtomTextEdit { |
18 | delete: [4; 7), | 18 | delete: [4; 7), |
19 | insert: "foo2" | 19 | insert: "foo2", |
20 | } | 20 | }, |
21 | ] | 21 | ], |
22 | } | 22 | }, |
23 | } | 23 | }, |
24 | ], | 24 | ], |
25 | file_system_edits: [ | 25 | file_system_edits: [ |
26 | MoveFile { | 26 | MoveFile { |
27 | src: FileId( | 27 | src: FileId( |
28 | 3 | 28 | 3, |
29 | ), | 29 | ), |
30 | dst_source_root: SourceRootId( | 30 | dst_source_root: SourceRootId( |
31 | 0 | 31 | 0, |
32 | ), | 32 | ), |
33 | dst_path: "bar/foo2.rs" | 33 | dst_path: "bar/foo2.rs", |
34 | } | 34 | }, |
35 | ], | 35 | ], |
36 | cursor_position: None | 36 | cursor_position: None, |
37 | } | 37 | }, |
38 | ) | 38 | ) |
diff --git a/crates/ra_ide_api/src/snapshots/tests__rename_mod_in_dir.snap b/crates/ra_ide_api/src/snapshots/tests__rename_mod_in_dir.snap index e96bf5c02..aaff9b4b5 100644 --- a/crates/ra_ide_api/src/snapshots/tests__rename_mod_in_dir.snap +++ b/crates/ra_ide_api/src/snapshots/tests__rename_mod_in_dir.snap | |||
@@ -1,8 +1,8 @@ | |||
1 | --- | 1 | --- |
2 | created: "2019-01-22T14:45:00.975229300+00:00" | 2 | created: "2019-05-23T22:23:35.213830371Z" |
3 | creator: [email protected] | 3 | creator: [email protected] |
4 | source: crates/ra_ide_api/src/references.rs | ||
4 | expression: "&source_change" | 5 | expression: "&source_change" |
5 | source: "crates\\ra_ide_api\\src\\rename.rs" | ||
6 | --- | 6 | --- |
7 | Some( | 7 | Some( |
8 | SourceChange { | 8 | SourceChange { |
@@ -10,29 +10,29 @@ Some( | |||
10 | source_file_edits: [ | 10 | source_file_edits: [ |
11 | SourceFileEdit { | 11 | SourceFileEdit { |
12 | file_id: FileId( | 12 | file_id: FileId( |
13 | 1 | 13 | 1, |
14 | ), | 14 | ), |
15 | edit: TextEdit { | 15 | edit: TextEdit { |
16 | atoms: [ | 16 | atoms: [ |
17 | AtomTextEdit { | 17 | AtomTextEdit { |
18 | delete: [4; 7), | 18 | delete: [4; 7), |
19 | insert: "foo2" | 19 | insert: "foo2", |
20 | } | 20 | }, |
21 | ] | 21 | ], |
22 | } | 22 | }, |
23 | } | 23 | }, |
24 | ], | 24 | ], |
25 | file_system_edits: [ | 25 | file_system_edits: [ |
26 | MoveFile { | 26 | MoveFile { |
27 | src: FileId( | 27 | src: FileId( |
28 | 2 | 28 | 2, |
29 | ), | 29 | ), |
30 | dst_source_root: SourceRootId( | 30 | dst_source_root: SourceRootId( |
31 | 0 | 31 | 0, |
32 | ), | 32 | ), |
33 | dst_path: "foo2/mod.rs" | 33 | dst_path: "foo2/mod.rs", |
34 | } | 34 | }, |
35 | ], | 35 | ], |
36 | cursor_position: None | 36 | cursor_position: None, |
37 | } | 37 | }, |
38 | ) | 38 | ) |
diff --git a/crates/ra_ide_api/src/snapshots/tests__runnables.snap b/crates/ra_ide_api/src/snapshots/tests__runnables.snap index 71bd7a4bd..de2fadd7f 100644 --- a/crates/ra_ide_api/src/snapshots/tests__runnables.snap +++ b/crates/ra_ide_api/src/snapshots/tests__runnables.snap | |||
@@ -1,24 +1,24 @@ | |||
1 | --- | 1 | --- |
2 | created: "2019-01-22T14:45:00.975229300+00:00" | 2 | created: "2019-05-23T22:23:35.217100106Z" |
3 | creator: [email protected] | 3 | creator: [email protected] |
4 | source: crates/ra_ide_api/src/runnables.rs | ||
4 | expression: "&runnables" | 5 | expression: "&runnables" |
5 | source: "crates\\ra_ide_api\\src\\runnables.rs" | ||
6 | --- | 6 | --- |
7 | [ | 7 | [ |
8 | Runnable { | 8 | Runnable { |
9 | range: [1; 21), | 9 | range: [1; 21), |
10 | kind: Bin | 10 | kind: Bin, |
11 | }, | 11 | }, |
12 | Runnable { | 12 | Runnable { |
13 | range: [22; 46), | 13 | range: [22; 46), |
14 | kind: Test { | 14 | kind: Test { |
15 | name: "test_foo" | 15 | name: "test_foo", |
16 | } | 16 | }, |
17 | }, | 17 | }, |
18 | Runnable { | 18 | Runnable { |
19 | range: [47; 81), | 19 | range: [47; 81), |
20 | kind: Test { | 20 | kind: Test { |
21 | name: "test_foo" | 21 | name: "test_foo", |
22 | } | 22 | }, |
23 | } | 23 | }, |
24 | ] | 24 | ] |
diff --git a/crates/ra_ide_api/src/snapshots/tests__runnables_module.snap b/crates/ra_ide_api/src/snapshots/tests__runnables_module.snap index a28dd8952..23993a97f 100644 --- a/crates/ra_ide_api/src/snapshots/tests__runnables_module.snap +++ b/crates/ra_ide_api/src/snapshots/tests__runnables_module.snap | |||
@@ -1,20 +1,20 @@ | |||
1 | --- | 1 | --- |
2 | created: "2019-01-22T14:45:00.976230700+00:00" | 2 | created: "2019-05-23T22:23:35.219258850Z" |
3 | creator: [email protected] | 3 | creator: [email protected] |
4 | source: crates/ra_ide_api/src/runnables.rs | ||
4 | expression: "&runnables" | 5 | expression: "&runnables" |
5 | source: "crates\\ra_ide_api\\src\\runnables.rs" | ||
6 | --- | 6 | --- |
7 | [ | 7 | [ |
8 | Runnable { | 8 | Runnable { |
9 | range: [1; 59), | 9 | range: [1; 59), |
10 | kind: TestMod { | 10 | kind: TestMod { |
11 | path: "test_mod" | 11 | path: "test_mod", |
12 | } | 12 | }, |
13 | }, | 13 | }, |
14 | Runnable { | 14 | Runnable { |
15 | range: [28; 57), | 15 | range: [28; 57), |
16 | kind: Test { | 16 | kind: Test { |
17 | name: "test_foo1" | 17 | name: "test_foo1", |
18 | } | 18 | }, |
19 | } | 19 | }, |
20 | ] | 20 | ] |
diff --git a/crates/ra_ide_api/src/snapshots/tests__runnables_multiple_depth_module.snap b/crates/ra_ide_api/src/snapshots/tests__runnables_multiple_depth_module.snap index 79f07bef9..c516a61df 100644 --- a/crates/ra_ide_api/src/snapshots/tests__runnables_multiple_depth_module.snap +++ b/crates/ra_ide_api/src/snapshots/tests__runnables_multiple_depth_module.snap | |||
@@ -1,20 +1,20 @@ | |||
1 | --- | 1 | --- |
2 | created: "2019-01-22T14:45:00.979218100+00:00" | 2 | created: "2019-05-23T22:23:35.219671663Z" |
3 | creator: [email protected] | 3 | creator: [email protected] |
4 | source: crates/ra_ide_api/src/runnables.rs | ||
4 | expression: "&runnables" | 5 | expression: "&runnables" |
5 | source: "crates\\ra_ide_api\\src\\runnables.rs" | ||
6 | --- | 6 | --- |
7 | [ | 7 | [ |
8 | Runnable { | 8 | Runnable { |
9 | range: [41; 115), | 9 | range: [41; 115), |
10 | kind: TestMod { | 10 | kind: TestMod { |
11 | path: "foo::bar::test_mod" | 11 | path: "foo::bar::test_mod", |
12 | } | 12 | }, |
13 | }, | 13 | }, |
14 | Runnable { | 14 | Runnable { |
15 | range: [68; 105), | 15 | range: [68; 105), |
16 | kind: Test { | 16 | kind: Test { |
17 | name: "test_foo1" | 17 | name: "test_foo1", |
18 | } | 18 | }, |
19 | } | 19 | }, |
20 | ] | 20 | ] |
diff --git a/crates/ra_ide_api/src/snapshots/tests__runnables_one_depth_layer_module.snap b/crates/ra_ide_api/src/snapshots/tests__runnables_one_depth_layer_module.snap index d199e9073..b02e6707e 100644 --- a/crates/ra_ide_api/src/snapshots/tests__runnables_one_depth_layer_module.snap +++ b/crates/ra_ide_api/src/snapshots/tests__runnables_one_depth_layer_module.snap | |||
@@ -1,20 +1,20 @@ | |||
1 | --- | 1 | --- |
2 | created: "2019-01-22T14:45:01.016119500+00:00" | 2 | created: "2019-05-23T22:23:35.224315047Z" |
3 | creator: [email protected] | 3 | creator: [email protected] |
4 | source: crates/ra_ide_api/src/runnables.rs | ||
4 | expression: "&runnables" | 5 | expression: "&runnables" |
5 | source: "crates\\ra_ide_api\\src\\runnables.rs" | ||
6 | --- | 6 | --- |
7 | [ | 7 | [ |
8 | Runnable { | 8 | Runnable { |
9 | range: [23; 85), | 9 | range: [23; 85), |
10 | kind: TestMod { | 10 | kind: TestMod { |
11 | path: "foo::test_mod" | 11 | path: "foo::test_mod", |
12 | } | 12 | }, |
13 | }, | 13 | }, |
14 | Runnable { | 14 | Runnable { |
15 | range: [46; 79), | 15 | range: [46; 79), |
16 | kind: Test { | 16 | kind: Test { |
17 | name: "test_foo1" | 17 | name: "test_foo1", |
18 | } | 18 | }, |
19 | } | 19 | }, |
20 | ] | 20 | ] |