NRefactory icon indicating copy to clipboard operation
NRefactory copied to clipboard

Formatter does not work for anonymous type creation

Open luiscubal opened this issue 12 years ago • 0 comments

The formatter does not seem to do anything with anonymous type creation.

var anonymous = new {
                                x = 1,
                    y = 2,
                z = 3,
        w = 4
            };

The formatter seems to just leave the code between the {} as is. (Though, strangely, copy-pasting the code to MonoDevelop seems to correctly indent it)

I believe this may happen because there is no VisitAnonymousTypeCreateExpression method in FormattingVisitor_Expressions.

luiscubal avatar Jun 25 '13 18:06 luiscubal