Example #1
0
 public override void Rename(ISymbol symbol, string name)
 {
     if (symbol is IEntity)
     {
         RenameRefactoring.Rename((IEntity)symbol, name);
     }
     if (symbol is IVariable)
     {
         RenameRefactoring.RenameVariable((IVariable)symbol, name);
     }
     if (symbol is INamespace)
     {
         RenameRefactoring.RenameNamespace((INamespace)symbol, name);
     }
     if (symbol is ITypeParameter)
     {
         RenameRefactoring.RenameTypeParameter((ITypeParameter)symbol, name);
     }
 }
Example #2
0
 public override void RenameTypeParameter(IType typeParameter, string name = null)
 {
     RenameRefactoring.RenameTypeParameter((ITypeParameter)typeParameter, name);
 }