From d37f960dfaac2272de3065ad586b25dc1cdb7dbd Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Sat, 29 Jun 2019 12:40:01 +0200 Subject: Complete associated methods on enums (and unions) as well --- .../completion_item__enum_associated_method.snap | 19 +++++++++++++++++++ .../completion_item__union_associated_method.snap | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 crates/ra_ide_api/src/completion/snapshots/completion_item__enum_associated_method.snap create mode 100644 crates/ra_ide_api/src/completion/snapshots/completion_item__union_associated_method.snap (limited to 'crates/ra_ide_api/src/completion/snapshots') 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 @@ +--- +created: "2019-06-29T10:30:34.110468474Z" +creator: insta@0.8.1 +source: crates/ra_ide_api/src/completion/completion_item.rs +expression: kind_completions +--- +[ + CompletionItem { + label: "m", + source_range: [100; 100), + delete: [100; 100), + insert: "m()$0", + kind: Function, + detail: "fn m()", + documentation: Documentation( + "An associated method", + ), + }, +] 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 @@ +--- +created: "2019-06-29T10:37:44.968500164Z" +creator: insta@0.8.1 +source: crates/ra_ide_api/src/completion/completion_item.rs +expression: kind_completions +--- +[ + CompletionItem { + label: "m", + source_range: [101; 101), + delete: [101; 101), + insert: "m()$0", + kind: Function, + detail: "fn m()", + documentation: Documentation( + "An associated method", + ), + }, +] -- cgit v1.2.3