diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-06-29 12:01:36 +0100 |
---|---|---|
committer | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-06-29 12:01:36 +0100 |
commit | 2bfcfb0b0e5e518e8fc2779c6564ed1009d3f920 (patch) | |
tree | 97b1732bc0bcfb1aee6ffa6496d5f70be264ef95 /crates/ra_ide_api/src/completion/snapshots | |
parent | 8865db6768fd913b971df56fc0bcf7439fcb1e71 (diff) | |
parent | d37f960dfaac2272de3065ad586b25dc1cdb7dbd (diff) |
Merge #1457
1457: Complete associated methods on enums (and unions) as well r=matklad a=flodiebold
This has been seriously annoying me for a while ;)
Co-authored-by: Florian Diebold <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/completion/snapshots')
2 files changed, 38 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__enum_associated_method.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__enum_associated_method.snap new file mode 100644 index 000000000..ee6518fc8 --- /dev/null +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__enum_associated_method.snap | |||
@@ -0,0 +1,19 @@ | |||
1 | --- | ||
2 | created: "2019-06-29T10:30:34.110468474Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_ide_api/src/completion/completion_item.rs | ||
5 | expression: kind_completions | ||
6 | --- | ||
7 | [ | ||
8 | CompletionItem { | ||
9 | label: "m", | ||
10 | source_range: [100; 100), | ||
11 | delete: [100; 100), | ||
12 | insert: "m()$0", | ||
13 | kind: Function, | ||
14 | detail: "fn m()", | ||
15 | documentation: Documentation( | ||
16 | "An associated method", | ||
17 | ), | ||
18 | }, | ||
19 | ] | ||
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__union_associated_method.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__union_associated_method.snap new file mode 100644 index 000000000..1c1a250f4 --- /dev/null +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__union_associated_method.snap | |||
@@ -0,0 +1,19 @@ | |||
1 | --- | ||
2 | created: "2019-06-29T10:37:44.968500164Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_ide_api/src/completion/completion_item.rs | ||
5 | expression: kind_completions | ||
6 | --- | ||
7 | [ | ||
8 | CompletionItem { | ||
9 | label: "m", | ||
10 | source_range: [101; 101), | ||
11 | delete: [101; 101), | ||
12 | insert: "m()$0", | ||
13 | kind: Function, | ||
14 | detail: "fn m()", | ||
15 | documentation: Documentation( | ||
16 | "An associated method", | ||
17 | ), | ||
18 | }, | ||
19 | ] | ||