public IEnumerable <AtomicRenameBase> CreateAtomicRenames(IDeclaredElement declaredElement, string newName, bool doNotAddBindingConflicts) { return(new[] { new UnityEventTargetAtomicRename(declaredElement.GetSolution(), declaredElement, newName, UnityRenameUtil.IsRenameShouldBeSilent(declaredElement)) }); }
public IEnumerable <AtomicRenameBase> CreateAtomicRenames(IDeclaredElement declaredElement, string newName, bool doNotAddBindingConflicts) { var settingsStore = declaredElement.GetSolution().GetComponent <ISettingsStore>(); var knownTypesCache = declaredElement.GetSolution().GetComponent <KnownTypesCache>(); return(new[] { new FormerlySerializedAsAtomicRename(declaredElement, newName, settingsStore, knownTypesCache, UnityRenameUtil.IsRenameShouldBeSilent(declaredElement)) }); }