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

#endif retains extra blank lines #660

Closed
belav opened this issue May 5, 2022 · 0 comments
Closed

#endif retains extra blank lines #660

belav opened this issue May 5, 2022 · 0 comments
Milestone

Comments

@belav
Copy link
Owner

belav commented May 5, 2022

// input of
public class ClassName
{
#if !NET6_0_OR_GREATER
    public void Method1() { }
#endif


    public void Method1() { }
}

// should be

public class ClassName
{
#if !NET6_0_OR_GREATER
    public void Method1() { }
#endif

    public void Method1() { }
}
@belav belav added this to the 0.17.0 milestone May 8, 2022
@belav belav closed this as completed in 2973bf2 May 21, 2022
belav added a commit that referenced this issue May 21, 2022
* Fixing a number of edge cases with preprocessor directives

closes #660

* Adding some notes

* Fixing an edge case with properties

* Fixing even more edge cases

* Refactoring so that the threadstatic fields can go away.

* formatting files

* fixing issues after mergin

* Fixing bug from merge
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