|
|
|
@ -52,7 +52,8 @@ namespace ICSharpCode.NRefactory.CSharp.Refactoring |
|
|
|
public override void VisitFieldDeclaration (FieldDeclaration fieldDeclaration) |
|
|
|
public override void VisitFieldDeclaration (FieldDeclaration fieldDeclaration) |
|
|
|
{ |
|
|
|
{ |
|
|
|
base.VisitFieldDeclaration (fieldDeclaration); |
|
|
|
base.VisitFieldDeclaration (fieldDeclaration); |
|
|
|
|
|
|
|
if (fieldDeclaration.HasModifier (Modifiers.Const)) |
|
|
|
|
|
|
|
return; |
|
|
|
var defaultValueExpr = GetDefaultValueExpression (fieldDeclaration.ReturnType); |
|
|
|
var defaultValueExpr = GetDefaultValueExpression (fieldDeclaration.ReturnType); |
|
|
|
if (defaultValueExpr == null) |
|
|
|
if (defaultValueExpr == null) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|