コード例 #1
0
 public IEnumerable <AtomicRenameBase> CreateAtomicRenames(IDeclaredElement declaredElement, string newName,
                                                           bool doNotAddBindingConflicts)
 {
     return(new[] { new UnityEventTargetAtomicRename(declaredElement.GetSolution(), declaredElement, newName, UnityRenameUtil.IsRenameShouldBeSilent(declaredElement)) });
 }
コード例 #2
0
        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)) });
        }