Skip to content

Remove unused System.Reflection.Emit leftovers - #56698

Merged
lambdageek merged 7 commits into
dotnet:mainfrom
i3arnon:unused-reflection-emit
Aug 9, 2021
Merged

lambdageek merged 7 commits into
dotnet:mainfrom
i3arnon:unused-reflection-emit

Conversation

@i3arnon

@i3arnon i3arnon commented Aug 1, 2021

Copy link
Copy Markdown
Contributor

Follow up to #56153

@i3arnon
i3arnon requested a review from marek-safar as a code owner August 1, 2021 14:59
@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Aug 1, 2021
@ghost

ghost commented Aug 1, 2021

Copy link
Copy Markdown

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@i3arnon

i3arnon commented Aug 1, 2021

Copy link
Copy Markdown
Contributor Author

The test failure doesn't seem to be related to this change

@i3arnon

i3arnon commented Aug 1, 2021

Copy link
Copy Markdown
Contributor Author

I feel that ScopeTree (and possibly LocalSymInfo) also have no effect and can be removed, but I can't be sure.

@jeffhandley

Copy link
Copy Markdown
Member

The test failure doesn't seem to be related to this change

Agreed; it was an infrastructure error. I've started that check.

Tagging @dotnet/area-system-reflection-emit for a code review.

@@ -1,7 +1,5 @@
Compat issues with assembly System.Reflection.Emit.ILGeneration:
MembersMustExist : Member 'public void System.Reflection.Emit.ILGenerator.MarkSequencePoint(System.Diagnostics.SymbolStore.ISymbolDocumentWriter, System.Int32, System.Int32, System.Int32, System.Int32)' does not exist in the reference but it does exist in the implementation.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume MarkSequencePoint, GetMethodSigHelper are still necessary and must be public for debugging cases and\or for internal implementation. Is that correct?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MarkSequencePoint could be removed. GetMethodSigHelper overloads were used but could be made internal.

@steveharter steveharter left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for this clean-up.

Is this the final effort for this clean-up. We still have some members in the ignore.txt - I assume those are needed.

@i3arnon

i3arnon commented Aug 3, 2021 •

Copy link
Copy Markdown
Contributor Author

Is this the final effort for this clean-up. We still have some members in the ignore.txt - I assume those are needed.

I'm willing to cut off as much as possible. But not sure what else is removable..

The ignore.txt errors all seem to be in the other direction (i.e. does not exist in the implementation but it does exist in the contract). I guess that means the API is in legacy .NET but not in core and should stay that way. Is this correct?

@i3arnon
i3arnon requested a review from lambdageek August 8, 2021 12:45
@lambdageek
lambdageek merged commit 687e528 into dotnet:main Aug 9, 2021
@i3arnon
i3arnon deleted the unused-reflection-emit branch August 19, 2021 12:34
@ghost ghost locked as resolved and limited conversation to collaborators Sep 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Reflection.Emit community-contribution Indicates that the PR has been added by a community member

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

6 participants