Browse Source

convert static classes to modules

pull/254/head
Siegfried Pammer 14 years ago
parent
commit
918b015f44
  1. 5
      NRefactory/ICSharpCode.NRefactory.VB/Visitors/CSharpToVBConverterVisitor.cs

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

@ -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