Skip to content

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