void handle(AtomicChanges SourceReplacements) override {
Result = std::move(SourceReplacements);
}
+ void handle(SymbolOccurrences Occurrences) override {
+ RefactoringResultConsumer::handle(std::move(Occurrences));
+ }
public:
Optional<Expected<AtomicChanges>> Result;
void handle(SymbolOccurrences Occurrences) override {
Result = std::move(Occurrences);
}
+ void handle(AtomicChanges Changes) override {
+ RefactoringResultConsumer::handle(std::move(Changes));
+ }
public:
Optional<SymbolOccurrences> Result;
Occurrences.push_back(SymbolOccurrence(
SymbolName("test"), SymbolOccurrence::MatchingSymbol,
Selection.getRange().getBegin()));
- return Occurrences;
+ return std::move(Occurrences);
},
requiredSelection(
selection::identity<selection::SourceSelectionRange>()));