File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,9 @@ class CodeCompletionContext {
9090 }
9191
9292 // / Allocate a string owned by the code completion context.
93- StringRef copyString (StringRef Str);
93+ StringRef copyString (StringRef Str) {
94+ return Str.copy (*CurrentResults.Allocator );
95+ }
9496
9597 // / Sort code completion results in an implementation-defined order
9698 // / in place.
Original file line number Diff line number Diff line change 1515using namespace swift ;
1616using namespace swift ::ide;
1717
18- StringRef CodeCompletionContext::copyString (StringRef Str) {
19- return Str.copy (*CurrentResults.Allocator );
20- }
21-
2218std::vector<CodeCompletionResult *>
2319CodeCompletionContext::sortCompletionResults (
2420 ArrayRef<CodeCompletionResult *> Results) {
You can’t perform that action at this time.
0 commit comments