Closed fgimian closed 11 months ago
While looking into a fix for this, I found out this same problem exists in a lot of different cases.
[Attribute
// some comment
]
class Class
{
void Method()
{
CallMethod(
[
// some comment
]
);
CallMethod(
// some comment
);
var x = Array[
1
// some comment
];
}
}
I'm sure there are more, close brackets also exist in these other node types. I didn't figure out how many places closing parenthesis exists.
ArrayRankSpecifierSyntax
FunctionPointerUnmanagedCallingConventionListSyntax
ImplicitArrayCreationExpressionSyntax
ImplicitStackAllocArrayCreationExpressionSyntax
ListPatternSyntax
BracketedParameterListSyntax
CrefBracketedParameterListSyntax
Some of these are unlikely to occur in real code, so instead of trying to address them all I'm thinking just fix them as they come up.
Thank you so much for your help! 😊
Hey again, just found another very minor issue.
Is being formatted to:
I think that any code (comments included) inside the square brackets should be indented. What do you think?
Cheers Fotis