Skip to content

Make node type predicates public #16121

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

Merged
2 commits merged into from
May 31, 2017
Merged

Make node type predicates public #16121

2 commits merged into from
May 31, 2017

Conversation

ghost
Copy link

@ghost ghost commented May 27, 2017

Fixes #15811

This moves all simple type predicates (of the form node.kind === SyntaxKind.Foo) into their own section.
It also fills in any missing type predicates.
This also makes a few more complex predicates public such as isCaseOrDefaultClause, but I didn't make many public because we should document them first.
This renames isSpreadExpression to isSpreadElement to match the type name.
Deleted isTextualLiteralKind and isModuleName which weren't being used.

@ghost ghost merged commit 3eda9c6 into master May 31, 2017
@ghost ghost deleted the node-type-predicates branch May 31, 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.

2 participants