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

Improve insertion position of extracted methods #18343

Merged
merged 3 commits into from
Sep 12, 2017

Conversation

amcasey
Copy link
Member

@amcasey amcasey commented Sep 8, 2017

Old: End of target scope
New: Before the first non-constructor function following the extracted range in the target scope

TODO: I'm going to add more tests, but I know people are anxious for local builds of this change.

Old: End of target scope
New: Before the first non-constructor function following the extracted
range in the target scope
@msftclas
Copy link

msftclas commented Sep 8, 2017

@amcasey,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@amcasey
Copy link
Member Author

amcasey commented Sep 8, 2017

FYI @bterlson.

@@ -505,7 +505,7 @@ namespace ts {
}
}

function staticAssertNever(_: never): void {}
export function staticAssertNever(_: never): void {}
Copy link

@ghost ghost Sep 8, 2017

Choose a reason for hiding this comment

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

There's a duplicate function assertTypeIsNever in core.ts, or you may prefer Debug.assertNever which throws (from #18287 so you'd have to rebase this).

@amcasey
Copy link
Member Author

amcasey commented Sep 8, 2017

FYI @DanielRosenwasser

@amcasey amcasey merged commit 40e4591 into microsoft:master Sep 12, 2017
@amcasey amcasey deleted the InsertionPosition branch September 12, 2017 23:48
amcasey added a commit to amcasey/TypeScript that referenced this pull request Sep 16, 2017
Improve insertion position of extracted methods

(cherry picked from commit 40e4591)
amcasey added a commit to amcasey/TypeScript that referenced this pull request Sep 18, 2017
Improve insertion position of extracted methods

(cherry picked from commit 40e4591)
amcasey added a commit to amcasey/TypeScript that referenced this pull request Sep 20, 2017
Improve insertion position of extracted methods

(cherry picked from commit 40e4591)
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants