Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for maintaining multiple variables and fields on a line #53

Open
KathleenDollard opened this issue Jul 25, 2014 · 0 comments
Open

Comments

@KathleenDollard
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant