aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/completion/snapshots
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2019-06-29 11:40:01 +0100
committerFlorian Diebold <[email protected]>2019-06-29 11:40:01 +0100
commitd37f960dfaac2272de3065ad586b25dc1cdb7dbd (patch)
tree64c33aff77b965c568819a54b9c888dd82621412 /crates/ra_ide_api/src/completion/snapshots
parent64f71dd3fff7b902656a2c2465a1b5071b2b1903 (diff)
Complete associated methods on enums (and unions) as well
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]