Skip to content

VB -> C#: statics in methods with escaped names get invalid names #1043

Description

@TimurKelman

VB.Net input code

Public Class KeywordName
    Sub [Step]()
        Static i As Integer
    End Sub
End Class

Erroneous output

    public class KeywordName
    {
        private int _[Step]_i;
        public void Step()
        {
        }
    }

Expected output

    public class KeywordName
    {
        private int _Step_i;
        public void Step()
        {
        }
    }

Details

  • Product in use: VS extension
  • Version in use: 2e3da7e
  • Did you see it working in a previous version, which? No
  • Any other relevant information to the issue, or your interest in contributing a fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions