mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] Merge local refactoring implementations
Retrieving local rename ranges and the local rename refactoring both had almost identical methods, except for the addition of retrieving the outermost shadowed decl that was added a couple months back. Merge them. Resolves rdar://106529370.
This commit is contained in:
@@ -148,9 +148,8 @@ struct RenameRefInfo {
|
||||
bool IsArgLabel; ///< Whether Loc is on an arg label, rather than base name.
|
||||
};
|
||||
|
||||
void collectRenameAvailabilityInfo(
|
||||
const ValueDecl *VD, Optional<RenameRefInfo> RefInfo,
|
||||
llvm::SmallVectorImpl<RenameAvailabilityInfo> &Infos);
|
||||
Optional<RenameAvailabilityInfo>
|
||||
renameAvailabilityInfo(const ValueDecl *VD, Optional<RenameRefInfo> RefInfo);
|
||||
|
||||
} // namespace ide
|
||||
} // namespace swift
|
||||
|
||||
Reference in New Issue
Block a user