|
|
@ -55,8 +55,10 @@ namespace ICSharpCode.NRefactory.CSharp.Refactoring |
|
|
|
|
|
|
|
|
|
|
|
void CheckName(TypeDeclaration node, AffectedEntity entity, Identifier identifier, Modifiers accessibilty) |
|
|
|
void CheckName(TypeDeclaration node, AffectedEntity entity, Identifier identifier, Modifiers accessibilty) |
|
|
|
{ |
|
|
|
{ |
|
|
|
ResolveResult resolveResult = ctx.Resolve(node); |
|
|
|
TypeResolveResult resolveResult = ctx.Resolve(node) as TypeResolveResult; |
|
|
|
var type = ((TypeResolveResult)resolveResult).Type; |
|
|
|
if (resolveResult == null) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
var type = resolveResult.Type; |
|
|
|
if (type.DirectBaseTypes.Any(t => t.FullName == "System.Attribute")) { |
|
|
|
if (type.DirectBaseTypes.Any(t => t.FullName == "System.Attribute")) { |
|
|
|
if (CheckNamedResolveResult(resolveResult, node, AffectedEntity.CustomAttributes, identifier, accessibilty)) { |
|
|
|
if (CheckNamedResolveResult(resolveResult, node, AffectedEntity.CustomAttributes, identifier, accessibilty)) { |
|
|
|
return; |
|
|
|
return; |
|
|
|