You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which is semantically the same as putting them on separate lines.
RoslynDom loads these as though they were on separate lines. This is important in analysis that needs all the variables in the class and treats variables created with either approach identically. Currently, the syntax tree RoslynDom recreates places these on separate lines.
However, RoslynDom could roundtrip the code by recreating the syntax for the combined declaration using some grouping ID.
I anticipate doing this sometime when I am bored, if this is important to you, let me know.
The text was updated successfully, but these errors were encountered:
This is legal in C#
public class A
{
private string A, B, C;
public void Foo()
{
int X, Y, Z;
}
}
which is semantically the same as putting them on separate lines.
RoslynDom loads these as though they were on separate lines. This is important in analysis that needs all the variables in the class and treats variables created with either approach identically. Currently, the syntax tree RoslynDom recreates places these on separate lines.
However, RoslynDom could roundtrip the code by recreating the syntax for the combined declaration using some grouping ID.
I anticipate doing this sometime when I am bored, if this is important to you, let me know.
The text was updated successfully, but these errors were encountered: