File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,8 @@ public bool IsRenameableDecl(Declaration decl)
111
111
if ( decl is TypedefDecl )
112
112
return Targets . HasFlag ( RenameTargets . Delegate ) ;
113
113
114
- if ( decl is Namespace && ! ( decl is TranslationUnit ) ) return true ;
114
+ if ( decl is Namespace && ! ( decl is TranslationUnit ) )
115
+ return Targets . HasFlag ( RenameTargets . Namespace ) ;
115
116
116
117
if ( decl is Variable )
117
118
return Targets . HasFlag ( RenameTargets . Variable ) ;
@@ -306,7 +307,8 @@ public enum RenameTargets
306
307
Property = 1 << 8 ,
307
308
Delegate = 1 << 9 ,
308
309
Variable = 1 << 10 ,
309
- Any = Function | Method | Parameter | Class | Field | Enum | EnumItem | Event | Property | Delegate | Variable
310
+ Namespace = 1 << 11 ,
311
+ Any = Function | Method | Parameter | Class | Field | Enum | EnumItem | Event | Property | Delegate | Variable | Namespace
310
312
}
311
313
312
314
/// <summary>
You can’t perform that action at this time.
0 commit comments