-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Extract method cleanup #76550
Extract method cleanup #76550
Conversation
@@ -151,9 +151,6 @@ | |||
<data name="Remove_this_qualification" xml:space="preserve"> | |||
<value>Remove 'this' qualification</value> | |||
</data> | |||
<data name="Cannot_determine_valid_range_of_statements_to_extract" xml:space="preserve"> | |||
<value>Cannot determine valid range of statements to extract</value> | |||
</data> |
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.
Moved to shared location so we can have one string for VB and C#
@JoeRobich @ToddGrun PTAL. This is one of many cleanup PRs i'm making this area as i modernize and simplify the code on the way to some larger user-facing feature refactorings. Note: if you have further suggestions, i'm happy to incorporate them into the followup PRs that are waiting on this one. Thanks! |
@@ -1113,7 +1113,7 @@ public static void Main() | |||
p1 = NewMethod(p2); | |||
} | |||
private static object NewMethod(object p2) | |||
private static global::System.Object NewMethod(global::System.Object p2) |
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.
intentional change. EM now calls trhough the correct syntax generator code. but the tests don't actually run the simplification pass (since the tests unfortunately test parts of the api directly).
Cleanup work in the extract method codebase before doign some more major feature work. I've documented int eh PR what changes i'm making. Should be reviewed with whitespace off.