aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/completion/snapshots
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-06-29 12:01:36 +0100
committerbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-06-29 12:01:36 +0100
commit2bfcfb0b0e5e518e8fc2779c6564ed1009d3f920 (patch)
tree97b1732bc0bcfb1aee6ffa6496d5f70be264ef95 /crates/ra_ide_api/src/completion/snapshots
parent8865db6768fd913b971df56fc0bcf7439fcb1e71 (diff)
parentd37f960dfaac2272de3065ad586b25dc1cdb7dbd (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')
-rw-r--r--crates/ra_ide_api/src/completion/snapshots/completion_item__enum_associated_method.snap19
-rw-r--r--crates/ra_ide_api/src/completion/snapshots/completion_item__union_associated_method.snap19
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---
2created: "2019-06-29T10:30:34.110468474Z"
3creator: [email protected]
4source: crates/ra_ide_api/src/completion/completion_item.rs
5expression: 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---
2created: "2019-06-29T10:37:44.968500164Z"
3creator: [email protected]
4source: crates/ra_ide_api/src/completion/completion_item.rs
5expression: 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]