★ wanayoo — archive 1999 https://github.com/code-cracker/code-cracker/issues/493Nouvelle recherche | Portail wanayoo
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

CC0009 eats pragmas and trivia #493

Closed
ImaginaryDevelopment opened this issue Sep 3, 2015 · 1 comment
Closed

CC0009 eats pragmas and trivia #493

ImaginaryDevelopment opened this issue Sep 3, 2015 · 1 comment

Comments

@ImaginaryDevelopment
Copy link

@ImaginaryDevelopment ImaginaryDevelopment commented Sep 3, 2015

                SelectedAppointment = new AppointmentDataModel();
                // test trivia
    #pragma warning disable CS0618 // Type or member is obsolete
                SelectedAppointment.Patient = SelectedPatient;
    #pragma warning restore CS0618 // Type or member is obsolete
            }

becomes

                SelectedAppointment = new AppointmentDataModel
                {
                    Patient = SelectedPatient
                };
@giggio
Copy link
Member

@giggio giggio commented Sep 4, 2015

Bug confirmed. Correct result should be:

SelectedAppointment = new AppointmentDataModel
{
#pragma warning disable CS0618 // Type or member is obsolete
    Patient = SelectedPatient
#pragma warning restore CS0618 // Type or member is obsolete
};
@giggio giggio added this to the 1.0.0 milestone Sep 4, 2015
@giggio giggio modified the milestones: 1.0.0-rc3, 1.0.0 Oct 3, 2015
@carloscds carloscds closed this in 2ec163b Oct 8, 2015
carloscds added a commit that referenced this issue Oct 8, 2015
Fix #493 by assigning trivia before the expression and after separators
jwooley added a commit to jwooley/code-cracker that referenced this issue Nov 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.