Skip to content

Improve insertion position of extracted methods#18343

Merged
amcasey merged 3 commits into
microsoft:masterfrom
amcasey:InsertionPosition
Sep 12, 2017
Merged

Improve insertion position of extracted methods#18343
amcasey merged 3 commits into
microsoft:masterfrom
amcasey:InsertionPosition

Conversation

@amcasey

@amcasey amcasey commented Sep 8, 2017

Copy link
Copy Markdown
Member

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

msftclas commented Sep 8, 2017

Copy link
Copy Markdown

@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

amcasey commented Sep 8, 2017

Copy link
Copy Markdown
Member Author

FYI @bterlson.

Comment thread src/compiler/utilities.ts Outdated
}

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

@ghost ghost Sep 8, 2017

Copy link
Copy Markdown

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

amcasey commented Sep 8, 2017

Copy link
Copy Markdown
Member Author

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.

3 participants