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

Split isConst into isVarConst and isEnumConst#25312

Merged
1 commit merged into
mastermicrosoft/TypeScript:masterfrom
isConstmicrosoft/TypeScript:isConstCopy head branch name to clipboard
Jun 29, 2018
Merged

Split isConst into isVarConst and isEnumConst#25312
1 commit merged into
mastermicrosoft/TypeScript:masterfrom
isConstmicrosoft/TypeScript:isConstCopy head branch name to clipboard

Conversation

@ghost

@ghost ghost commented Jun 28, 2018

Copy link
Copy Markdown

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)

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

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

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