Esempio n. 1
0
        public void EnableRefactoring(string id)
        {
#if DEBUG
            Debug.WriteLineIf(DisabledRefactorings.Remove(id), $"refactoring {id} enabled");
#else
            DisabledRefactorings.Remove(id);
#endif
        }
Esempio n. 2
0
        public void DisableRefactoring(string id)
        {
#if DEBUG
            Debug.WriteLineIf(DisabledRefactorings.Add(id), $"refactoring {id} disabled");
#else
            DisabledRefactorings.Add(id);
#endif
        }
Esempio n. 3
0
 public bool IsRefactoringEnabled(string id)
 {
     return(!DisabledRefactorings.Contains(id));
 }
Esempio n. 4
0
 public void Reset()
 {
     PrefixFieldIdentifierWithUnderscore = true;
     DisabledRefactorings.Clear();
 }