Skip to content
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

Split isConst into isVarConst and isEnumConst #25312

Merged
1 commit merged into from
Jun 29, 2018
Merged

Split isConst into isVarConst and isEnumConst #25312

1 commit merged into from
Jun 29, 2018

Conversation

ghost
Copy link

@ghost ghost commented Jun 28, 2018

Noticed while looking at #25282 -- this function covers two different cases which we never need to cover both of at once.

@ghost ghost requested a review from sandersn June 28, 2018 23:59
@@ -6168,8 +6168,8 @@ declare namespace ts {
function getErrorSpanForNode(sourceFile: SourceFile, node: Node): TextSpan;
function isExternalOrCommonJsModule(file: SourceFile): boolean;
function isJsonSourceFile(file: SourceFile): file is JsonSourceFile;
function isConstEnumDeclaration(node: Node): boolean;
function isConst(node: Node): boolean;
function isEnumConst(node: EnumDeclaration): boolean;
Copy link
Author

Choose a reason for hiding this comment

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

This is an internal-only change. (#24966)

Copy link
Contributor

@Kingwl Kingwl left a comment

Choose a reason for hiding this comment

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

looks good 👍
and i cannot understand why we don't do that 🤷🏻‍♂️

@ghost ghost merged commit 48d31ed into master Jun 29, 2018
@ghost ghost deleted the isConst branch June 29, 2018 23:47
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants