-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
Change placement of DebuggerNonUserCodeAttribute #1735
Conversation
I think this has caught everything. I've left a stub for attributes to be applied to the types themselves, but we don't currently need anything. Follow-up commit will include the changes to generated code itself. Fixes protocolbuffers#1671.
8053c88
to
c534845
Compare
Reassigned to @pherl is @jtattermusch is away. The Travis build failures are the ones afflicting the whole project, not just this PR. |
I added @anandolee to take a look. |
printer->Print("[global::System.Diagnostics.DebuggerNonUserCodeAttribute]\n"); | ||
} | ||
|
||
void SourceGeneratorBase::WriteGeneratedTypeAttributes(io::Printer* printer) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a waste to have this empty method for future use only.
Let's add this when really needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My reasoning for keeping it was that we've already done the work to make sure it's called at all the right places. But I don't mind removing it - let's just make sure we keep that removal as a separate commit which is easy to revert. Will add that commit to this PR.
LGTM |
Thanks. Will look into the CI failures, and submit if they're unrelated. |
This does not affect the generated code. If we decide we want to apply attributes to generated types, we should start by just reverting this change.
1cabcd7
to
e9a7fc8
Compare
Change placement of DebuggerNonUserCodeAttribute
See #1671.