Skip to content

Split isConst into isVarConst and isEnumConst#25312

Merged
1 commit merged intomasterfrom
isConst
Jun 29, 2018
Merged

Split isConst into isVarConst and isEnumConst#25312
1 commit merged intomasterfrom
isConst

Conversation

@ghost
Copy link
Copy Markdown

@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
function isJsonSourceFile(file: SourceFile): file is JsonSourceFile;
function isConstEnumDeclaration(node: Node): boolean;
function isConst(node: Node): boolean;
function isEnumConst(node: EnumDeclaration): boolean;
Copy link
Copy Markdown
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
Copy Markdown
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
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
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