Browse Source

convert static classes to modules

newNRvisualizers
Siegfried Pammer 14 years ago
parent
commit
fbc8b85221
  1. 5
      ICSharpCode.NRefactory.VB/Visitors/CSharpToVBConverterVisitor.cs

5
ICSharpCode.NRefactory.VB/Visitors/CSharpToVBConverterVisitor.cs

@ -837,6 +837,11 @@ namespace ICSharpCode.NRefactory.VB.Visitors @@ -837,6 +837,11 @@ namespace ICSharpCode.NRefactory.VB.Visitors
} else
type.ClassType = typeDeclaration.ClassType;
if ((typeDeclaration.Modifiers & CSharp.Modifiers.Static) == CSharp.Modifiers.Static) {
type.ClassType = ClassType.Module;
typeDeclaration.Modifiers &= ~CSharp.Modifiers.Static;
}
ConvertNodes(typeDeclaration.Attributes, type.Attributes);
ConvertNodes(typeDeclaration.ModifierTokens, type.ModifierTokens);

Loading…
Cancel
Save