Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Use isPartOfExpression in extractMethod, not isExpression#18047

Merged
2 commits merged into
mastermicrosoft/TypeScript:masterfrom
isPartOfExpressionmicrosoft/TypeScript:isPartOfExpressionCopy head branch name to clipboard
Aug 25, 2017
Merged

Use isPartOfExpression in extractMethod, not isExpression#18047
2 commits merged into
mastermicrosoft/TypeScript:masterfrom
isPartOfExpressionmicrosoft/TypeScript:isPartOfExpressionCopy head branch name to clipboard

Conversation

@ghost

@ghost ghost commented Aug 25, 2017

Copy link
Copy Markdown

This reverts the changes to isExpression from #18025. @rbuckton pointed out that we should be using isPartOfExpression outside of transforms, not isExpression, since isExpression shouldn't look at node.parent.

@ghost ghost requested a review from rbuckton August 25, 2017 20:24

@rbuckton rbuckton 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.

Approved, pending minor comments.

Comment thread src/compiler/utilities.ts
switch (node.kind) {
return isLeftHandSideExpressionKind(skipPartiallyEmittedExpressions(node).kind);
}
function isLeftHandSideExpressionKind(kind: SyntaxKind): boolean {

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.

nit: Whitespace

Comment thread src/compiler/utilities.ts
switch (node.kind) {
return isUnaryExpressionKind(skipPartiallyEmittedExpressions(node).kind);
}
function isUnaryExpressionKind(kind: SyntaxKind): boolean {

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.

nit: Whitespace

Comment thread src/compiler/utilities.ts
switch (node.kind) {
return isExpressionKind(skipPartiallyEmittedExpressions(node).kind);
}
function isExpressionKind(kind: SyntaxKind): boolean {

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.

nit: Whitespace

@ghost ghost merged commit e73b10a into master Aug 25, 2017
@ghost ghost deleted the isPartOfExpression branch August 25, 2017 22:15
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
This pull request was closed.
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.