Skip to content

Support navTo for special assignment kinds#18154

Merged
2 commits merged into
masterfrom
navToJs
Sep 7, 2017
Merged

Support navTo for special assignment kinds#18154
2 commits merged into
masterfrom
navToJs

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Aug 30, 2017

Fixes #13875

@ghost ghost requested a review from aozgaa August 30, 2017 17:20
Comment thread src/compiler/core.ts Outdated
return (arg: T) => f(arg) && g(arg);
}

export function never(_: never): never {
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.

Is this helper really necessary? If so, consider converting the "unreachable" throws in checker.ts to call this.

Comment thread src/services/utilities.ts Outdated
// static method / property
return isFunctionExpression(right) ? ScriptElementKind.memberFunctionElement : ScriptElementKind.memberVariableElement;
default:
return never(kind);
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.

i would rather have unknown here instead of crashing.

@ghost ghost mentioned this pull request Sep 6, 2017
@ghost ghost merged commit 7541c70 into master Sep 7, 2017
@ghost ghost deleted the navToJs branch September 7, 2017 14:45
@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.

3 participants