Skip to content

Conversation

@amcasey
Copy link
Member

@amcasey amcasey commented Sep 13, 2017

@msftclas
Copy link

@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

...for shorthand property assignment names when collecting usages.
...correctly in a containing scope.  It's not an issue because we'll
just declare a corresponding type parameter on the extracted function
and pass the original as a type argument.

Fixes microsoft#18142
@amcasey
Copy link
Member Author

amcasey commented Sep 13, 2017

Note that the first two commits are #18423 and #18424.

@amcasey amcasey merged commit 288a57c into microsoft:master Sep 13, 2017
@amcasey amcasey deleted the NestedReturn branch September 13, 2017 23:42
amcasey added a commit to amcasey/TypeScript that referenced this pull request Sep 16, 2017
Only introduce return properties at the top level

(cherry picked from commit 288a57c)
amcasey added a commit to amcasey/TypeScript that referenced this pull request Sep 18, 2017
Only introduce return properties at the top level

(cherry picked from commit 288a57c)
return { body: createBlock(body.statements, /*multLine*/ true), returnValueProperty: undefined };
}
let returnValueProperty: string;
let ignoreReturns = false;
Copy link

Choose a reason for hiding this comment

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

This would be simpler to just have visitor take a parameter, is there a performance concern?

amcasey added a commit to amcasey/TypeScript that referenced this pull request Sep 20, 2017
Only introduce return properties at the top level

(cherry picked from commit 288a57c)
@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